Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Mar 2008 22:44:28 +0200
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: why does my apache-worker broke after upgrade to 6_3_RELEASE?
Message-ID:  <fsou3d$ham$1@ger.gmane.org>
In-Reply-To: <47EDD0EE.7090803@lozenetz.org>
References:  <47EDD0EE.7090803@lozenetz.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig85157DAAE51E2A90AD9976AE
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Anton - Valqk wrote:
> Hi group,
> does anyone has idea
> why the #$#$#$%$%#$%$@#$% upgrade to latest 6_3_RELEASE
> broke my apache-worker?!???
> In logs I get:
> Fatal error 'kse_exit() failed for system scope thread' at line 1215 in=

> file /usr/src/lib/libpthread/thread/thr_kern.c (errno =3D 22)
>=20
> I don't think it's a suggested behavior?
> This broke my apache for christ sake!!!
> Not pretty sure about all other threaded apps.....
> after 10 times I've rebuilded my port from scratch and seeing that it's=

> not a problem with this,
> I've found a solution:
> adding in /etc/libmap.conf
>=20
> [httpd]
> libpthread.so.2 libthr.so.2
> libpthread.so libthr.so

Since many people (including myself) have upgraded from 6.something to=20
6.3-RELEASE without problems, it's probably something specific to your=20
own system. Have you tried rebuilding world instead of port?

What does `ldd /usr/local/sbin/httpd` say when you remove libmap.conf?

Here's what it says on one of my 6.3 systems:

 > ldd /usr/local/sbin/httpd
/usr/local/sbin/httpd:
         libm.so.4 =3D> /lib/libm.so.4 (0x80068c000)
         libaprutil-1.so.2 =3D> /usr/local/lib/libaprutil-1.so.2 (0x8007a=
8000)
         libexpat.so.6 =3D> /usr/local/lib/libexpat.so.6 (0x8008c0000)
         libiconv.so.3 =3D> /usr/local/lib/libiconv.so.3 (0x8009e2000)
         libapr-1.so.2 =3D> /usr/local/lib/libapr-1.so.2 (0x800bd3000)
         libcrypt.so.3 =3D> /lib/libcrypt.so.3 (0x800cfa000)
         libpthread.so.2 =3D> /lib/libpthread.so.2 (0x800e13000)
         libc.so.6 =3D> /lib/libc.so.6 (0x800f3e000)

What is your result?

Try `ident /lib/libpthread.so.2`, here's my result (amd64):
 > ident /lib/libpthread.so.2
/lib/libpthread.so.2:
      $FreeBSD: src/lib/csu/amd64/crti.S,v 1.7 2004/03/21 01:39:01 peter =

Exp $
      $FreeBSD: src/lib/csu/amd64/crtn.S,v 1.6 2004/03/21 01:39:01 peter =

Exp $
      $FreeBSD: src/lib/libpthread/thread/thr_pselect.c,v 1.5 2003/12/09 =

02:20:56 davidxu Exp $
      $FreeBSD: src/lib/libpthread/thread/thr_connect.c,v 1.2 2003/12/09 =

23:40:27 deischen Exp $
      $FreeBSD: src/lib/libpthread/thread/thr_accept.c,v 1.2 2003/12/09=20
23:40:27 deischen Exp $
      $FreeBSD: src/lib/libpthread/thread/thr_sigaltstack.c,v 1.2=20
2004/01/02 00:38:42 davidxu Exp $
      $FreeBSD: src/lib/libpthread/thread/thr_printf.c,v 1.4 2004/02/10=20
20:42:33 cperciva Exp $
      $FreeBSD: src/lib/libpthread/thread/thr_kern.c,v 1.116.2.1=20
2006/03/16 23:29:07 deischen Exp $
      $FreeBSD: src/lib/libpthread/arch/amd64/amd64/enter_uts.S,v 1.5=20
2004/07/31 01:53:21 davidxu Exp $
      $FreeBSD: src/lib/libpthread/arch/amd64/amd64/context.S,v 1.7.8.1=20
2006/03/16 23:29:06 deischen Exp $
      $FreeBSD: src/lib/libc/gen/sigsetops.c,v 1.8 2002/02/01 00:57:29=20
obrien Exp $
      $FreeBSD: src/lib/libc/string/bcopy.c,v 1.6 2003/10/26 03:55:58=20
peter Exp $
      $FreeBSD: src/lib/libc/string/bzero.c,v 1.2 2002/03/22 21:53:19=20
obrien Exp $
      $FreeBSD: src/lib/libc/string/memset.c,v 1.8 2002/09/01 21:53:46=20
robert Exp $
      $FreeBSD: src/lib/libc/amd64/sys/cerror.S,v 1.14 2005/04/21=20
12:47:08 kan Exp $
      $FreeBSD: src/lib/libc/string/memcpy.c,v 1.2 2002/03/22 21:53:19=20
obrien Exp $
      $FreeBSD: src/lib/libc/string/bcopy.c,v 1.6 2003/10/26 03:55:58=20
peter Exp $
      $FreeBSD: src/lib/libc/string/memset.c,v 1.8 2002/09/01 21:53:46=20
robert Exp $
      $FreeBSD: src/lib/libc/string/strcpy.c,v 1.7 2002/09/06 11:24:06=20
tjr Exp $
      $FreeBSD: src/lib/libc/string/strlen.c,v 1.4 2002/03/21 18:44:54=20
obrien Exp $

Also, are you sure as to what you upgraded to? Are your kernel and world =

in sync? KSE was removed from 8-CURRENT so it could be a problem if you=20
somehow got binaries or libraries from 8-CURRENT.

> anywayz, can anyone answer me plz why did I get to this state?

If nothing obvious pops up from the above, you could maybe create an=20
archive of all files ldd says are loaded by httpd so developers can take =

a look at it.



--------------enig85157DAAE51E2A90AD9976AE
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH7/usldnAQVacBcgRApz/AKC7evepjACtEWnZdVThbXuYMqUXLQCfccWu
DxAdT+y7F6BDAX2Eo16z98A=
=gM82
-----END PGP SIGNATURE-----

--------------enig85157DAAE51E2A90AD9976AE--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fsou3d$ham$1>