Re: 2.3.31 (and 2.3.32pre2) breaks cpp with segmentation fault (ok

Mike Galbraith (mikeg@weiden.de)
Sun, 12 Dec 1999 05:07:51 +0100 (CET)


On Sat, 11 Dec 1999, Terry Hardie wrote:

> On Sat, 11 Dec 1999, David Dyck wrote:
>
> > something (mremap?) broke cpp between 2.3.30 and 2.3.31
> > (2.3.30 is ok, 2.3.31 causes segmentation fault in cpp)
> >
> > Compiling and testing perl has proved useful to find bugs/problems
> > with new linux kernels. This is the first time I get a repeatable
> > Segmentation fault from gcc (the preprocessor at that!)
> > after upgrading to a new kernel. (older kernels don't have
> > this problem.)
> >
> [... snip ...]
> >
> > Can anyone else reproduce this also?
>
> Yes, this is happening when compiling ppp_deflate as a module also. I know
> my system doesn't have abd memory/other hardware, and other have posted
> with the same problem. I can do several make -j 10 on the kernel source
> and not have it barf (except on that same file every time)

<datapoint>

Heinz Diehl reported this exact problem. In my work tree, it isn't a
problem. (I _hate_ it when I don't have the same problems as other
folks ;-) Obviously, this tree is heavily patched, but nothing that
should be able to make this difference, and nothing that isn't very
heavily tested.

with add-ons:
gcc -D__KERNEL__ -I/usr/local/src/tmp/linux-2.3.31.ikd.raid.fpumemcpy/include
-Wall -Wstrict-prototypes -O2 -fno-omit-frame-pointer -fno-strict-aliasing
-pipe -DCPU=586 -march=i586 -mcpu=pentium -DMODULE -DMODVERSIONS -include
/usr/local/src/tmp/linux-2.3.31.ikd.raid.fpumemcpy/include/linux/modversions.h
-c -o ppp_deflate.o ppp_deflate.c
gcc -D__KERNEL__ -I/usr/local/src/tmp/linux-2.3.31.ikd.raid.fpumemcpy/include
-Wall -Wstrict-prototypes -O2 -fno-omit-frame-pointer -fno-strict-aliasing
-pipe -DCPU=586 -march=i586 -mcpu=pentium -DMODULE -DMODVERSIONS -include
/usr/local/src/tmp/linux-2.3.31.ikd.raid.fpumemcpy/include/linux/modversions.h
-c -o ppp_synctty.o ppp_synctty.c
...

without add-ons:
gcc -D__KERNEL__ -I/usr/local/src/tmp/linux-2.3.31.ikd.raid.fpumemcpy/include
-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing
-pipe -mpreferred-stack-boundary=2 -DCPU=586 -march=i586 -mcpu=pentium
-DMODULE -DMODVERSIONS -include /usr/local/src/tmp/linux-2.3.31.ikd.raid.fpumemcpy/include/linux/modversions.h
-c -o ppp_deflate.o ppp_deflate.c
gcc -D__KERNEL__ -I/usr/local/src/tmp/linux-2.3.31.ikd.raid.fpumemcpy/include
-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing
-pipe -mpreferred-stack-boundary=2 -DCPU=586 -march=i586 -mcpu=pentium
-DMODULE -DMODVERSIONS -include /usr/local/src/tmp/linux-2.3.31.ikd.raid.fpumemcpy/include/linux/modversions.h
-c -o ppp_synctty.o ppp_synctty.c
...

I just noticed that the kernel I'm running (with add-ons) is missing
-mpreferred-stack-boundary=2 (oops). Maybe it's worth a shot to drop
that flag and see if it makes a difference? (thinking alignment woes)

-Mike

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/