Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Segmentation fault when compiling xulrunner
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
daktak
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2002
Posts: 141
Location: Melbourne, Victoria

PostPosted: Mon Oct 31, 2011 3:39 am    Post subject: Segmentation fault when compiling xulrunner Reply with quote

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
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3825
Location: USA

PostPosted: Mon Oct 31, 2011 5:38 am    Post subject: Reply with quote

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@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
daktak
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2002
Posts: 141
Location: Melbourne, Victoria

PostPosted: Tue Nov 01, 2011 10:27 pm    Post subject: Reply with quote

I'll look into it, but just prior I successfully compiled libreoffice-3.4.3 ;-)
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Nov 02, 2011 6:02 am    Post subject: Reply with quote

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
View user's profile Send private message
s_bernstein
Apprentice
Apprentice


Joined: 11 Mar 2006
Posts: 172
Location: Bremen, Germany

PostPosted: Wed Nov 02, 2011 6:36 am    Post subject: Reply with quote

Also, if you run make with a parallel compile option (-j) try -j1.
Back to top
View user's profile Send private message
Ato
n00b
n00b


Joined: 22 Dec 2007
Posts: 66
Location: Duisburg, Germany

PostPosted: Thu Jan 05, 2012 5:30 pm    Post subject: Reply with quote

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 8O 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. 8)

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
View user's profile Send private message
Sixtiz
n00b
n00b


Joined: 09 Oct 2002
Posts: 44
Location: Australia

PostPosted: Sat Feb 18, 2012 12:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ato
n00b
n00b


Joined: 22 Dec 2007
Posts: 66
Location: Duisburg, Germany

PostPosted: Sat Feb 18, 2012 2:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sixtiz
n00b
n00b


Joined: 09 Oct 2002
Posts: 44
Location: Australia

PostPosted: Sun Feb 19, 2012 1:12 am    Post subject: Reply with quote

512Mb RAM and 512Mb swap...
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3726

PostPosted: Wed Feb 22, 2012 9:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Sixtiz
n00b
n00b


Joined: 09 Oct 2002
Posts: 44
Location: Australia

PostPosted: Wed Feb 22, 2012 11:38 am    Post subject: Reply with quote

Yes but why crash with a segfault in that case? I would expect an out of memory error...
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3726

PostPosted: Wed Feb 22, 2012 2:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Chiitoo
l33t
l33t


Joined: 28 Feb 2010
Posts: 833
Location: Here and Away Again

PostPosted: Wed Feb 22, 2012 8:20 pm    Post subject: Reply with quote

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~
_________________
Kind Regards,
~ The Noob Unlimited ~

Sore wa sore, kore wa kore.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum