Bug 5551 - xfs_check from xfsprogs (ver. 20020330) seems to seg fault
Bug#: 5551 Product:  Gentoo Linux Version: 1.2 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: fisi.tilman.klar@gmx.de Reported By: Scott@James.com
Component: Ebuilds
URL: 
Summary: xfs_check from xfsprogs (ver. 20020330) seems to seg fault
Keywords:  
Status Whiteboard: 
Opened: 2002-07-25 05:09 0000
Description:   Opened: 2002-07-25 05:09 0000
When I emerge xfsprogs (ver. 20020330) and run xfs_check on a validfilesystem,
it runs xfs_db which in turn gives me the followingerror.> xfs_check
/dev/hdc2/usr/sbin/xfs_check: line 62:  1489 Segmentation fault  xfs_db$ISFILE
-i -p   xfs_check -c "check$OPTS" $1xfs_check is just a wrapper script for
xfs_db. However xfs_repair, also part of xfsprogs, seems to work ok.Also, if I
build xfsprogs-2.0.6.src.tar.gz, downloaded directly from SGI'swebsite and do a
generic install on it, its xfs_check seems to work ok.A difference to consider
is that my /etc/make.conf specifies to compilewith `-O3', but the distribution
from SGI tries to use `-O1' but isoverridden by the make.conf and emerge
script.  I haven't tried to change theemerge script to see if forcing -O1 back
would work (since I haven'tfigured out how), but it may be worth someone's try.

------- Comment #1 From phoen][x 2002-07-26 12:55:09 0000 -------
Strange, it works in a gcc3 environment. Anyways, if the optimization FLAG 
is higher than -O1 and you compile it in a gcc-2.95.3 environment, xfs_check
will segfault. I modified the ebuild so that xfsprogs will always be compiled
with -O1.

The new version is xfsprogs-20020330-r1 (its masked).

Could you give it a try, scott?

-phoen][x-

------- Comment #2 From phoen][x 2002-07-27 13:08:02 0000 -------
Closing bug, unmasking ebuild.

-phoen][x-