Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

QT keeps segfaulting...

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
24 posts • Page 1 of 1
Author
Message
Vidar
Apprentice
Apprentice
User avatar
Posts: 239
Joined: Wed Apr 09, 2003 4:49 am
Location: Washington, USA

QT keeps segfaulting...

  • Quote

Post by Vidar » Fri Oct 17, 2003 4:39 am

I'm trying to update world, but keep getting stuck on QT. It keeps segfaulting during the compile. The only thing radical I have done was recompile glibc with nptl in the use flags. So maybe gcc needs to be updated or something I don't know... I don't know too much about nptl. Anyone else get this?
g++ -fno-exceptions -Wl,-rpath,/var/tmp/portage/qt-3.2.2/image//usr/qt/3/lib -shared -Wl,-soname,libqui.so.1 -Wl,-rpath,/var/tmp/portage/qt-3.2.2/work/qt-x11-free-3.2.2/lib -o libqui.so.1.0.0 .obj/release-shared-mt/qwidgetfactory.o .obj/release-shared-mt/domtool.o .obj/release-shared-mt/uib.o .obj/release-shared-mt/database.o .obj/release-shared-mt/moc_database2.o -L/var/tmp/portage/qt-3.2.2/work/qt-x11-free-3.2.2/lib -L/usr/X11R6/lib -L/usr/X11R6/lib -lqt-mt -lmng -ljpeg -lpng -lz -lGLU -lGL -lXmu -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread
ln -s libqui.so.1.0.0 libqui.so
ln -s libqui.so.1.0.0 libqui.so.1
ln -s libqui.so.1.0.0 libqui.so.1.0
rm -f ../../../lib/libqui.so.1.0.0
rm -f ../../../lib/libqui.so
rm -f ../../../lib/libqui.so.1
rm -f ../../../lib/libqui.so.1.0
mv -f libqui.so.1.0.0 libqui.so libqui.so.1 libqui.so.1.0 ../../../lib/
make[3]: Leaving directory `/var/tmp/portage/qt-3.2.2/work/qt-x11-free-3.2.2/tools/designer/uilib'
cd designer && make -f Makefile
make[3]: Entering directory `/var/tmp/portage/qt-3.2.2/work/qt-x11-free-3.2.2/tools/designer/designer'
/var/tmp/portage/qt-3.2.2/work/qt-x11-free-3.2.2/bin/uic -L /var/tmp/portage/qt-3.2.2/work/qt-x11-free-3.2.2/plugins listboxeditor.ui -o listboxeditor.h
/var/tmp/portage/qt-3.2.2/work/qt-x11-free-3.2.2/bin/uic -L /var/tmp/portage/qt-3.2.2/work/qt-x11-free-3.2.2/plugins editfunctions.ui -o editfunctions.h
make[3]: *** [listboxeditor.h] Segmentation fault
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [editfunctions.h] Segmentation fault
make[3]: Leaving directory `/var/tmp/portage/qt-3.2.2/work/qt-x11-free-3.2.2/tools/designer/designer'
make[2]: *** [sub-designer] Error 2
make[2]: Leaving directory `/var/tmp/portage/qt-3.2.2/work/qt-x11-free-3.2.2/tools/designer'
make[1]: *** [sub-designer] Error 2
make[1]: Leaving directory `/var/tmp/portage/qt-3.2.2/work/qt-x11-free-3.2.2/tools'
make: *** [sub-tools] Error 2

!!! ERROR: x11-libs/qt-3.2.2 failed.
!!! Function src_compile, Line 131, Exitcode 2
!!! (no error message)
I've tried with really conservative cflags, and that does not seem to help. (-mcpu=athlon -O2)
"Vidar, Odin's mighty son, he will come to slay the wolf
The sword runs into the heart of Hverdrungs son
So he avenges his father" -- Amon Amarth - Burning Creation
Top
Imrahil
n00b
n00b
User avatar
Posts: 42
Joined: Thu Feb 06, 2003 12:59 pm
Location: Madison, Wisconsin, USA
Contact:
Contact Imrahil
Website

  • Quote

Post by Imrahil » Fri Oct 17, 2003 4:45 am

I had the same issue. What a headache. Seems QT has problems with nptl. I just recompiled glibc w/o nptl and recompiled QT. Not much really benefits from nptl now anyway, maybe sun's jdk if you compile from source.
Top
arran4
n00b
n00b
User avatar
Posts: 18
Joined: Fri Sep 19, 2003 2:53 pm
Location: Melbourne, Australia

  • Quote

Post by arran4 » Sat Oct 18, 2003 5:44 am

same, but i dont htink i got nptl compiled in, how would i check?
Top
quark67
Tux's lil' helper
Tux's lil' helper
Posts: 83
Joined: Fri Oct 17, 2003 5:20 pm

  • Quote

Post by quark67 » Mon Oct 20, 2003 2:44 am

I have the same problem... But I have no idea how to compile gcc without ntp1 support - or indeed even what it is... Nonetheess, it's nice to know I'm not alone. If you know how to get over this, please let us know...

quark67
Top
Vidar
Apprentice
Apprentice
User avatar
Posts: 239
Joined: Wed Apr 09, 2003 4:49 am
Location: Washington, USA

  • Quote

Post by Vidar » Mon Oct 20, 2003 2:54 am

I did eventually get it compiled, although I have no idea why or how. Nptl is still in my use flags, and I don't think I did anything crazy other than restarting.
"Vidar, Odin's mighty son, he will come to slay the wolf
The sword runs into the heart of Hverdrungs son
So he avenges his father" -- Amon Amarth - Burning Creation
Top
quark67
Tux's lil' helper
Tux's lil' helper
Posts: 83
Joined: Fri Oct 17, 2003 5:20 pm

  • Quote

Post by quark67 » Mon Oct 20, 2003 3:10 am

Well whatever it is i don't have it in my useflags... What exactly is it? Perhaps i should include it after all?

Q
Top
quark67
Tux's lil' helper
Tux's lil' helper
Posts: 83
Joined: Fri Oct 17, 2003 5:20 pm

  • Quote

Post by quark67 » Mon Oct 20, 2003 3:52 am

Erm... M'kay...Well the same thing happend to me... How weird is that? You seem to have to compile QT twice to get it to work... That's nuts man...

I'd still like to know what this thing was though...

quark67
Top
Imrahil
n00b
n00b
User avatar
Posts: 42
Joined: Thu Feb 06, 2003 12:59 pm
Location: Madison, Wisconsin, USA
Contact:
Contact Imrahil
Website

  • Quote

Post by Imrahil » Mon Oct 20, 2003 4:54 am

quark67 wrote:Erm... M'kay...Well the same thing happend to me... How weird is that? You seem to have to compile QT twice to get it to work... That's nuts man...

I'd still like to know what this thing was though...

quark67
I don't know if that is the case, man. I tried compiling qt at least three times and tried older versions as well. My glibc with nptl was to blame it seems. I recompiled glibc without the nptl and then qt compiled fine. My system is pretty bleeding edge, though. Using ~x86, kernel mm-sources2.6, gcc3.3. YMMV
Top
quark67
Tux's lil' helper
Tux's lil' helper
Posts: 83
Joined: Fri Oct 17, 2003 5:20 pm

  • Quote

Post by quark67 » Mon Oct 20, 2003 5:16 am

Ok, well you could have still just got lucky like we did... I still don't know what this ntpt1 (or whatever... sorry I'm using lynx and don't want to use the back button) really is. I don't have it in my use flags and I have never seen it listed in Gentoo's official use flags listings.

I'm just glad I got past it is all... Although like the last poster, I did nothing at all (other than try twice) to fix the problem.

It kind of confirms for me just how messed up some of these Gentoo packages really are.

Sorry, but its true. Try emeging any large package and there is a 60% probability that it will fail at some point.

I guess we can only hope that this situation improves over time.

quark67
Top
arran4
n00b
n00b
User avatar
Posts: 18
Joined: Fri Sep 19, 2003 2:53 pm
Location: Melbourne, Australia

  • Quote

Post by arran4 » Mon Oct 20, 2003 1:33 pm

Yeah strangly i have been able to fix a package simply by trying to emerge it 3 or 4 times, but i haven't tried doing QT again (ran out of hdd space, 2gb is NOT enough for genoo lol)
Top
quark67
Tux's lil' helper
Tux's lil' helper
Posts: 83
Joined: Fri Oct 17, 2003 5:20 pm

  • Quote

Post by quark67 » Mon Oct 20, 2003 2:04 pm

Mmm, now I seem to have a very odd 'compile twice' bug.... First time round most big packages will fail (and generally at exactly the same points discussed by others on this forum). However the second time round the package will compile without a hitch.

If you want to blame hardware for this then fair enough, but every other major Linux distribution works on this system without a glitch - and it doesn;t explain how these faults are repeatable with other peope on the forum.

Out of interest, which platform are you guys using..? I keep hearing of folks who have no problems at all (usually developers) So (at a stretch) maybe the platform has something to do with it?

For the record I am using a non-overclocked Athlon-xp 2600+.


Quark67
Top
Tobbi
n00b
n00b
Posts: 25
Joined: Thu May 16, 2002 4:29 pm
Location: Karmøy, Norway

Same problem

  • Quote

Post by Tobbi » Mon Oct 20, 2003 8:11 pm

I'm having the same problem too. Haven't tried recompiling qt yet then.
CPU: XP1800+
I'm using nptl.
Kernel: development-sources-2.6.0-test7-bk5.
As a sidenote, mplayer also segfaults when playing .avi and .mp3. I also tried to remerge mplayer, but it still segfaults.

Tobbi
Top
quark67
Tux's lil' helper
Tux's lil' helper
Posts: 83
Joined: Fri Oct 17, 2003 5:20 pm

  • Quote

Post by quark67 » Mon Oct 20, 2003 10:17 pm

Mmm... Well that's two XPs, it's a start I guess.... Personally I'm suffering from a serious case of 'compile twice syndrome', if something doesn't compile the first time round, it is pretty much guranteed it will the second time round. I would dearly love the developers to tell me what causes this...

Nonetheless, that's the best advice I can offer; if it doesn't compile the first time, try again.

As for your MPlayer issues, they are probably unrelated. Maybe some folks in Multimedia could help with that?

Q
Top
arran4
n00b
n00b
User avatar
Posts: 18
Joined: Fri Sep 19, 2003 2:53 pm
Location: Melbourne, Australia

  • Quote

Post by arran4 » Tue Oct 21, 2003 3:26 am

Im just going to use the precompiled binary suppilied on the cd for QT, cant get around the seg faults :S
Top
ben_h
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 118
Joined: Tue Nov 26, 2002 1:19 pm
Location: Australia
Contact:
Contact ben_h
Website

  • Quote

Post by ben_h » Tue Oct 21, 2003 3:33 am

I've never had an issue with large compiles on my box (P4 1.8GHz), but when I did OpenOffice on a mate's box (XP1700), it failed the first time. Worked when I retried it.

Something funny's going on :?
Top
quark67
Tux's lil' helper
Tux's lil' helper
Posts: 83
Joined: Fri Oct 17, 2003 5:20 pm

  • Quote

Post by quark67 » Tue Oct 21, 2003 3:21 pm

Yeah, if you ask me, I think a lot of the Athlon packages are screwed... That is of course, if there is such a thing as athlon packages.

I think I am leaning towrads this conclusion now... The people who say they have no problems have pentiums, the people who say they do have athlons.... Someone ought to put up a poll/sticky to investigate this further...

Q
Top
longshot
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Thu Sep 04, 2003 1:58 pm

  • Quote

Post by longshot » Thu Oct 23, 2003 9:00 am

I'm also getting failures in large emerges, and qt 3.2.2 is one of them.

I'm currently trying to upgrade kde 3.1.3->3.1.4, and more generally a stage 3 live cd installation, the last week and its proving slow going. My last gentoo install went more smoothly, although I did see some issues (crud in /var/portage somehow).

I found stuff in /var/portage which was just wrong (and I deleted), like

/var/portage/-MANIFEST(something)

I've been suspecting disk errors, and memory errors. I've dropped down to trying to ebuild compile. I'm seeing that some of the ebuild scripts retry to compile a source file twice if it fails first time around with a random segmentation violation in the compiler. With a two time failure I get told its probably a hardware error.

I seem to be getting some disk errors reported from fsck. But I've been there are fixed that, and it seems to be cyclic. I'm about to go through another cycle of checking with fsck.

I've also run memtest86 and things passed, but I'm going to give that another try to0.

P4, not athlon.

2.6.0-test8, gcc-3.3.1-r5, ext3 filesystems.

Seems nptl is disabled

Code: Select all

gl2% emerge -pv glibc
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild   R   ] sys-libs/glibc-2.3.2-r6  +nls -pic -build -nptl
Top
longshot
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Thu Sep 04, 2003 1:58 pm

  • Quote

Post by longshot » Thu Oct 23, 2003 9:59 am

memtest86 showed up memory errors.
fsck showed up disk errors.

Removed offending memory stick.

Retrying ...
Top
quark67
Tux's lil' helper
Tux's lil' helper
Posts: 83
Joined: Fri Oct 17, 2003 5:20 pm

  • Quote

Post by quark67 » Thu Oct 23, 2003 12:39 pm

Please report on the results...

Q
Top
longshot
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Thu Sep 04, 2003 1:58 pm

  • Quote

Post by longshot » Thu Oct 23, 2003 10:55 pm

Overnight emerge kde. Still running (approx 12 hours). No fails.

That is with the bad memory stick removed (leaving 512 Mb), and with another fsck fix of disk errors (caused by memory errors?).

Seems memory errors were my (main?) problem.

The emerge fails I was previously getting did not report the "ebuild compile" error. To see a source file get compiled twice and fail both times and then the error message that it was probably a hardware problem reinforced for me that I really needed to run memory and disk checks again.

When I first started to get problems (which were sometimes showing up as make 139 errors) some posts in other threads said check hardware. I did that, found disk errors, but no memory errors - so I had some confidence that memory was ok.

What was confusing is that there was supposedly a "bad 3.3.1 gcc build" at some point. Searching the forums for "make 139 error" turned up lots of discussion about failed emerges with make 139 errors due to a bad gcc build. Some suggestions included "emerge gcc glibc gcc" and then whatever you really wanted to emerge. Tried that, didnt fix it for me.

Been a time sink, but I think I'm through it now :-)
Top
DipShit
n00b
n00b
User avatar
Posts: 18
Joined: Fri Oct 10, 2003 5:59 pm
Location: Palm Bay, FL

  • Quote

Post by DipShit » Sat Oct 25, 2003 8:25 pm

I'm getting segfaults like described above too. Both on Qt (stable.... trying masked version now) and Mplayer. No amount of recompiling helps. I'm on an Athlon +1800.
Top
longshot
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Thu Sep 04, 2003 1:58 pm

  • Quote

Post by longshot » Sat Oct 25, 2003 11:59 pm

My qt build finished without problems after removing bad memory. I'm on a P4 system, where it appears others in this thread are mostly athlons.

I'm interested if people who are having failures have tested memory with memtest86 ...
Top
AcheronH
n00b
n00b
Posts: 8
Joined: Tue Oct 21, 2003 6:34 pm

got the same problem - solved it for me

  • Quote

Post by AcheronH » Mon Oct 27, 2003 2:22 pm

Hi!

my old system: athlon-tbird 1400 MHz, via kt266, 2x256 MB PC133 SDRAM (brand)
I had the same problem with qt, tetex, mysql (for some weird reason i did not get any errors compiling glibc + gcc or even xfree) and some other packages.
After running memtest86 it threw errors in test 5 and 8 (repetitive memmoves, according to the documentation on their website (http://www.memtest86.com) it's the test which is supposed to strain the memory the most (and some interesting comment about mostly athlon systems failing these two tests only).
So I suspected the SDRAMs at first - but then we tested them in two other boxes - they ran fine. I suspected some heat problem with the cpu, so i renewed the heatsink compound (after cleaning thoroughly) - no improvement.
I flashed my bios to an elder version - nothing.

The solution turned up some 2 days later, when the memory faults increased dramatically; the reason: faulty capacitators on the motherboard.
My advice to you: it hasn't got to be the memory, just take a close look at all the capacitators on your board. If they bulge out or eaven leak, you should try to get an RMA. take a look at
http://www.ttiinc.com/MarketEye/Aluminum_Cap_Issue.asp
or, if you understand german
http://www.heise.de/newsticker/result.x ... densatoren
these are just two hits taken from a quick google search.

(sorry for my english, feel free to correct me.)
(EDIT: cleared up a bit)

P.S.:Well, my MoBo (may it rest in pieces) gave up after some more tests - now I had the excuse to go buy a new System. Now working with an AMD XP 3000+ (Barton, 200 MHz FSB) =) the gentoo experience improved dramatically. :-)
To all gentoo devs (and the community): you rock!
(trying to contribute... nothing yet :( )
__
success is the ability to go from one failure to another with no loss of enthusiasm (W. Churchill)
Top
elvis38
n00b
n00b
Posts: 20
Joined: Sun Oct 26, 2003 5:30 pm
Location: Madrid, Spain

  • Quote

Post by elvis38 » Thu Nov 13, 2003 2:58 pm

FWIW, I am running an Athlon-XP 1800+ too and was having problems compiling qt until I added 3dnow and mmx to the USE flags.

Cheers!
Elvis
Top
Post Reply

24 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic