On Wednesday 07 December 2005 17:07, Christoph Dwertmann wrote:
> Hi!

> I'm trying to build my own UML kernel here. It builds fine, but
> executing the kernel leads to:

> GDB shows this:

> Program received signal SIGSEGV, Segmentation fault.
> 0xa028a2d5 in __libc_setup_tls ()
> Current language:  auto; currently asm
> (gdb) bt
> #0  0xa028a2d5 in __libc_setup_tls ()
> #1  0xa028a66f in __pthread_initialize_minimal ()
> #2  0xa028a045 in __libc_start_main ()
> #3  0xa0014021 in _start () at ../sysdeps/i386/elf/start.S:119

Ok, it's due to some weird toolchain-related bug.

> I've built kernels 2.4.23, 2.4.27, 2.4.28 and 2.6.14 with
> Blaisorblade's UML patches. The host kernel is 2.6.15-rc5 vanilla, and
> I'm running Debian sid (updated daily) on x86.

Ok, it's a bug in some new binutils/GCC/glibc. While we try to debug the 
thing, can you post the releases of these 3 components? Also, can you upload 
somewhere and post the URL of your compressed "ld" binary?

Ok, don't need GCC version, but still need binutils:

Linux version 2.6.14-bs2 ([EMAIL PROTECTED]) (gcc version 4.0.3 20051201 
(prerelease) (Debian 4.0.2-5)) #3 Wed Dec 7 16:20:12 CET 2005

> Precompiled kernels do run fine!

Likely due to binutils then. (Not necessarily to a bug, but to some change).

Btw, to help with the current problem (while fixing the bug), have you any 
need unsatisified by existing binaries (either on my site or on 
uml.nagafix.co.uk ?).

> Renaming /lib/tls does not help.

Even doing that on the host? In this (exceptional) case, the result of that 
may be useful.

> I've found quite a few people with the same problem posting on this
> list, none of the proposed solutions worked for me.

> Here's my segfaulting linux binary:
> http://www.informatik.uni-bremen.de/~nermal/linux.bz2

Downloaded and looking at it, it doesn't run here either and shows the same 
syntoms.

> I've spent two days on it now, and I'd appreciate any hints on how to
> get this working. Thanks!

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

        

        
                
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to