LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 06-13-2005, 05:07 AM   #1
patrickdepingui
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 53

Rep: Reputation: 15
Fatal signal: Segmentation Fault (SDL Parachute Deployed), but not as root


I'm trying to run a Windows screensaver on Linux using Wine. The screensaver uses SDL.
I copied the necessary files to a directory, and opened the exe in Wine.

As root everything works, and I see the screensaver.
As a regular user, it does not. I get:
Fatal signal: Segmentation Fault (SDL Parachute Deployed)

I've used chown to change ownerschip to the user and a "screensaver" group, but that doesn't help.

Where should I look?
 
Old 06-13-2005, 06:43 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
Look at the permissions on all the files needed by the screensaver. (ls -l)

Just because the group et al is right don't mean the group et al have the right permissions.
I expect you'll want rwxr-xr-x (just match what the other screensavers say).

Last edited by Simon Bridge; 06-13-2005 at 06:44 AM.
 
Old 06-13-2005, 06:51 AM   #3
patrickdepingui
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 15
I changed permissions to 755, and even 777 but the same problem exists: root can run it, and a user can't.

ls -l gives:

Quote:
drwxr-xr-x 6 thomas screensaver 352 2005-06-13 11:36 Antarctica/
-rwxr-xr-x 1 thomas screensaver 266240 2005-06-13 11:36 Antarctica.scr*
-rwxr-xr-x 1 thomas screensaver 274432 2005-06-13 11:36 Antarctica_App.exe*
-rwxr-xr-x 1 thomas screensaver 225280 2005-06-13 11:41 SDL.dll*
-rwxr-xr-x 1 thomas screensaver 262144 2005-06-13 11:41 SDL_mixer.dll*
 
Old 06-14-2005, 03:02 AM   #4
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
biik ... hunch tho: possible that the screensaver settings are cached somewhere and you'll have to reboot for the new permissions to take effect (was this tried). If this works, then there is probably some sort of config utility.

The way it runs says that it is a permissions problem. Is it possible that the screensaver calls something elsewhere?

I just had a thought - if these files are just copied over - maybe the screensaver is calling it's support files from the windows partition still? ... maybe not likely but it would be in keeping with win paradigms to have the program look in a particular named directory on the windows c drive if it expects only to be run in a windows environment. This could be checked - what are the permissions for the win partition? If only root has execute access - try giving everyone execute, just for a while. (or rename the files in windows)
 
Old 06-14-2005, 03:15 PM   #5
patrickdepingui
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 15
Hi,a reboot did not fix the problem.
I don't think the screensaver can access window files anymore, since it doesn't now the location to the "C:" drive, since linux mounts this on /win/C.
I already copied the necessary DLLs, without them it gave an error.

I still have the problem though...

thanks for your time already.
 
Old 06-17-2005, 12:13 PM   #6
patrickdepingui
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 15
I installed another program, frozen-bubble, and that works without a problem and uses SDL. So I don't think it's an SDL problem.

Maybe if I post the files, someone can test it out to see if it works for him/her?
 
Old 06-19-2005, 05:02 AM   #7
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
Different screensavers will act differently - windows right - some will want their dlls et al in the same directory, others will look in a specific (named) directory - assuming it's there. (This is poor programming BTW. But it happens.)

You have a point about not knowing where the c: drive is - if it wants a named directory, it's code will look for c:\fu\bar or whatever ... technically, you could write a wrapper to trap that sort of thing However: your problem is not that a file cannot be found (which is what you'd get if it was trying to look for a non-existant directory) but that only root can access something vital needed to run the screensaver.

It comes down to how badly you want to have this particular screensaver.

Have you tried altering the permissions for your win mountpoint?
Wine should be able to come with this - like aliasing c:\ to something useful in linux.

Last edited by Simon Bridge; 06-19-2005 at 05:49 AM.
 
Old 06-19-2005, 05:24 AM   #8
patrickdepingui
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks! It seems indeed that wine has its own windows-directories in ~/.wine/drive_c/windows

In Windows, the screensaver files were all in the C:\Windows\ directory, so I tried placing the files in the wine equivalent. This did indeed seem to solve the problem.

I did need to cd first to the right directory, so I wrote a little script to do this
#!/bin/bash
cd ~/.wine/drive_c/windows
wine Antarctica_App.exe

(I'm writing this if others are having the same problem...)
Don't forget to chmod +x this script...



What I don't understand however, is why root was able to run it, and a regular user couldn't. Probably permissions indeed, but I think the win dir has the right permissions:
-r-xr-xr-x 2 root root 266240 2004-07-05 11:31 Antarctica.scr*
-r-xr-xr-x 2 root root 274432 2004-07-05 11:26 Antarctica_App.exe*
-r-xr-xr-x 1 root root 225280 2002-10-07 09:49 SDL.dll*
-r-xr-xr-x 2 root root 262144 2003-03-09 12:53 SDL_mixer.dll*

And the same for the other files.
Shouldn't that be enough?
 
Old 06-19-2005, 05:47 AM   #9
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
So what are the wine directory permissions then?
(.wine, .wine/win_c and .wine/win_c/windows)

Last edited by Simon Bridge; 06-19-2005 at 05:52 AM.
 
Old 06-19-2005, 06:14 AM   #10
patrickdepingui
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 15
these are in the home directory, and so r/w for the user
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cube fails to run with segmentation fault (SDL parachute deployed) bomarrow1 Linux - Games 11 09-23-2006 10:25 AM
Fatal signal: Segmentation Fault (SDL Parachute Deployed) avis Linux - Software 1 05-10-2005 11:40 AM
Segmentation fault(SDL parachute deployed) DropSig Linux - Software 0 06-12-2004 12:28 PM
frozen bubble Segmentation Fault (SDL Parachute Deployed) lrt2003 Linux - Games 7 04-18-2004 04:48 PM
SDL-Quake, Segmentation fault, Fullscreen and LAN-problems... Jonthebest Linux - Software 0 09-13-2003 10:45 AM


All times are GMT -5. The time now is 12:56 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration