linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] Compiling UML 2.6.8.1 with Static Linking results in segfault
  2004-08-19  3:00 [uml-devel] uml-patch-2.6.7-2 Jeff Dike
@ 2004-09-07 21:16 ` Michael Ralston
  2004-09-08  0:18   ` Jeff Dike
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Ralston @ 2004-09-07 21:16 UTC (permalink / raw)
  To: user-mode-linux-devel

I've just tried to compile UML with TT disabled, SKAS enabled and static
linking enabled. When I run the linux binary is immediately segfaults.

I'm using GCC 3.3.4 and Libc6 2.3.2 ...

Can I provide any further info or is this a known problem?

Michael Ralston
Stral.net



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [uml-devel] Compiling UML 2.6.8.1 with Static Linking results in segfault
  2004-09-08  0:18   ` Jeff Dike
@ 2004-09-07 23:57     ` Michael Ralston
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Ralston @ 2004-09-07 23:57 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: 'Jeff Dike'

The core is 483k, want me to email that just to you (not the list), or is
the gdb output below pretty conclusive?

I'm running this on a 2.6.8.1 host with SKAS3-2.6.7-v1 patch, and as I said
libc6-2.3.2, so it's prolly another one of those lovely NPTL/TLS issues.

The Config options which are set:
# CONFIG_MODE_TT is not set
CONFIG_STATIC_LINK=y
CONFIG_MODE_SKAS=y 

If I disable STATIC_LINK then it runs fine...


(gdb) run
Starting program: /uml/linux

Program received signal SIGSEGV, Segmentation fault.
0x08191800 in __libc_setup_tls () at swab.h:134
134     swab.h: No such file or directory.
        in swab.h



> -----Original Message-----
> From: Jeff Dike [mailto:jdike@addtoit.com] 
> Sent: Wednesday, 8 September 2004 10:18 AM
> To: ralston@stral.net
> Cc: user-mode-linux-devel@lists.sourceforge.net
> Subject: Re: [uml-devel] Compiling UML 2.6.8.1 with Static 
> Linking results in segfault 
> 
> ralston@stral.net said:
> > Can I provide any further info or is this a known problem? 
> 
> Get a core, and get a stack trace from it?
> 
> 				Jeff
> 
> 



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [uml-devel] Compiling UML 2.6.8.1 with Static Linking results in segfault
@ 2004-09-08  0:04 Michael Ralston
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Ralston @ 2004-09-08  0:04 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: 'Jeff Dike'

[-- Attachment #1: Type: text/plain, Size: 1660 bytes --]

Hey, the core is 20k gzipped :)

Michael 

> -----Original Message-----
> From: Michael Ralston [mailto:ralston@stral.net] 
> Sent: Wednesday, 8 September 2004 9:58 AM
> To: 'user-mode-linux-devel@lists.sourceforge.net'
> Cc: 'Jeff Dike'
> Subject: RE: [uml-devel] Compiling UML 2.6.8.1 with Static 
> Linking results in segfault 
> 
> The core is 483k, want me to email that just to you (not the 
> list), or is the gdb output below pretty conclusive?
> 
> I'm running this on a 2.6.8.1 host with SKAS3-2.6.7-v1 patch, 
> and as I said libc6-2.3.2, so it's prolly another one of 
> those lovely NPTL/TLS issues.
> 
> The Config options which are set:
> # CONFIG_MODE_TT is not set
> CONFIG_STATIC_LINK=y
> CONFIG_MODE_SKAS=y 
> 
> If I disable STATIC_LINK then it runs fine...
> 
> 
> (gdb) run
> Starting program: /uml/linux
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x08191800 in __libc_setup_tls () at swab.h:134
> 134     swab.h: No such file or directory.
>         in swab.h
> 
> 
> 
> > -----Original Message-----
> > From: Jeff Dike [mailto:jdike@addtoit.com]
> > Sent: Wednesday, 8 September 2004 10:18 AM
> > To: ralston@stral.net
> > Cc: user-mode-linux-devel@lists.sourceforge.net
> > Subject: Re: [uml-devel] Compiling UML 2.6.8.1 with Static Linking 
> > results in segfault
> > 
> > ralston@stral.net said:
> > > Can I provide any further info or is this a known problem? 
> > 
> > Get a core, and get a stack trace from it?
> > 
> > 				Jeff
> > 
> > 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.752 / Virus Database: 503 - Release Date: 3/09/2004
 
  

[-- Attachment #2: core.gz --]
[-- Type: application/octet-stream, Size: 20991 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [uml-devel] Compiling UML 2.6.8.1 with Static Linking results in segfault
  2004-09-07 21:16 ` [uml-devel] Compiling UML 2.6.8.1 with Static Linking results in segfault Michael Ralston
@ 2004-09-08  0:18   ` Jeff Dike
  2004-09-07 23:57     ` Michael Ralston
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Dike @ 2004-09-08  0:18 UTC (permalink / raw)
  To: ralston; +Cc: user-mode-linux-devel

ralston@stral.net said:
> Can I provide any further info or is this a known problem? 

Get a core, and get a stack trace from it?

				Jeff



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [uml-devel] Compiling UML 2.6.8.1 with Static Linking results in segfault
       [not found] <200409072357.i87NvPC20122@lakshmi.solana.com>
@ 2004-09-09  0:42 ` Jeff Dike
  0 siblings, 0 replies; 8+ messages in thread
From: Jeff Dike @ 2004-09-09  0:42 UTC (permalink / raw)
  To: ralston; +Cc: user-mode-linux-devel

ralston@stral.net said:
> The core is 483k, want me to email that just to you (not the list), or
> is the gdb output below pretty conclusive? 

No it's not.  Getting a backtrace at that point would have been nice.

				Jeff



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [uml-devel] Compiling UML 2.6.8.1 with Static Linking results in segfault
       [not found] <200409080004.i8804KC20166@lakshmi.solana.com>
@ 2004-09-09  0:43 ` Jeff Dike
  2004-09-09  4:51   ` Michael Ralston
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Dike @ 2004-09-09  0:43 UTC (permalink / raw)
  To: ralston; +Cc: user-mode-linux-devel

ralston@stral.net said:
> Hey, the core is 20k gzipped :) 

And the core is useless without the binary that produced it.  In any case,
it's probably a lot easier for you to type 'bt' at gdb and send that rather
than compressing a core file and binary and sending them.

				Jeff



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [uml-devel] Compiling UML 2.6.8.1 with Static Linking results in segfault
  2004-09-09  0:43 ` [uml-devel] Compiling UML 2.6.8.1 with Static Linking results in segfault Jeff Dike
@ 2004-09-09  4:51   ` Michael Ralston
  2004-09-09 18:20     ` BlaisorBlade
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Ralston @ 2004-09-09  4:51 UTC (permalink / raw)
  To: 'Jeff Dike'; +Cc: user-mode-linux-devel

(gdb) run
Starting program: /uml/linux-2.4.26-static

Program received signal SIGSEGV, Segmentation fault.
0x0815c520 in __libc_setup_tls ()
(gdb) bt
#0  0x0815c520 in __libc_setup_tls ()
#1  0x0815c82b in __pthread_initialize_minimal ()
#2  0x00000004 in ?? ()
#3  0xbffffd88 in ?? ()
#4  0x0815c2e8 in __libc_start_main ()
Previous frame inner to this frame (corrupt stack?)
(gdb)


I compiled the uml binary with debugging symbols enabled... Let me know if
there is anything else I can do... Would my complete .config be useful?

Michael 

> -----Original Message-----
> From: Jeff Dike [mailto:jdike@addtoit.com] 
> Sent: Thursday, 9 September 2004 10:44 AM
> To: ralston@stral.net
> Cc: user-mode-linux-devel@lists.sourceforge.net
> Subject: Re: [uml-devel] Compiling UML 2.6.8.1 with Static 
> Linking results in segfault 
> 
> ralston@stral.net said:
> > Hey, the core is 20k gzipped :)
> 
> And the core is useless without the binary that produced it.  
> In any case, it's probably a lot easier for you to type 'bt' 
> at gdb and send that rather than compressing a core file and 
> binary and sending them.
> 
> 				Jeff
> 
> 



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [uml-devel] Compiling UML 2.6.8.1 with Static Linking results in segfault
  2004-09-09  4:51   ` Michael Ralston
@ 2004-09-09 18:20     ` BlaisorBlade
  0 siblings, 0 replies; 8+ messages in thread
From: BlaisorBlade @ 2004-09-09 18:20 UTC (permalink / raw)
  To: user-mode-linux-devel, ralston; +Cc: 'Jeff Dike'

On Thursday 09 September 2004 06:51, Michael Ralston wrote:
> (gdb) run
> Starting program: /uml/linux-2.4.26-static
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0815c520 in __libc_setup_tls ()
> (gdb) bt
> #0  0x0815c520 in __libc_setup_tls ()
> #1  0x0815c82b in __pthread_initialize_minimal ()
> #2  0x00000004 in ?? ()
> #3  0xbffffd88 in ?? ()
> #4  0x0815c2e8 in __libc_start_main ()
> Previous frame inner to this frame (corrupt stack?)
> (gdb)
>
>
> I compiled the uml binary with debugging symbols enabled... Let me know if
> there is anything else I can do... Would my complete .config be useful?
Please, try using the 2.6.7-1 patch. There are some changes which could be at 
fault. I'm referring to "load-low" and "link" from 
http://user-mode-linux.sourceforge.net/changelog-uml-patch-2.6.7-2.bz2.html.

At least, just for the reason they touch the linking script (after all, who 
says that the used start address should be the one we use, with TLS)?

Also, please run:
strings /usr/bin/ld | bzip2 >linkScript.bz2

and mail the obtained file (which contains the default linker scripts). I 
think I can build the patch for you easily, with that file; making it work on 
everyone's glibc could be harder.

Bye
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-09-09 18:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200409080004.i8804KC20166@lakshmi.solana.com>
2004-09-09  0:43 ` [uml-devel] Compiling UML 2.6.8.1 with Static Linking results in segfault Jeff Dike
2004-09-09  4:51   ` Michael Ralston
2004-09-09 18:20     ` BlaisorBlade
     [not found] <200409072357.i87NvPC20122@lakshmi.solana.com>
2004-09-09  0:42 ` Jeff Dike
2004-09-08  0:04 Michael Ralston
  -- strict thread matches above, loose matches on Subject: below --
2004-08-19  3:00 [uml-devel] uml-patch-2.6.7-2 Jeff Dike
2004-09-07 21:16 ` [uml-devel] Compiling UML 2.6.8.1 with Static Linking results in segfault Michael Ralston
2004-09-08  0:18   ` Jeff Dike
2004-09-07 23:57     ` Michael Ralston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox