Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12493 - segfault in ld-linux.so do_lookup()
Summary: segfault in ld-linux.so do_lookup()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal
Assignee: Stefan Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-20 14:34 UTC by Dan Armak (RETIRED)
Modified: 2002-12-22 14:43 UTC (History)
1 user (show)

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


Attachments
katehledit_attrib_skel.h (katehledit_attrib_skel.h,1.56 KB, text/plain)
2002-12-21 07:02 UTC, Dan Armak (RETIRED)
Details
katehledit_attrib_skel.ui (katehledit_attrib_skel.ui,9.85 KB, text/plain)
2002-12-21 07:03 UTC, Dan Armak (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Armak (RETIRED) gentoo-dev 2002-12-20 14:34:14 UTC
uic (interface compiler) from the new qt 3.1.1, when run on a particular file, causes: 
Program received signal SIGSEGV, Segmentation fault. 
[Switching to Thread 16384 (LWP 14277)] 
0x40008337 in do_lookup () from /lib/ld-linux.so.2 
 
uic from qt 3.1.0 didn't do that. But, it seems the relevant difference between the two 
is in libqt-mt.so itself not in the uic code, so I haven't been able to track it down yet. 
 
I'll compile glibc without stripping overnight and see if I can debug it further tomorrow 
morning. Meanwhile tips on debugging glibc are welcome if there's anything special 
to it, as I've never tried something like that before :-) 
 
I'll keep this report updated for anyone who might want to keep track.
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-12-20 14:34:53 UTC
Oh, and one more person (a friend of hannes) reported the same, so it's not a 
problem unique to my system. 
Comment 2 Stefan Jones (RETIRED) gentoo-dev 2002-12-21 06:23:49 UTC
Any chance of a clue it which file to run uic on to get the segfault?
If it's small could you include it as an attachment?
Also it is a strange place to segfault, I bet the uic/qt code jumpes to the
wrong line.
Comment 3 Dan Armak (RETIRED) gentoo-dev 2002-12-21 06:59:52 UTC
OK, news: the problem goes away if I export LD_BIND_NOW=1. (I fuond that out by pure chance.) No real idea why... Attaching 2 files (.ui and .h; the .h is generated from the .ui). uic is supposed to generate a .cpp from these 2 files, and segfaults without LD_BIND_NOW. The command line is: ------- /usr/qt/3/bin/uic -L /usr/kde/3/lib/kde3/plugins/designer -nounload -tr tr2i18n -i katehledit_attrib_skel.h ./katehledit_attrib_skel.ui > katehledit_attrib_skel.cpp 
Comment 4 Dan Armak (RETIRED) gentoo-dev 2002-12-21 07:02:37 UTC
Created attachment 6630 [details]
katehledit_attrib_skel.h
Comment 5 Dan Armak (RETIRED) gentoo-dev 2002-12-21 07:03:25 UTC
Created attachment 6631 [details]
katehledit_attrib_skel.ui
Comment 6 Dan Armak (RETIRED) gentoo-dev 2002-12-21 07:05:12 UTC
Note: even when uic segfaults it creates a .cpp file, but it's a partial one, because it 
segfaults midway through creating it. The full file is 4505 bytes. 
Comment 7 Stefan Jones (RETIRED) gentoo-dev 2002-12-21 11:00:32 UTC
I don't get the crash with qt-3.1.1, so I cannot do much to fix it.

If this glibc bug was a bit more comman it would have been fixed, but
it seems to be very rare. Remerging glibc and qt fixed Dan's problem.
Comment 8 Stefan Jones (RETIRED) gentoo-dev 2002-12-22 14:43:04 UTC
Dan seems to have found the patch to fix the bug.
It was a QT problem.