[linux-lvm] LVM and 2.4.13

Mitch Miller mitch at mdmiller.com
Tue Oct 30 13:43:02 UTC 2001


James,

> When I try to create the logical volume,
> I get a Seg Fault and core dump.

Take a look at Sistina's web page, and search Bugzilla for core dump.  There
is a documented issue with the version of GCC you are using, which is
happening because of broken compiler optimizations.  As I recall, there are
two workarounds.  First, you can edit your make file, and change -O2 to -O
or you can edit the source and add a printf() statement inside the function
which the compiler is to optimize by making it an inline function.

I chose the 2nd fix so I didn't have to get rid of all optimizations, but
that fix has to be applied in a number of places to make sure that all
command line tools get fixed appropriately.  The first fix has the benefit
of being changed in one place, and the entire works after recompilation, at
the cost of compiler optimization.

-- Mitch

P.S.  Seems like there is also another version of GCC which you can use, but
I don't know which one.






More information about the linux-lvm mailing list