Netboot Mailing List (by thread)

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

Strange SIGSEGV



Hi !

I'm trying to get netboot to work, but makerom terminates almost
immediately after startup.

System:
 - Redhat-6.0 with an updated Kernel-2.2.5-22
 - gcc-2.8.1 or egcs-1.1.2 (tried both - same behaviour)
 - CFLAGS with -g or -O2 (tried both with both compilerd)
 - Pentium2/300 or 486/33 (treid on both machines with the compilers
      above)

`strace makerom` gives
--- snip ---
execve("./makerom/makerom", ["./makerom/makerom"], [/* 83 vars */]) = 0
brk(0)                                  = 0x80e9aa4
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=0, st_size=0, ...})   = 0
mmap(0, 16838, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
fstat(3, {st_mode=0, st_size=0, ...})   = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 974392, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40019000
mprotect(0x400ff000, 32312, PROT_NONE)  = 0
mmap(0x400ff000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0xe5000) = 0x400ff000
mmap(0x40104000, 11832, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON
YMOUS, -1, 0) = 0x40104000
close(3)                                = 0
munmap(0x40014000, 16838)               = 0
personality(PER_LINUX)                  = 0
getpid()                                = 2700
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
--- snip ---

Some times it dies after 3 'sbrk()'s which follow the getpid() SysCall.

Debugging with `ddd` (or gdb, respectively) shows only (if I set a
breakpoint at main())
--- snip ---
Breakpoint 1, main (argc=134517600, argv=0x1) at main.c:132
--- snip ---

For argc this unusual large ...

Does anyone has successfully compiled the thing ?

	bernd

--
 Bernd Petrovitsch               Institute of Computer Technology
 Gußhausstraße 25-29, A-1040 Vienna Email: bernd@ict.tuwien.ac.at
 "Der Horizont vieler Menschen ist ein Kreis mit Radius Null -
  und das nennen sie ihren Standpunkt."               A. Einstein




PGP signature



For requests or suggestions regarding this mailing list archive please write to netboot@gkminix.han.de.