Segmentaion fault during kernel compile

Segmentaion fault during kernel compile

Post by JoohyeonPa » Fri, 29 Oct 2004 18:02:21



I met a message like that during kernel compile

 "/opt/usr/bin/ppc_82xx-ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000
-Bstatic arch/ppc/kernel/head.o arch/ppc/kernel/idle_6xx.o init/main.o
init/version.o \
        --start-group \
        arch/ppc/kernel/kernel.o arch/ppc/platforms/platform.o
arch/ppc/mm/mm.o arch/ppc/lib/lib.o kernel/kernel.o mm/mm.o fs/fs.o
ipc/ipc.o \
         drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o drivers/pci/driver.o
drivers/mtd/mtdlink.o drivers/macintosh/macintosh.o
drivers/video/video.o \
        net/network.o \
        /RAID/sunset/EV_64460/SecuiOS-EV64460/lib/lib.a \
        secui_utils/nvram/nxg_nvram.o \
        --end-group \
        -o vmlinux
make: *** [vmlinux] Segmentation fault
make: *** Deleting file `vmlinux'
"
 As I know Segmentation fault occurs in user level compile!!
 But I have no idea about what made such segmentation fault
 during kernel compile.

 
 
 

Segmentaion fault during kernel compile

Post by JoohyeonPa » Sat, 30 Oct 2004 09:34:32



> I met a message like that during kernel compile

>  "/opt/usr/bin/ppc_82xx-ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000
> -Bstatic arch/ppc/kernel/head.o arch/ppc/kernel/idle_6xx.o init/main.o
> init/version.o \
>         --start-group \
>         arch/ppc/kernel/kernel.o arch/ppc/platforms/platform.o
> arch/ppc/mm/mm.o arch/ppc/lib/lib.o kernel/kernel.o mm/mm.o fs/fs.o
> ipc/ipc.o \
>          drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
> drivers/net/net.o drivers/media/media.o drivers/pci/driver.o
> drivers/mtd/mtdlink.o drivers/macintosh/macintosh.o
> drivers/video/video.o \
>         net/network.o \
>         /RAID/sunset/EV_64460/SecuiOS-EV64460/lib/lib.a \
>         secui_utils/nvram/nxg_nvram.o \
>         --end-group \
>         -o vmlinux
> make: *** [vmlinux] Segmentation fault
> make: *** Deleting file `vmlinux'
> "
>  As I know Segmentation fault occurs in user level compile!!
>  But I have no idea about what made such segmentation fault
>  during kernel compile.

Additional Question:
More precisely , I met above message during kernel ld as you see.
And this message often occurred when I modified kernel source codes.
Nevertheless  I don't have any idea about which code modification made
this messge!!

 
 
 

Segmentaion fault during kernel compile

Post by Rusty Wrigh » Sat, 30 Oct 2004 09:43:03


Gcc is crashing on you which shouldn't happen.  Try the newsgroup
gnu.gcc.help.

> I met a message like that during kernel compile

>  "/opt/usr/bin/ppc_82xx-ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000
> -Bstatic arch/ppc/kernel/head.o arch/ppc/kernel/idle_6xx.o init/main.o
> init/version.o \
>         --start-group \
>         arch/ppc/kernel/kernel.o arch/ppc/platforms/platform.o
> arch/ppc/mm/mm.o arch/ppc/lib/lib.o kernel/kernel.o mm/mm.o fs/fs.o
> ipc/ipc.o \
>          drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
> drivers/net/net.o drivers/media/media.o drivers/pci/driver.o
> drivers/mtd/mtdlink.o drivers/macintosh/macintosh.o
> drivers/video/video.o \
>         net/network.o \
>         /RAID/sunset/EV_64460/SecuiOS-EV64460/lib/lib.a \
>         secui_utils/nvram/nxg_nvram.o \
>         --end-group \
>         -o vmlinux
> make: *** [vmlinux] Segmentation fault
> make: *** Deleting file `vmlinux'
> "
>  As I know Segmentation fault occurs in user level compile!!
>  But I have no idea about what made such segmentation fault
>  during kernel compile.

 
 
 

Segmentaion fault during kernel compile

Post by Grant Edward » Sat, 30 Oct 2004 10:01:03



Quote:> I met a message like that during kernel compile
> make: *** [vmlinux] Segmentation fault
> make: *** Deleting file `vmlinux'

Is it repeatable?  Does it crash on the same file every time?
If so, it's a gcc bug.

If it happens randomly, it's almost certainly a hardware
problem: bad RAM, bad hard drive, overheating CPU, bad
motherboard.

http://www.bitwizard.nl/sig11/

--
Grant Edwards                   grante             Yow!  I'm receiving a coded
                                  at               message from EUBIE BLAKE!!
                               visi.com            

 
 
 

Segmentaion fault during kernel compile

Post by Grant Edward » Sat, 30 Oct 2004 10:04:17




>> I met a message like that during kernel compile

No, it's during a kernel link.

Quote:>> make: *** [vmlinux] Segmentation fault
>> make: *** Deleting file `vmlinux'

> Is it repeatable?  Does it crash on the same file every time?
> If so, it's a gcc bug.

I should have looked more closely, it's not gcc, it's ld.

Quote:> If it happens randomly, it's almost certainly a hardware
> problem: bad RAM, bad hard drive, overheating CPU, bad
> motherboard.

> http://www.bitwizard.nl/sig11/

--
Grant Edwards                   grante             Yow!  .. I wonder if I
                                  at               ought to tell them about my
                               visi.com            PREVIOUS LIFE as a COMPLETE
                                                   STRANGER?
 
 
 

Segmentaion fault during kernel compile

Post by Grant Edward » Sat, 30 Oct 2004 10:02:53



Quote:> Gcc is crashing on you which shouldn't happen.

Huh?  It's ld that's segfaulting.

Quote:> Try the newsgroup gnu.gcc.help.

No.

Quote:>>  "/opt/usr/bin/ppc_82xx-ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000
[...]
>>         -o vmlinux
>> make: *** [vmlinux] Segmentation fault
>> make: *** Deleting file `vmlinux'
>> "
>>  As I know Segmentation fault occurs in user level compile!!
>>  But I have no idea about what made such segmentation fault
>>  during kernel compile.

If it always happens at that point, it probably a bug in the
linker.  Check the gnu binutils mailing list.

--
Grant Edwards                   grante             Yow!  These PRESERVES
                                  at               should be FORCE-FED to
                               visi.com            PENTAGON OFFICIALS!!

 
 
 

Segmentaion fault during kernel compile

Post by Chuck Gale » Sat, 30 Oct 2004 20:39:12


On Thu, 28 Oct 2004


> I met a message like that during kernel compile

>  "/opt/usr/bin/ppc_82xx-ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000
> -Bstatic arch/ppc/kernel/head.o arch/ppc/kernel/idle_6xx.o init/main.o
> init/version.o \
>         --start-group \
>         arch/ppc/kernel/kernel.o arch/ppc/platforms/platform.o
> arch/ppc/mm/mm.o arch/ppc/lib/lib.o kernel/kernel.o mm/mm.o fs/fs.o
> ipc/ipc.o \
>          drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
> drivers/net/net.o drivers/media/media.o drivers/pci/driver.o
> drivers/mtd/mtdlink.o drivers/macintosh/macintosh.o
> drivers/video/video.o \
>         net/network.o \
>         /RAID/sunset/EV_64460/SecuiOS-EV64460/lib/lib.a \
>         secui_utils/nvram/nxg_nvram.o \
>         --end-group \
>         -o vmlinux
> make: *** [vmlinux] Segmentation fault
> make: *** Deleting file `vmlinux'
> "
>  As I know Segmentation fault occurs in user level compile!!
>  But I have no idea about what made such segmentation fault
>  during kernel compile.

One thing which immediately caught my eye was the linking in of:

/RAID/sunset/EV_64460/SecuiOS-EV64460/lib/lib.a

I am not sure where this comes from, but it seems like this is something
which you added or came from a third party(since it has an absolute path).

If I was to venture a guess, I would say that there is something wrong
with this library which is causing problems.

Chuck

 
 
 

Segmentaion fault during kernel compile

Post by amir knippe » Mon, 01 Nov 2004 00:52:21


is it cross compiler ? (if it cross you can try and compile it in native
compiler)

arch/ppc/vmlinux.lds  - this is the linker script you can look at it and see
more details on the linkage

 
 
 

1. Slackware 2.3, kernel 1.2.8 segmentaion faults

: Hi all,

: I just picked up the Slackware Pro 2.3 4 disk set.  I went through the
: installation and got a segmentation fault when it installed my fonts.
: The rest of the installation was fine.

(rest deleted)

I had a similar problem, but in addtion, sometimes the install program
would just quit mid-install.  No warnings, no nothin'.  The problem
occurred with both the color and the tty version of setup.  In the
end there were a number of disk sets I just un-tarred by hand.  X
was especially bad.  I finally got it to work by copying all the
files in disk1 - diskn into disk1.  cat'ing the tagfiles together
and re-running setup.  My old faithful 0.99 installed easier than
this.

                                     Eric Roe

2. Need help on setting up my Sound Blaster Vibra 16..

3. LKCD (Linux Kernel Crash Dump) Segmentaion Fault

4. Sockets questions

5. Segmentaion fault trying to run Quake2

6. h2n

7. While threads and segmentaion fault.

8. How can I detect a hard/soft link?Please help!

9. newbie: what is "Segmentaion fault"?

10. xquake: Segmentaion fault?

11. segmentaion fault with ls

12. Error: segmentaion fault (core dumped)

13. Segmentaion Fault - core dumped !!!!!