segmentation faults & ps3vram swap?

YDL running on the Sony Playstation 3

Moderator: billb

segmentation faults & ps3vram swap?

Postby billb » 20 Jan 2010, 18:40

When building some applications on YDL 6.2 that are more demanding in terms of memory usage during compiling, I get this sort of error frequently:

../filter/hq2x.cpp: In function 'void HQ4X_16(uint8*, uint32, uint8*, uint32, int, int)':
../filter/hq2x.cpp:11975: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccZMW0da.out file, please attach this to your bugreport.
make[1]: *** [../filter/snes9x_gtk-hq2x.o] Error 1


In that particular case it was with the latest version of snes9x-gtk, but it happens occasionally with other things like sdlmame. Sometimes it will get through OK, so it seems random.

I don't have any particular reason to point at the ps3vram swap as causing this problem, but it seems I never have this problem when I disable ps3vram swap before compiling. If you're experiencing the same problem -- "internal compiler error: Segmentation fault" -- try disabling ps3vram swap before compiling. To do that:

Code: Select all
su -

<root password>

Code: Select all
swapoff /dev/ps3vram


Code: Select all
exit
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Re: segmentation faults & ps3vram swap?

Postby billb » 26 Jan 2010, 22:14

This just happened to me once again today while building RPMs for wxGTK ... internal compiler error. I disable ps3vram swap and start the build process again -- works fine.
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Re: segmentation faults & ps3vram swap?

Postby bonedome » 27 Jan 2010, 14:13

Hmmm
maybe that's why I can't build gnash-0.8.6 (seem to remember something about segmentation faults) I have 0.8.5 which after a few hiccups and a good 3 hours built fine, I'll give that a try later
60Gb ps3 otheros awol. currently playing:bad company and farcry 2 again (seeing how far I can get using permadeath principle)update: regretfully Warren Clyde was involved in a shootout south of Pala and killed when he was hit by a land rover. RIP Warren
User avatar
bonedome
ydl guru
ydl guru
 
Posts: 755
Joined: 07 Aug 2008, 16:03
Location: uk

Re: segmentation faults & ps3vram swap?

Postby uncholowapo » 28 Jan 2010, 08:36

I actually didn't get the error but I too was also building the latest version of snes9x-gtk when it got stuck on one part of the compile process. Both ps3vram and my swap partition were going crazy so I had to cancel the compilation. I thought that maybe if I had left it overnight it would finish with an error or something but I never found out. Wierd...
PS3 40GB has YDL 6.1 running 480i on a piece of $#!% Sanyo 24 incher. Need to go to 1080p.
User avatar
uncholowapo
ydl guru
ydl guru
 
Posts: 687
Joined: 19 Feb 2008, 02:58
Location: Norcross, GA USA

Re: segmentation faults & ps3vram swap?

Postby billb » 28 Jan 2010, 13:58

uncholowapo wrote:I actually didn't get the error but I too was also building the latest version of snes9x-gtk when it got stuck on one part of the compile process. Both ps3vram and my swap partition were going crazy so I had to cancel the compilation. I thought that maybe if I had left it overnight it would finish with an error or something but I never found out. Wierd...


Probably around the hq2x filter part? Same thing happens here, but it gets through it eventually. Also, if you're trying to build it on YDL you need a small patch as I mentioned here:

http://code.google.com/p/snes9x-gtk/iss ... d=29&can=1
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Re: segmentation faults & ps3vram swap?

Postby uncholowapo » 28 Jan 2010, 15:17

Wow, didn't know you were fluent in C++. Cool, when I get home I'll try it out. Now about the ps3vram thing, have you tried using a new kernel that has ps3vram as an actual device instead of an mtdblock? Maybe that could be it? I'm just throwing out questions here :wink:
PS3 40GB has YDL 6.1 running 480i on a piece of $#!% Sanyo 24 incher. Need to go to 1080p.
User avatar
uncholowapo
ydl guru
ydl guru
 
Posts: 687
Joined: 19 Feb 2008, 02:58
Location: Norcross, GA USA

Re: segmentation faults & ps3vram swap?

Postby billb » 28 Jan 2010, 15:29

uncholowapo wrote:Wow, didn't know you were fluent in C++.


I wish that was the case, but I just used my Google-fu for that one (get error, search for error, mess with source code, yay it works). :wink:

Now about the ps3vram thing, have you tried using a new kernel that has ps3vram as an actual device instead of an mtdblock? Maybe that could be it? I'm just throwing out questions here :wink:


No -- have not tried that. I've considered making an updated kernel rpm for YDL 6.2/PS3, though.
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Re: segmentation faults & ps3vram swap?

Postby oeboeroe » 28 Jan 2010, 21:09

seems like a prime candidate for YDL bugzilla?

shame if all this good info just sits on this board only, this is good stuff!

I am intrested in your updated kernels srpm!

thanks again!
PS3 60GB model (10GB gameos) 3.15 firmware YDL 6.2
PS3 80GB model (10GB gameos) 3.15 firmware YDL 6.2
LG W2486L-PF FULLHD LED/TN.
WD Elements 1.5 TB USB2.0 (WDBAAU0015HBK-EESN)
oeboeroe
ydl beginner
ydl beginner
 
Posts: 42
Joined: 11 Jan 2010, 07:42

Re: segmentation faults & ps3vram swap?

Postby uncholowapo » 28 Jan 2010, 23:59

billb wrote:
Now about the ps3vram thing, have you tried using a new kernel that has ps3vram as an actual device instead of an mtdblock? Maybe that could be it? I'm just throwing out questions here :wink:


No -- have not tried that. I've considered making an updated kernel rpm for YDL 6.2/PS3, though.

It's worth a shot. I'd do it but my brother is obsessed with Modern Warfare 2 :wink: Another possibility is just the compiler itself just like the error says. What's the version of gcc default in YDL? 4.1 right? Well try compiling it with ppu-gcc43. I think there is a configure option to let you put a prefix infront of gcc, "--exec-prefix" I think.
PS3 40GB has YDL 6.1 running 480i on a piece of $#!% Sanyo 24 incher. Need to go to 1080p.
User avatar
uncholowapo
ydl guru
ydl guru
 
Posts: 687
Joined: 19 Feb 2008, 02:58
Location: Norcross, GA USA


Return to Playstation 3

Who is online

Users browsing this forum: No registered users and 14 guests