Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

simultaneous signal handling and setjmp/longjmp

 
   Soft32 Home -> Linux -> Kernel RSS
Next:  [PATCH] usb-audio: fix combine_word problem  
Author Message
Chris Friesen

External


Since: Nov 10, 2006
Posts: 104



(Msg. 1) Posted: Fri Nov 06, 2009 5:20 pm
Post subject: simultaneous signal handling and setjmp/longjmp
Archived from groups: linux>kernel (more info?)

I've got a bit of an odd hypothetical question dealing with signals and
setjmp/longjmp.

Suppose we have an app with multiple signals pending. (Say, SIGALRM and
SIGSEGV.) In the signal handler for SIGSEGV, we're going to call call
longjmp(). (Yes, I'm aware of the issues.)

At this point we're still in the kernel and both SIGSEGV and SIGALARM
are pending. What happens?

If we run the SIGSEGV handler does the SIGALARM stay pending until the
segfault handler completes? What happens when the segfault handler
calls longjmp()? Does the SIGALARM handler get called on the logical
return from sigsetjmp(), and if so how does that happen since the glibc
code for setjmp/longjmp doesn't seem to call any kernel syscalls?

Thanks for any information you can provide...

Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo.RemoveThis@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top
Login to vote
Display posts from previous:   
Related Topics:
which signal is sent to freeze process? - My understanding is that Linux kernel sends a signal to freeze processes during suspend2ram operation. Which signal is....

Sleeping thread not receive signal until it wakes up - Hi all, I am having this problem. I have a process with 2 threads created. One of the thread will keep calling IOCTL ....

Signal state of threads can be set incorrectly - I've run into a scenario recently where the signal processing state of a process can get out of whack--threads have a..

[RFC] [PATCH] selective signal ptracing - Selective Ptraced Signal Support - A proposed enhancement This is a proposal for a ptrace enhancement that adds two ne...

[PATCH] Use ERESTARTNOHAND if poll() is interrupted by a s.. - Hi Andrew, poll() returns -EINTR if a signal is pending. EINTR is a bad choice: it means that poll returns to user..

[RFC: 2.6 patch] make kernel/signal.c:kill_proc_info() - This patch makes the needlessly global kill_proc_info() static. Signed-off-by: Adrian Bunk <bunk@stusta.de> ---...
       Soft32 Home -> Linux -> Kernel All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]