Bug 147030 - xfractint-20.4.03 segfaults as user but runs as root (permissions not set properly on /usr/share/xfractint/*)
Bug#: 147030 Product:  Gentoo Linux Version: 2006.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: spock@gentoo.org Reported By: mail@lutz-uwe-lehmann.de
Component: Applications
URL: 
Summary: xfractint-20.4.03 segfaults as user but runs as root (permissions not set properly on /usr/share/xfractint/*)
Keywords:  
Status Whiteboard: 
Opened: 2006-09-10 01:32 0000
Description:   Opened: 2006-09-10 01:32 0000
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 From Jakub Moc (RETIRED) 2006-09-12 03:31:17 0000 -------
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 From Michal Januszewski 2006-09-13 06:38:01 0000 -------
Fixed in CVS. Thanks for reporting the problem.