[...] PASS: queue-test GThread-ERROR **: file gthread-posix.c: line 367 (): error 'Cannot allocate memory' during 'pthread_create' aborting... /bin/sh: line 4: 7943 Trace/breakpoint trap srcdir=. LIBCHARSET_ALIAS_DIR=../glib/libcharset MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) ${dir}$tst FAIL: asyncqueue-test PASS: qsort-test [...] PASS: thread-test GThread-ERROR **: file gthread-posix.c: line 367 (): error 'Cannot allocate memory' during 'pthread_create' aborting... /bin/sh: line 4: 12286 Trace/breakpoint trap srcdir=. LIBCHARSET_ALIAS_DIR=../glib/libcharset MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) ${dir}$tst FAIL: threadpool-test PASS: tree-test [...] PASS: run-bookmark-test.sh ===================================================================== 2 of 56 tests failed Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=glib ===================================================================== This happens both inside and outside the sandbox, and with both sys-kernel/hppa-sources-2.6.22 and sys-kernel/gentoo-sources-2.6.23-r1. Cannot reproduce it on x86 hardware. Sat Nov 17 18:57:37 CET 2007 Portage 2.1.3.19 (default-linux/hppa/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.23-gentoo-r1-JeR parisc) ================================================================= System uname: 2.6.23-gentoo-r1-JeR parisc PA8700 (PCX-W2) Timestamp of tree: Sat, 17 Nov 2007 05:16:01 +0000 distcc 2.18.3 hppa2.0-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] app-shells/bash: 3.2_p17 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0_rc6 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="hppa" CBUILD="hppa2.0-unknown-linux-gnu" CFLAGS="-O2 -pipe -mschedule=8000 -march=2.0 -ggdb -Wall" CHOST="hppa2.0-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/spool/PBS /var/bind /var/www/localhost/htdocs/wordpress/wp-config.php" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -mschedule=8000 -march=2.0 -ggdb -Wall" DISTDIR="/keeps/gentoo/distfiles" FEATURES="autoaddcvs buildpkg cvs distlocks fixpackages notitles sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.muntinternet.net/pub/gentoo/ http://gentoo.tiscali.nl/" LC_ALL="en_US.UTF-8" LINGUAS="en nl he" MAKEOPTS="-j4" PKGDIR="/keeps/gentoo/packages/elmer" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/mnt/alt/portage-tmp" PORTDIR="/keeps/gentoo/portage" PORTDIR_OVERLAY="/keeps/gentoo/local" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="7zip X Xaw3d a52 aac aalib accessibility alsa amr amrnb amrwb ao aoss apache2 ares arts asf audiofile avfs bash-completion berkdb bidi bitmap-fonts bittorrent bl bzip2 c++ cairo caps catalogs cdb cddb cdparanoia cdr chardet cjk cli cpudetection cracklib crypt cups curl custom-cflags dbtool dbus device-mapper dga dia directfb djbfft domainkeys dts dv dvd dvdr dvdread dxr3 edl elf emacs enca encode esd examples exif expat fam fame fastbuild fastcgi fbcon ffmpeg filter flac fontconfig foomaticdb fortran ftp gadu gd gdbm geoip ggi gif gimp gimpprint glep glib glitz glut gmp gnome gnutls gphoto2 gpm gs gsl gtk gtk2 gtkhtml hal hesiod hppa ical icecast iconv idea idn imagemagick imlib immqt-bc inquisitio ipv6 isdnlog jack javascript jingle jpeg jpeg2k kde kerberos lapack lcms ldap leim libcaca libnotify libsamplerate libwww logrotate logwatch lua lzo mad matroska memcache mhash midi mikmod mmap mng modplug motif mozbranding mp3 mssql mudflap musepack mysql nas ncurses netpbm network-cron nfconntrack nfs nls nntp nptl nptlonly nsplugin offensive ogg openexr opengl openmp oss ots overlays pam pango pbs pch pcre pdf pdo-external perl php pic plotutils plugins png portage portaudio postgres povray ppds pppd pulseaudio python pyzord qdbm qt3 qt3support raw readline recode reflection rpc rrdtool rtc ruby samba sasl scanner scim sdl seamonkey session sid slang slp sndfile snmp soundex speex spell spl sqlite ssl startup-notification suhosin svg sysfs talkfilters tcl tcpd tga theora threads thunar-vfs tidy tiff timidity tk tools truetype truetype-fonts twolame type1-fonts udev unicode unzip urandom usb userlocales utempter utf v4l v4l2 vanim vcd vidix vim-syntax vorbis wavpack webdav webinstall wlan wma wmf xanim xattr xchattext xcomposite xface xml xml2 xmpi xorg xpm xrandr xscreensaver xsettings xulrunner xv xvid xvmc zip zip-external zlib" ALSA_CARDS="ad1889 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl he" USERLAND="GNU" VIDEO_CARDS="stifb fbdev matrox" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 136186 [details] build log
I bet it's lack of nptl support on hppa...
(In reply to comment #2) > I bet it's lack of nptl support on hppa... default-linux/hppa/2007.0 is nptl-only. Maybe it's broken, but it's definitely what HPPA uses right now.
Ah, I only looked at the top level. So that's probably not it.
27 Nov 2007; Jeroen Roovers <jer@gentoo.org> glib-2.14.3.ebuild: Make hppa use -O1. That fixed the 2.14.3 issue, it seems. 2.14.4 ran the tests fine without the patch, oddly, so I am leaving this bug opened to maybe get some clue as to how this was fixed or not.
.
I pushed 2.14.5 if you'd like to test
(In reply to comment #7) > I pushed 2.14.5 if you'd like to test 1) Does 2.14.5 explicitly include a fix for this issue? 2) There's a good chance the problem is in gcc, not glib, and that's why #203543 blocks this bug.
I've made some more test and this is not a bug. If you set "ulimit -s unlimited" before starting the merge, you won't run into the problem, whatever CFLAGS you have. Most probably the MALLOC_PERTURB_ or simply the HPPA NPTL implementation makes the stack grow higher than the 8M limit. I don't think we should change the system default limit. Since this is obviously not a bug, I'll close it as INVALID in a few days.
(In reply to comment #9) > I've made some more test and this is not a bug. > > If you set "ulimit -s unlimited" before starting the merge, you won't run into > the problem, whatever CFLAGS you have. > > Most probably the MALLOC_PERTURB_ or simply the HPPA NPTL implementation makes > the stack grow higher than the 8M limit. > > > I don't think we should change the system default limit. > Since this is obviously not a bug, I'll close it as INVALID in a few days. Agreed. There have been no reports of similar test failures and the ulimit stack change does solve the issue.