[linux-lvm] Segment Failure ,while doing lvcreate

Sean Burford sean.burford at adelaide.edu.au
Thu Oct 25 18:36:01 UTC 2001


"Eric M. Hopper" wrote:
> On Thu, Oct 25, 2001 at 08:39:35AM -0400, Jason Edgecombe wrote:
> >   recompile lvm tools with the -O0 flag (no optimization).
> > this is because of redhat's 7.x borken gcc compiler
...
>         Does gcc 3.0.1 have this same problem?  Are you sure the bug
> isn't in the code?  (i.e. having a non-volatile variable randomly
> modified under your nose, or some such that would tend to not work so
> well under optimization.)

I've traced it in gdb, and I saw a function (called via an inline) being
given valid arguments but receiving junk arguments.  It looks like the
stack pointer got messed up (I didn't check, I was viewing source not
asm at the time).  Calling the function directly, rather than through
the inline (which only added an argument to the argument list) worked
fine.

Having your arguments corrupted during a function call sure looks like a
compiler bug to me.

-- 
Sean Burford    x34135
ITS Systems Specialist
Adelaide University




More information about the linux-lvm mailing list