View previous topic :: View next topic |
Author |
Message |
daktak Tux's lil' helper
Joined: 18 Oct 2002 Posts: 142 Location: Melbourne, Victoria
|
Posted: Mon Oct 31, 2011 3:39 am Post subject: Segmentation fault when compiling xulrunner |
|
|
Code: | /var/tmp/portage/net-libs/xulrunner-2.0.1-r1/work/mozilla-2.0/dist/bin/xpidl -m header -w -I. -I../../dist/idl -o _xpidlgen/nsIConsoleListener nsIConsoleListener.idl
nsIConsoleMessage.idl
/var/tmp/portage/net-libs/xulrunner-2.0.1-r1/work/mozilla-2.0/dist/bin/xpidl -m header -w -I. -I../../dist/idl -o _xpidlgen/nsIConsoleMessage nsIConsoleMessage.idl
make[4]: *** [_xpidlgen/nsIConsoleListener.h] Segmentation fault
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [_xpidlgen/nsIConsoleMessage.h] Segmentation fault
make[4]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0.1-r1/work/mozilla-2.0/xpcom/base'
|
I've tried 1.9.2.20, 1.9.2.22 and 2.0.1-r1 all with a segment fault
Code: | CFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -fno-strict-aliasing -pipe"
|
MacMini 2004 ppc |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9709 Location: almost Mile High in the USA
|
Posted: Mon Oct 31, 2011 5:38 am Post subject: |
|
|
Does it segfault on the same file each time you build or some random one?
If the latter, shows that even Apple hardware is vulnerable to hardware issues... and less that can be done to diagnose...
Is there any information in dmesg that corresponds to the segfault? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
daktak Tux's lil' helper
Joined: 18 Oct 2002 Posts: 142 Location: Melbourne, Victoria
|
Posted: Tue Nov 01, 2011 10:27 pm Post subject: |
|
|
I'll look into it, but just prior I successfully compiled libreoffice-3.4.3 |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Wed Nov 02, 2011 6:02 am Post subject: |
|
|
You shouldn't need -fno-strict-aliasing.
Which gcc and glibc are you using? Have you tried more specific cflags for your G4? _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
s_bernstein Apprentice
Joined: 11 Mar 2006 Posts: 172 Location: Bremen, Germany
|
Posted: Wed Nov 02, 2011 6:36 am Post subject: |
|
|
Also, if you run make with a parallel compile option (-j) try -j1. |
|
Back to top |
|
|
Ato n00b
Joined: 22 Dec 2007 Posts: 66 Location: Macclesfield, United Kingdom
|
Posted: Thu Jan 05, 2012 5:30 pm Post subject: |
|
|
Sorry, that I revive this old thread, but I would like to add some information:
I have had a similar problem when compiling xulrunner and thunderbird. Both builds stopped with a segfault on my Mac Mini G4 w. 1GB RAM and 4GB swap space. - And yes, I always build w. -j1.
But I found a way to make the builds go through: I have in /etc/make.conf -ggdb3 set as default. As soon as I remove just this option, resulting in CFLAGS="-O2 -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe", the compilation goes through and everything runs just fine afterwards. Unfortunately debug info is then unavailable.
Hth. Cheers,
T. |
|
Back to top |
|
|
Sixtiz n00b
Joined: 09 Oct 2002 Posts: 56 Location: Australia
|
Posted: Sat Feb 18, 2012 12:58 pm Post subject: |
|
|
Same error here, net-libs/xulrunner-1.9.2.20:
Code: | /var/tmp/portage/net-libs/xulrunner-1.9.2.20/work/mozilla-1.9.2/dist/bin/xpidl -m header -w -I. -I../../dist/idl -o _xpidlgen/nsIConsoleListener nsIConsoleListener.idl
nsIConsoleMessage.idl
/var/tmp/portage/net-libs/xulrunner-1.9.2.20/work/mozilla-1.9.2/dist/bin/xpidl -m header -w -I. -I../../dist/idl -o _xpidlgen/nsIConsoleMessage nsIConsoleMessage.idl
make[4]: *** [_xpidlgen/nsIConsoleListener.h] Segmentation fault
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [_xpidlgen/nsIConsoleMessage.h] Segmentation fault
|
On G4 Mac mini as well.
Code: | CFLAGS="-O2 -mcpu=G4 -mabi=altivec -pipe" |
Consistently fails at the same place. I don't have -ggdb3 but I use -j2... |
|
Back to top |
|
|
Ato n00b
Joined: 22 Dec 2007 Posts: 66 Location: Macclesfield, United Kingdom
|
Posted: Sat Feb 18, 2012 2:07 pm Post subject: |
|
|
Sixtiz wrote: | Same error here, net-libs/xulrunner-1.9.2.20:
Code: | /var/tmp/portage/net-libs/xulrunner-1.9.2.20/work/mozilla-1.9.2/dist/bin/xpidl -m header -w -I. -I../../dist/idl -o _xpidlgen/nsIConsoleListener nsIConsoleListener.idl
nsIConsoleMessage.idl
/var/tmp/portage/net-libs/xulrunner-1.9.2.20/work/mozilla-1.9.2/dist/bin/xpidl -m header -w -I. -I../../dist/idl -o _xpidlgen/nsIConsoleMessage nsIConsoleMessage.idl
make[4]: *** [_xpidlgen/nsIConsoleListener.h] Segmentation fault
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [_xpidlgen/nsIConsoleMessage.h] Segmentation fault
|
On G4 Mac mini as well.
Code: | CFLAGS="-O2 -mcpu=G4 -mabi=altivec -pipe" |
Consistently fails at the same place. I don't have -ggdb3 but I use -j2... |
Very intersting, indeed. I have given up on parallel builds because they would take much longer on my Mac Mini. Strange, I know, and it does not make much sense.
How much memory and swap space do you have?
Cheers,
T. |
|
Back to top |
|
|
Sixtiz n00b
Joined: 09 Oct 2002 Posts: 56 Location: Australia
|
Posted: Sun Feb 19, 2012 1:12 am Post subject: |
|
|
512Mb RAM and 512Mb swap... |
|
Back to top |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Wed Feb 22, 2012 9:32 am Post subject: |
|
|
Sixtiz wrote: | 512Mb RAM and 512Mb swap... |
not sure if that is enough, i havent compiled thunderbird in ppc but in my x86 lappy it needs _at least_ 2 gig of ram to build.
cheers |
|
Back to top |
|
|
Sixtiz n00b
Joined: 09 Oct 2002 Posts: 56 Location: Australia
|
Posted: Wed Feb 22, 2012 11:38 am Post subject: |
|
|
Yes but why crash with a segfault in that case? I would expect an out of memory error... |
|
Back to top |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Wed Feb 22, 2012 2:53 pm Post subject: |
|
|
Sixtiz wrote: | Yes but why crash with a segfault in that case? I would expect an out of memory error... |
im not saying it is because of this but im quite sure that 1 gig ram+swap wont be enough for thunderbird.
As you say usually you should get a "killed by oom" or sth. similar in your logs in case the oom kicks in, not sure why it just segfaults ...
maybe worth a try ? Try increasing your swap, just create a swapfile to test.
cheers |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2595 Location: Here and Away Again
|
Posted: Wed Feb 22, 2012 8:20 pm Post subject: |
|
|
If my memory serves me well (and that's really not certain at all), some time back when I had a faulty memory-stick, reducing my available RAM from 4GiB to 2, I would quite easily run out of 'space' when building stuff such as xulrunner and/or firefox with '-j7', and I do think it would actually go segmentationing faults all over the place.
OK that's a bit of a dramatisation, perhaps not all over the place.
I should probably mention that when it did happen, the whole system (or rather x-server and/or KDE) would become quite unresponsive, freezing and stuttering, until it would 'crash'.
I do think it was around the Firefox 3 era, where I would use 1.9~ xulrunner for that.
So yeah, I concur with looking into expanding the space for the build even though I can not say for sure either, that it will help.
At least for the more recent versions of Firefox, and probably Thunderbird too, there is actually a check in place that will take a look on over the available disk-space and possible RAM too, I forget, and will warn that the build will probably fail if not enough space is found.
That's not about xulrunner, though, which isn't even required as a separate package for them any longer in the more recent builds.
Just some thoughts~ _________________ Kindest of regardses. |
|
Back to top |
|
|
|