From owner-freebsd-questions@FreeBSD.ORG Sun Aug 12 09:52:15 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6EAF0106566C for ; Sun, 12 Aug 2012 09:52:15 +0000 (UTC) (envelope-from peo@intersonic.se) Received: from neonpark.inter-sonic.com (neonpark.inter-sonic.com [212.247.8.98]) by mx1.freebsd.org (Postfix) with ESMTP id 2BD3C8FC08 for ; Sun, 12 Aug 2012 09:52:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at BSDLabs AB Message-ID: <50277CCA.4010908@intersonic.se> Date: Sun, 12 Aug 2012 11:52:10 +0200 From: Per olof Ljungmark Organization: Intersonic AB User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120525 Thunderbird/12.0.1 MIME-Version: 1.0 To: "freebsd-questions@freebsd.org" References: <5027737C.6060601@intersonic.se> In-Reply-To: <5027737C.6060601@intersonic.se> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Linux app shared memory problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2012 09:52:15 -0000 On 08/12/12 11:12, Per olof Ljungmark wrote: > Trying to run a Linux app under 9-STABLE. I can start it once and stop > it once but all subsequent efforts produces a core dump. > > I believe the reason being that this app stores licensing information in > shared memory and when it stops first time it fails to remove this info. > > Is there a sysctl parameter that would be useful in a case like this? > Additional info: linux_set_robust_list(0x2820c710,0xc,0x2808fff4,0x2820c6c0,0x0,0x6) = 0 (0x0) linux_sys_futex(0xffffcc90,0x81,0x1,0x2820c6c0,0x2808fff4,0x6) = 0 (0x0) linux_rt_sigaction(0x20,0xffffc948,0x0,0x8,0x2808fff4,0x6) = 0 (0x0) linux_rt_sigaction(0x21,0xffffc948,0x0,0x8,0x2808fff4,0x6) = 0 (0x0) linux_rt_sigprocmask(0x1,0xffffcbfc,0x0,0x8,0x2808fff4,0x6) = 0 (0x0) linux_getrlimit(0x3,0xffffcc84,0x28207ff4,0x10,0x1,0x6) = 0 (0x0) linux_newuname(0xffffc9f8,0x2820b400,0x2808fff4,0x0,0xffffc9f8,0x6) = 0 (0x0) linux_ipc(0x17,0x4f524553,0x10000,0x3ff,0x0,0x6) = 65536 (0x10000) linux_ipc(0x15,0x10000,0x0,0xffffcbe8,0x0,0x6) = 0 (0x0) linux_ipc(0x2,0x4f726583,0x1,0x1ff,0x0,0x6) ERR#13 'Permission denied' linux_ipc(0x3,0xffffffff,0x0,0x10c,0xffffca68,0x6) ERR#22 'Invalid argument' linux_rt_sigaction(0xe,0xffffc9c8,0x0,0x8,0x2808fff4,0x6) = 0 (0x0) linux_alarm(0x14,0x0,0x80589d8,0xffffcb10,0xffffcb94,0x6) = 0 (0x0) linux_ipc(0x1,0xffffffff,0x1,0x0,0xffffcba0,0x6) ERR#22 'Invalid argument' linux_rt_sigaction(0xe,0xffffc9c8,0x0,0x8,0x2808fff4,0x6) = 0 (0x0) linux_alarm(0x0,0x0,0x80589d8,0xffffffff,0xffffcba0,0x6) = 20 (0x14) linux_ipc(0x3,0xffffffff,0x0,0x10c,0xffffca88,0x6) ERR#22 'Invalid argument' linux_rt_sigaction(0xe,0xffffc9e8,0x0,0x8,0x2808fff4,0x6) = 0 (0x0) linux_alarm(0x14,0x0,0x80589d8,0xffffcb30,0xffffcbb4,0x6) = 0 (0x0) linux_ipc(0x1,0xffffffff,0x1,0x0,0xffffcbc0,0x6) ERR#22 'Invalid argument' linux_rt_sigaction(0xe,0xffffc9e8,0x0,0x8,0x2808fff4,0x6) = 0 (0x0) linux_alarm(0x0,0x0,0x80589d8,0xffffffff,0xffffcbc0,0x6) = 20 (0x14) linux_fstat64(0x1,0xffffcaf4,0x28207ff4,0x282084c0,0x282084c0,0x6) = 0 (0x0) linux_mmap2(0x0,0x1000,0x3,0x22,0xffffffff,0x6) = 671576064 (0x28077000) Shared memory problem