qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [Bug 1429313] [NEW] qemu-user doesn't block target signals


From: Timothy Baldwin
Subject: [Qemu-devel] [Bug 1429313] [NEW] qemu-user doesn't block target signals on entry to signal hanlder.
Date: Sat, 07 Mar 2015 01:20:53 -0000

Public bug reported:

Upon entry to a target signal handler the function
process_pending_signals in linux-user/signal.c block the appropriate
host signals, but signals already received and queued by Qemu are not
blocked. If multiple signals arrive in quick succession this results
incorrect recursion in the target signal handler.

The attached test case my be run as:

$ (sleep 2 ; echo) | qemu-i386 ./a.out
.................. Recursion in signal handler!
qemu: uncaught target signal 6 (Aborted) - core dumped

** Affects: qemu
     Importance: Undecided
         Status: New

** Attachment added: "Testcase"
   https://bugs.launchpad.net/bugs/1429313/+attachment/4336774/+files/sigtest.c

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1429313

Title:
  qemu-user doesn't block target signals on entry to signal hanlder.

Status in QEMU:
  New

Bug description:
  Upon entry to a target signal handler the function
  process_pending_signals in linux-user/signal.c block the appropriate
  host signals, but signals already received and queued by Qemu are not
  blocked. If multiple signals arrive in quick succession this results
  incorrect recursion in the target signal handler.

  The attached test case my be run as:

  $ (sleep 2 ; echo) | qemu-i386 ./a.out
  .................. Recursion in signal handler!
  qemu: uncaught target signal 6 (Aborted) - core dumped

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1429313/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]