Skip to contentSkip to conversation

Question about the unexpected signal 11 when fork in UML-2.6.7 TT mode

uml-devel Alex LIU 2 participants 4 messages Jun 21, 2005 – Jun 24, 2005 User-mode Linux (UML)

lore
Share & tools
lore

Alex LIU

author
#0 lore raw

Hi,all:

When I fork() in UML TT mode,it always said "the sleeping process xxx received unexpedted signal 11" and the UML hang...before fork I also set the signal handler... My UML is 2.6.7 and I used TT mode.Thanks a lot!

Alex

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op�k
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 7 lines · Alex LIU

Hi,all:

When I fork() in UML TT mode,it always said "the sleeping process xxx received unexpedted signal 11" and the UML hang...before fork I also set the signal handler... My UML is 2.6.7 and I used TT mode.Thanks a lot!

Alex

Have you a good reason to use UML 2.6.7? We can't know by heart the list of all fixed bugs in previous UML releases, really, and you'll be doing yourself a favor by upgrading to 2.6.11-bs5 or 2.6.12 (which contains almost everything from -bs).

That said, you are talking about userspace code, right? It's anyway strange that your system boots but you can't write a simple code that fork()'s.

Signature · 23 lines
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



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
author
#2 lore raw

I just let the SIGSEVG go and return from the sleeping_process_signal function instead of tracer_panic and hanging the UML. It seems ok. Is it dangerous? Thanks a lot!

Alex

-----Original Message-----
From: Blaisorblade [mailto:[email protected]]
Sent: Tuesday, June 21, 2005 11:42 PM
To: [email protected]
Cc: Alex LIU
Subject: Re: [uml-devel] Question about the unexpected signal 11 when fork in UML-2.6.7 TT mode

Quoted 8 lines · Alex LIU

Hi,all:

When I fork() in UML TT mode,it always said "the sleeping process xxx received unexpedted signal 11" and the UML hang...before fork I also set the signal handler... My UML is 2.6.7 and I used TT mode.Thanks a lot!

Alex

Have you a good reason to use UML 2.6.7? We can't know by heart the list of all fixed bugs in previous UML releases, really, and you'll be doing yourself a favor by upgrading to 2.6.11-bs5 or 2.6.12 (which contains almost everything from -bs).

That said, you are talking about userspace code, right? It's anyway strange that your system boots but you can't write a simple code that fork()'s.

Signature · 21 lines
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



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op�k
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#3 lore raw
Quoted 3 lines · Alex LIU

I just let the SIGSEVG go and return from the sleeping_process_signal function instead of tracer_panic and hanging the UML. It seems ok. Is it dangerous? Thanks a lot!

The sleeping process will get the SIGSEGV, with whatever content it has; hopefully it should handle it in kernel code but I'm not too sure about the situation. To ignore the signal you'll need a PTRACE_CONT (or PTRACE_SYSCALL, depending on the situation) with a 0 signal value.

However, is this related to the below problem? Did you try the other way around (i.e. upgrading) to solve it?

Quoted 27 lines

Alex

-----Original Message-----
From: Blaisorblade [mailto:[email protected]]
Sent: Tuesday, June 21, 2005 11:42 PM
To: [email protected]
Cc: Alex LIU
Subject: Re: [uml-devel] Question about the unexpected signal 11 when fork in UML-2.6.7 TT mode

Quoted 8 lines · Alex LIU

Hi,all:

When I fork() in UML TT mode,it always said "the sleeping process xxx received unexpedted signal 11" and the UML hang...before fork I also set the signal handler... My UML is 2.6.7 and I used TT mode.Thanks a lot!

Alex

Have you a good reason to use UML 2.6.7? We can't know by heart the list of all fixed bugs in previous UML releases, really, and you'll be doing yourself a favor by upgrading to 2.6.11-bs5 or 2.6.12 (which contains almost everything from -bs).

That said, you are talking about userspace code, right? It's anyway strange that your system boots but you can't write a simple code that fork()'s.

Signature · 23 lines
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



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel