Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147030 - xfractint-20.4.03 segfaults as user but runs as root (permissions not set properly on /usr/share/xfractint/*)
Summary: xfractint-20.4.03 segfaults as user but runs as root (permissions not set pro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 147158
  Show dependency tree
 
Reported: 2006-09-10 01:32 UTC by Lutz Lehmann
Modified: 2006-09-13 06:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lutz Lehmann 2006-09-10 01:32:33 UTC
Just switched to gcc-4.1.1, so I had to upgrade to xfractint-20.4.03
FRACTDIR is set to /usr/share/xfractint. Running xfractint as root works properly, but trying the same as a user it segfaults:

Fractint found the following problems when parsing commands:
Can't find map=./maps/default.map, please check sstools.ini
Can't find ifsfile=./ifs/fractint.ifs, please check sstools.ini
Can't find parmfile=./pars/fractint.par, please check sstools.ini
Can't find lfile=./lsystem/fractint.l, please check sstools.ini
Can't find formulafile=./formulas/fractint.frm, please check sstools.ini

Press Escape to abort, any other key to continueSegmentation fault


As far as I can tell, it first tries to read user-specific files from ~ and then reads default values found in /usr/share/xfractint. But that won't work:

nx6110 xfractint # ls -la
total 655
drwxrwxrwx   8 root root    344 Sep 10 10:17 .
drwxr-xr-x 226 root root   6208 Sep  9 23:00 ..
-rw-r--r--   1 root root   3917 Sep 10 10:17 debugfla.doc
drw-r--r--   2 root root    176 Sep 10 10:17 extra
drw-r--r--   2 root root    424 Sep 10 10:17 formulas
-rw-r--r--   1 root root 613909 Sep 10 10:17 fractint.hlp
-rw-r--r--   1 root root  17535 Sep 10 10:17 fractsrc.doc
-rw-r--r--   1 root root  17114 Sep 10 10:17 hc.doc
drw-r--r--   2 root root     80 Sep 10 10:17 ifs
drw-r--r--   2 root root    136 Sep 10 10:17 lsystem
drw-r--r--   2 root root    816 Sep 10 10:17 maps
drw-r--r--   2 root root    424 Sep 10 10:17 pars
-rw-r--r--   1 root root    331 Sep 10 10:17 sstools.ini


chmod +x on all the dirs does the trick for me, so my question would be if that's broken by design. If not, please add the chmod to the ebuild :)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-12 03:31:17 UTC
Same here. On a side note:

QA Notice: pre-stripped files found:
/var/tmp/portage/xfractint-20.4.03/image/usr/X11R6/bin/xfractint

Comment 2 Michal Januszewski (RETIRED) gentoo-dev 2006-09-13 06:38:01 UTC
Fixed in CVS. Thanks for reporting the problem.