Re: [linux-lvm] Segment Failure ,while doing lvcreate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"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



[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux