Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424615 - sys-libs/uclibc-0.9.33.2-r1 with sys-devel/gcc-4.6.3 - dev-lang/python pthread test hangs
Summary: sys-libs/uclibc-0.9.33.2-r1 with sys-devel/gcc-4.6.3 - dev-lang/python pthrea...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Embedded Gentoo Team
URL: http://bugs.python.org/issue14610
Whiteboard:
Keywords:
Depends on:
Blocks: uclibc-porting
  Show dependency tree
 
Reported: 2012-07-03 15:14 UTC by Dustin Polke
Modified: 2016-03-02 09:52 UTC (History)
1 user (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 Dustin Polke 2012-07-03 15:14:41 UTC
I'm trying to build a stage3 with catalyst. When python is emerged, the configure script hangs while testing for pthread support. This happened on uclibc/x86 and uclibc/x86/hardened profile. I found the following upstream report about this issue [1], which has been marked INVALID.

The code posted at [2] hangs as well. Here's the strace output:
"""
execve("./test", ["./test"], [/* 59 vars */]) = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "\267\266\252\273", 4)          = 4
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7717000
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=8453, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
mmap2(NULL, 8453, PROT_READ, MAP_SHARED, 3, 0) = 0xf7714000
close(3)                                = 0
open("/lib/libpthread.so.0", O_RDONLY)  = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=91321, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7713000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20F\0\0004\0\0\0"..., 4096) = 4096
mmap2(NULL, 86016, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf76fe000
mmap2(0xf76fe000, 52672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xf76fe000
mmap2(0xf770b000, 21672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd) = 0xf770b000
mmap2(0xf7711000, 5760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xf7711000
close(3)                                = 0
munmap(0xf7713000, 4096)                = 0
open("/usr/lib/gcc/i386-gentoo-linux-uclibc/4.6.3/libgcc_s.so.1", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=91276, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7713000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0|\"\0\0004\0\0\0"..., 4096) = 4096
mmap2(NULL, 98304, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf76e6000
mmap2(0xf76e6000, 89408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xf76e6000
mmap2(0xf76fc000, 4120, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x15) = 0xf76fc000
close(3)                                = 0
munmap(0xf7713000, 4096)                = 0
open("/lib/libc.so.0", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=367400, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7713000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\264\321\0\0004\0\0\0"..., 4096) = 4096
mmap2(NULL, 385024, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7688000
mmap2(0xf7688000, 360420, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xf7688000
mmap2(0xf76e0000, 5131, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x58) = 0xf76e0000
mmap2(0xf76e2000, 15608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xf76e2000
close(3)                                = 0
munmap(0xf7713000, 4096)                = 0
open("/lib/libc.so.0", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=367400, ...}) = 0
close(3)                                = 0
open("/lib/libc.so.0", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=367400, ...}) = 0
close(3)                                = 0
munmap(0xf7714000, 8453)                = 0
stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=21300, ...}) = 0
mprotect(0xf7721000, 4096, PROT_READ)   = 0
mprotect(0xf770b000, 4096, PROT_READ)   = 0
mprotect(0xf76fc000, 4096, PROT_READ)   = 0
mprotect(0xf76e0000, 4096, PROT_READ)   = 0
mprotect(0xf771e000, 4096, PROT_READ)   = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
getpid()                                = 28930
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=2040*1024, rlim_max=RLIM_INFINITY}) = 0
rt_sigaction(SIGRTMIN, {0xf7707be8, [], SA_RESTORER, 0xf76951bb}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xf7707b30, [RTMIN], SA_RESTORER, 0xf76951bb}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0xf7707604, [], SA_RESTORER, 0xf76951bb}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RT_1], NULL, 8) = 0
brk(0)                                  = 0xf7b1e000
brk(0xf7b1f000)                         = 0xf7b1f000
getpid()                                = 28930
getrlimit(RLIMIT_STACK, {rlim_cur=2040*1024, rlim_max=RLIM_INFINITY}) = 0
rt_sigaction(SIGRTMIN, {0xf7707be8, [], SA_RESTORER, 0xf76951bb}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xf7707b30, [RTMIN], SA_RESTORER, 0xf76951bb}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0xf7707604, [], SA_RESTORER, 0xf76951bb}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RT_1], NULL, 8) = 0
brk(0xf7b21000)                         = 0xf7b21000
pipe([3, 4])                            = 0
clone(child_stack=0xf7b20114, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND) = 28931
write(4, "\10\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0<\4r\367\1\0\0\0\0\0\0\0\0\0\0\0"..., 148) = 148
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
write(4, "\340\301p\367\0\0\0\0\0\0\0\0\24\6r\367\0\0\0\0\0\0\0\200\0\0\0\0\0\0\0\0"..., 148) = 148
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
rt_sigsuspend([])                       = ? ERESTARTNOHAND (Interrupted by signal)
--- SIGRTMIN {si_signo=SIGRTMIN, si_code=SI_USER, si_pid=28931, si_uid=0} ---
sigreturn() (mask [RTMIN])              = -1 EINTR (Interrupted system call)
write(4, "\340\301p\367\1\0\0\0\2\4\0\0\24\6r\367\0\0\0\0\0\0\0\200\0\0\0\0\0\0\0\0"..., 148) = 148
write(4, "\340\301p\367\2\0\0\0\0\0\0\0\224\0\0\0\351\202p\367\340\301p\367\234\0\374\377\224\0\0\0"..., 148) = 148
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
rt_sigsuspend([])                       = ? ERESTARTNOHAND (Interrupted by signal)
--- SIGRTMIN {si_signo=SIGRTMIN, si_code=SI_USER, si_pid=28931, si_uid=0} ---
sigreturn() (mask [RTMIN])              = -1 EINTR (Interrupted system call)
wait4(28931, NULL, __WCLONE, NULL)      = 28931
write(4, "\340\301p\367\2\0\0\0\0\0\0\0\224\0\0\0\351\202p\367\340\301p\367\234\0\374\377\224\0\0\0"..., 148) = 148
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
rt_sigsuspend([
"""

I am happy to test any suggestions to get this fixed. Just let me know.

[1] http://bugs.python.org/issue14610
[2] http://bugs.python.org/issue14610#msg159187



Portage 2.1.10.65 (uclibc/x86/hardened, gcc-4.6.3, uclibc-0.9.30.1-r1, 3.3.8-gentoo-nouveau i686)
=================================================================
System uname: Linux-3.3.8-gentoo-nouveau-i686-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-2.1
Timestamp of tree: Thu, 28 Jun 2012 15:15:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.3-r2
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/uclibc:          0.9.30.1-r1
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-march=i386 -Os -pipe"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=i386 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-Os"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news nodoc noinfo noman parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-Os"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --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="cli cracklib crypt cxx dri hardened modules mudflap ncurses openmp pcre pic readline session ssl tcpd uclibc x86 xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="uclibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 SpanKY gentoo-dev 2012-07-03 19:27:38 UTC
0.9.30 is no longer supported.  retry with latest stable.
Comment 2 Dustin Polke 2012-07-04 15:14:49 UTC
(In reply to comment #1)
> 0.9.30 is no longer supported.  retry with latest stable.
I will try when bug #423491 is fixed which blocks testing with latest stable right now.
Comment 3 Dustin Polke 2012-07-06 18:19:39 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > 0.9.30 is no longer supported.  retry with latest stable.
> I will try when bug #423491 is fixed which blocks testing with latest stable
> right now.
Stuck with uclibc-0.9.33.2-r1 as well.
Comment 4 Dustin Polke 2012-07-07 20:30:07 UTC
I wanted to dig deeper into this, so I enabled the debug USE flag of uclibc. But with it enabled, pthread check does not hang anymore :-/
Comment 5 Anthony Basile gentoo-dev 2016-03-02 09:52:09 UTC
(In reply to Dustin Polke from comment #4)
> I wanted to dig deeper into this, so I enabled the debug USE flag of uclibc.
> But with it enabled, pthread check does not hang anymore :-/

I've been building stages3's for x86 with python with uclibc[pthread] for ages including with gcc-4.6.3.  There's nothing for me to work on here absent more info.