From owner-freebsd-stable@FreeBSD.ORG Mon Oct 23 01:36:20 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89A4F16A407 for ; Mon, 23 Oct 2006 01:36:20 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (creme-brulee.marcuscom.com [24.172.16.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25D7043D53 for ; Mon, 23 Oct 2006 01:36:19 +0000 (GMT) (envelope-from marcus@marcuscom.com) Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.13.8/8.13.8) with ESMTP id k9N1aqSM062275; Sun, 22 Oct 2006 21:36:52 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Jeremy Messenger In-Reply-To: References: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-YNsPX9MINMUQRz/6I3fP" Organization: MarcusCom, Inc. Date: Sun, 22 Oct 2006 21:36:08 -0400 Message-Id: <1161567368.30822.31.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1.1 FreeBSD GNOME Team Port Cc: freebsd-stable@freebsd.org Subject: Re: Do anyone has any problem with sem_open() crash? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Oct 2006 01:36:20 -0000 --=-YNsPX9MINMUQRz/6I3fP Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2006-10-22 at 20:09 -0500, Jeremy Messenger wrote: > Hello folks, >=20 > Last night, I have upgraded from July RELENG_6 to last night. I have =20 > reinstalled all of ports and I noticed that the log/messages is collectin= g =20 > a few of 'pid 14699 (conftest), uid 0: exited on signal 12 (core dumped)'= . =20 > I dig in the configure and found a location of crash. It is from =20 > sem_open(). I don't get that before I upgraded the RELENG_6. >=20 > http://people.freebsd.org/~mezz/test-sem_open.cc (took from configure's =20 > conftest) >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > % c++ -o test-sem_open -O2 -fno-strict-aliasing -pipe -g -pthread -pipe =20 > test-sem_open.cc > % ./test-sem_open > [1] 5761 invalid system call (core dumped) ./test-sem_open >=20 > % grep sem_open /var/log/messages > Oct 22 19:44:35 mezz kernel: pid 5761 (test-sem_open), uid 1001: exited o= n =20 > signal 12 (core dumped) > Oct 22 20:00:45 mezz kernel: pid 6140 (test-sem_open), uid 1001: exited o= n =20 > signal 12 (core dumped) > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D >=20 > I have decided to login in a jail that has RELENG_6 from July in the same= =20 > local machine that have most debug enable. >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > $ gdb test-sem_open test-sem_open.core >=20 > Core was generated by `test-sem_open'. > Program terminated with signal 12, Bad system call. >=20 > #0 0x281bf297 in ksem_open () at ksem_open.S:2 > 2 ksem_open.S: No such file or directory. > in ksem_open.S > [New LWP 100120] >=20 >=20 > (gdb) bt > #0 0x281bf297 in ksem_open () at ksem_open.S:2 > #1 0x281b5cd8 in __sem_open (name=3D0x804868e "ace_semaphore_foo", =20 > oflag=3D2560) > at /usr/src/lib/libc/gen/sem.c:217 > #2 0x080485ee in main () at test-sem_open.cc:168 > Current language: auto; currently asm >=20 >=20 > (gdb) bt full > #0 0x281bf297 in ksem_open () at ksem_open.S:2 > No locals. > #1 0x281b5cd8 in __sem_open (name=3D0x804868e "ace_semaphore_foo", =20 > oflag=3D2560) > at /usr/src/lib/libc/gen/sem.c:217 > sem =3D (sem_t *) 0xbfbfec9c > s =3D 0x4e > semid =3D 1 > mode =3D 78 > value =3D 1 > #2 0x080485ee in main () at test-sem_open.cc:168 > s =3D (sem_t *) 0xa00 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D >=20 > BTW: Please add me in CC, I am not on the list. You need to make sure you have "options P1003_1B_SEMAPHORES" in your kernel. These POSIX IPC constructs are labeled as being very experimental, and this is not a default option. Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-YNsPX9MINMUQRz/6I3fP Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFPByIb2iPiv4Uz4cRApTiAKCKbvzR5G6fgil7+O8B1pUrNhs05wCfSfak 1/xdho9/rIMc9cghSj2sWGk= =1Twd -----END PGP SIGNATURE----- --=-YNsPX9MINMUQRz/6I3fP--