Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133393 - Asterisk breaks with glibc 2.3.6-p3 and nptl
Summary: Asterisk breaks with glibc 2.3.6-p3 and nptl
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Alpha Linux
: High normal (vote)
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-15 08:59 UTC by Bert Smith
Modified: 2007-07-12 21:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bert Smith 2006-05-15 08:59:30 UTC
Asterisk (tested with 1.2.7_p1-r1 and earlier versions) fails to start when using glibc 2.3.6-r3 with nptl.

Backtrace:
#0  0x000002000004995c in pthread_create@@GLIBC_2.1 () from /lib/tls/libpthread.so.0
#1  0x0000000120099b10 in ast_pthread_create_stack ()
#2  0x000000012008b84c in main ()

The same issue occurs on multiple machines running this combination of glibc and asterisk.

The same versions of asterisk start and run correctly using glibc 2.3.5-r3, however this version has other issues (which 2.3.6 corrects) such as: openssl 0.9.7j fails to compile (as segfaults on one of the files during compilation)

Portage 2.1_pre10-r5 (default-linux/alpha/2005.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16.16 alpha)
=================================================================
System uname: 2.6.16.16 alpha EV6
Gentoo Base System version 1.12.0_pre19
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="alpha ~alpha"
AUTOCLEAN="yes"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-O3 -mcpu=ev6 -fomit-frame-pointer -pipe"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -mcpu=ev6 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk/"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="alpha 16bit a52 aac acl apache2 berkdb bitmap-fonts bzip2 cdparanoia cli crypt cups curl dba dlloader dri dts dvd dvdr dvdread eds encode ev6 flac font-server foomaticdb fortran ftp gd gdbm gif gnutls gpm gstreamer imlib inode iproute2 ipv6 ithreads jpeg kde libcaca libg++ libwww mad memlimit mikmod ming mp3 mpeg mpm-peruser mysql ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pam_chroot pcre pdflib pear perl png posix python qt quicktime readline reflection rtc session sharedext sharedmem snmp sockets spamassassin speex spell spl ssl sysvipc theora truetype truetype-fonts type1-fonts ukcid usb vorbis xml xml2 xorg xv xvid zaptel zip zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Adam Pyschny 2006-05-16 09:44:43 UTC
I can confirm this.

Asterisk compiled with glibc-2.3.6-r3 sagfaults shortly after start. I tried the following versions of asterisk:
1.2.7_p1-r1
1.2.7_p1
1.0.8-r3
Compiling was fine, but the program segfaults while reading its configfiles and initializing the pbx-system.

masking glibc-2.3.6-r3 and switching back to 2.3.5-r3 makes asterisk live again :)

heres my emerge --info (after switching back to 2.3.5...)
Portage 2.0.54-r2 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) XP
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -mmmx -m3dnow"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acpi alsa apache2 apm audiofile avi bash-completion berkdb bitmap-fonts bzip2 cli crypt cups curl dga dio dri eds emboss encode esd ethereal exif expat fam ffmpeg firefox foomaticdb fortran ftp gd gdbm ggi gif gimpprint glut gstreamer gtk gtk2 gtkhtml icq idn imagemagick imlib isdnlog java jpeg junit lcms libg++ libwww mad matroska mikmod mmx mmxext mng motif mp3 mpeg ncurses nls nocd nptl nptlonly nsplugin offensive ogg oggvorbis openal opengl oscar pam pcre pdflib perl pic png pppd python quicktime readline real reflection samba sdl session slang speex spell spl sqlite sse ssl svg svga tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis win32codecs x86 xine xinerama xml2 xmms xorg xv xvid zlib linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS


 
Comment 2 Gustavo Zacarias (RETIRED) gentoo-dev 2006-11-27 09:37:43 UTC
Adam: does this happen to you with the latest asterisk versions? I'm using it fine with glibc-2.3.6-r5 on a couple hardened systems and there doesn't seem to be other reports about this issue in bugzilla.
Comment 3 Adam Pyschny 2006-11-27 10:05:38 UTC
Sry, i don't know exactly, i masked glibc 2.3.6 and tried it with glibc-2.4-r4 when it became stable, that works fine with asterisk 1.2.13. 
Comment 4 Gustavo Zacarias (RETIRED) gentoo-dev 2006-11-27 10:08:35 UTC
So this looks like an alpha-ism then.
Bert: tested against newer versions?

Comment 5 Jose Luis Rivero (yoswink) (RETIRED) gentoo-dev 2007-05-11 14:32:08 UTC
Long ago this bug was filed and new versions of glibc and asterisk have been released. 

@Bert, @Adam: any news? or we can close this as FIXED?
Comment 6 Gustavo Zacarias (RETIRED) gentoo-dev 2007-07-12 21:59:06 UTC
No info, closing.