Your message dated Fri, 14 Oct 2016 17:28:22 +0000
with message-id <e1bv6ho-00040g...@franck.debian.org>
and subject line Bug#748043: fixed in qemu 1:2.7+dfsg-1
has caused the Debian Bug report #748043,
regarding qemu-user-static: qemu-arm-static bug in signal handling avoids using 
mono
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
748043: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748043
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: qemu-user-static
Version: 2.0.0+dfsg-4
Severity: normal
Tags: upstream patch

Dear Maintainer,

running mono in a chroot environment with qemu-user-static is not posible
because at least one signal used during termination of mono is routed to the
host.

This can be reproduced by:
debootstrap --include=mono-runtime --foreign --arch=armel "wheezy" "mono-test" 
"http://ftp.de.debian.org//debian";
cp /usr/bin/qemu-arm-static mono-test/usr/bin
mount -t proc none mono-test/proc
mount -o bind /dev mono-test/dev
mount -o bind /sys mono-test/sys
chroot mono-test
../debootstrap/debootstrap --second-stage
exit
mount -t proc none mono-test/proc
mount -o bind /sys mono-test/sys
chroot mono-test
QEMU_STRACE=1 /usr/bin/mono /usr/lib/mono/4.0/gacutil.exe

This will block on a futex:

--8<--
18663 sched_yield(0,0,2582980,0,0,2582928) = 0
18663 clock_gettime(1,-150996384,2,1,2585016,2585600) = 0
18663 tgkill(18663,18664,30,18664,30,-161951744) = 0
18663 futex(0x00293774,FUTEX_PRIVATE_FLAG|FUTEX_WAIT,0,NULL,NULL,0)
--8<--

If you use mono within strace on a native x86 box you can see, that signals
between threads are used during termination:

strace -f -o log.txt /usr/bin/mono /usr/lib/mono/4.0/gacutil.exe

--8<--
14075 sched_yield()                     = 0                                     
14075 tgkill(14075, 14083, SIGPWR)      = 0                                     
14075 futex(0x983f00, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>              
14083 <... futex resumed> )             = ? ERESTARTSYS (To be restarted)       
14083 --- SIGPWR (Power failure) @ 0 (0) ---                                    
14083 futex(0x983f00, FUTEX_WAKE_PRIVATE, 1) = 1                                
14075 <... futex resumed> )             = 0                                     
14083 rt_sigsuspend(~[INT QUIT ABRT TERM XCPU RTMIN RT_1] <unfinished ...>      
14075 futex(0x94d9a4, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647, 0x94da20, 24) = 
3
14078 <... futex resumed> )             = 0                                     
14078 futex(0x94da20, FUTEX_WAKE_PRIVATE, 1) = 1                                
14077 <... futex resumed> )             = 0                                     
14075 futex(0x94d9a4, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647, 0x94da20, 26 
<unfinished ...>
--8<--

This also blocks the installation of libnunit2.6-cil within a armel chroot,
because it uses mono in its postinst script.
E.g. (/usr/bin/mono /usr/share/mono/MonoGetAssemblyName.exe 
/usr/lib/cli/nunit.core-2.6/nunit.core.dll)

Obviously the same as described in:
http://lists.opensuse.org/opensuse-arm/2011-12/msg00000.html
is happening here.

There is an openSuSE patch against qemu:
https://build.opensuse.org/package/view_file/Virtualization:Qemu/qemu/0002-XXX-work-around-SA_RESTART-race-wit.patch?expand=1

This patch also applies against qemu from backports-wheezy and resolves this
issue.

As it seems, that this issue is not Debian specific i will also report it to
the qemu project and reference this bug report.

-- System Information:
Debian Release: 7.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: armel (armv7l)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

--- End Message ---
--- Begin Message ---
Source: qemu
Source-Version: 1:2.7+dfsg-1

We believe that the bug you reported is fixed in the latest version of
qemu, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 748...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Tokarev <m...@tls.msk.ru> (supplier of updated qemu package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 14 Oct 2016 13:31:40 +0300
Source: qemu
Binary: qemu qemu-system qemu-block-extra qemu-system-common qemu-system-misc 
qemu-system-arm qemu-system-mips qemu-system-ppc qemu-system-sparc 
qemu-system-x86 qemu-user qemu-user-static qemu-user-binfmt qemu-utils 
qemu-guest-agent qemu-kvm
Architecture: source amd64
Version: 1:2.7+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Debian QEMU Team <pkg-qemu-de...@lists.alioth.debian.org>
Changed-By: Michael Tokarev <m...@tls.msk.ru>
Description:
 qemu       - fast processor emulator
 qemu-block-extra - extra block backend modules for qemu-system and qemu-utils
 qemu-guest-agent - Guest-side qemu-system agent
 qemu-kvm   - QEMU Full virtualization on x86 hardware
 qemu-system - QEMU full system emulation binaries
 qemu-system-arm - QEMU full system emulation binaries (arm)
 qemu-system-common - QEMU full system emulation binaries (common files)
 qemu-system-mips - QEMU full system emulation binaries (mips)
 qemu-system-misc - QEMU full system emulation binaries (miscellaneous)
 qemu-system-ppc - QEMU full system emulation binaries (ppc)
 qemu-system-sparc - QEMU full system emulation binaries (sparc)
 qemu-system-x86 - QEMU full system emulation binaries (x86)
 qemu-user  - QEMU user mode emulation binaries
 qemu-user-binfmt - QEMU user mode binfmt registration for qemu-user
 qemu-user-static - QEMU user mode emulation binaries (static version)
 qemu-utils - QEMU utilities
Closes: 473240 748043 829243 838145 838146 838147 838850 839292 840740
Changes:
 qemu (1:2.7+dfsg-1) UNRELEASED; urgency=medium
 .
   * Acknowledge the previous NMU. Thank you Andrew!
   * New upstream release, 2.7 (Closes: #748043, #839292)
     Closes: #838850, CVE-2016-7161
     Closes: #473240 (qcow encryption support has been removed)
   * removed patches which went upstream, refreshed use-data-path.patch
   * renamed remaining patches to include CVE#s and added Bug-Debian headers
   * added Depends on lsb-base to qemu-guest-agent (Closes: #840740)
   * update binfmt registration for mipsn32 (Closes: #829243)
     Thank you Adam Borowski for investigation and the patch
   * replace CVE-2016-7156 (#837339) patch with actual code from upstream
   * scsi-mptsas-use-g_new0-to-allocate-MPTSASRequest-obj-CVE-2016-7423.patch
     (Closes: #838145, CVE-2016-7423)
   * virtio-add-check-for-descriptor-s-mapped-address-CVE-2016-7422.patch
     (Closes: #838146, CVE-2016-7422)
   * scsi-pvscsi-limit-process-IO-loop-to-ring-size-CVE-2016-7421.patch
     (Closes: #838147, CVE-2016-7421)
Checksums-Sha1:
 d681156ef4019b9da7dd0b14574d5c619892d5dc 5374 qemu_2.7+dfsg-1.dsc
 23c938287362d0911a595aa32a941b972960cb5a 6601064 qemu_2.7+dfsg.orig.tar.xz
 abbdb86b425eb7b8113d5747166b1ed5e86119b1 67132 qemu_2.7+dfsg-1.debian.tar.xz
 94e0c85be6603bfd6e057a91b56770568f280576 176070 
qemu-block-extra-dbgsym_2.7+dfsg-1_amd64.deb
 e0fe92be53d362113f6ef6b53acca454e87344d2 85362 
qemu-block-extra_2.7+dfsg-1_amd64.deb
 d83bf4e21dcdb64e817a189b71182bf2dd124f36 652860 
qemu-guest-agent-dbgsym_2.7+dfsg-1_amd64.deb
 c4f89e92aa1c89f80ceaf7c8e0bb83ff9db79f0f 219486 
qemu-guest-agent_2.7+dfsg-1_amd64.deb
 eed2788718ee118875bcbf47577c399e24779224 56004 qemu-kvm_2.7+dfsg-1_amd64.deb
 21987feda6ebbd01b532f7e97312eaed5f11ec4a 28128304 
qemu-system-arm-dbgsym_2.7+dfsg-1_amd64.deb
 ae711f671aa44589c49221ffd7943c9ac24f8728 4886984 
qemu-system-arm_2.7+dfsg-1_amd64.deb
 2fd20af16c069490d4add6ef9ce112d1d19984a3 243662 
qemu-system-common-dbgsym_2.7+dfsg-1_amd64.deb
 693f727e71404244ce613d62a8c88912d2eabc5c 383174 
qemu-system-common_2.7+dfsg-1_amd64.deb
 07fc9312441a8a1bfbf4475dc5280b85bc35f8d9 47482936 
qemu-system-mips-dbgsym_2.7+dfsg-1_amd64.deb
 1b20d9a6ee94ffdcc727b836ff356a270ba5c808 8265506 
qemu-system-mips_2.7+dfsg-1_amd64.deb
 35921f741226335c0b6082b035811f9532a302d9 119996044 
qemu-system-misc-dbgsym_2.7+dfsg-1_amd64.deb
 205dadc9684a4bb1b7f50bf64f29549067b424f7 9486008 
qemu-system-misc_2.7+dfsg-1_amd64.deb
 10abb29fc070fc2ce592b31312d8f255100410f1 36716748 
qemu-system-ppc-dbgsym_2.7+dfsg-1_amd64.deb
 af7e206a4ef26a9c9e2cf5a39d53134d762bac8e 6477536 
qemu-system-ppc_2.7+dfsg-1_amd64.deb
 980c722a7f78172cd944b804153458a54e4b9926 17954162 
qemu-system-sparc-dbgsym_2.7+dfsg-1_amd64.deb
 c6a4c8e2e78c86fe442e12f07b3883c3f00895b6 2358306 
qemu-system-sparc_2.7+dfsg-1_amd64.deb
 0e61be67efd2bce2b583face9755712a18998a6b 26134990 
qemu-system-x86-dbgsym_2.7+dfsg-1_amd64.deb
 baa52759b5692528c3e2c1fe29934162037972dd 4433228 
qemu-system-x86_2.7+dfsg-1_amd64.deb
 7598bc9c2cc4a1a16e67e231339f6d80a64d84ef 55062 qemu-system_2.7+dfsg-1_amd64.deb
 2cfa38ea688a0a940b1d62c90f129b7757f3a7d9 2616 
qemu-user-binfmt_2.7+dfsg-1_amd64.deb
 dc651d2cd8013b9a704ccdde6f89930efc2c6873 65684372 
qemu-user-dbgsym_2.7+dfsg-1_amd64.deb
 412f82edf7a57005cef2c94887db66c3caddb8b9 73340940 
qemu-user-static-dbgsym_2.7+dfsg-1_amd64.deb
 35c64c02af330661897bc85c41659d442f2d1ce0 6721956 
qemu-user-static_2.7+dfsg-1_amd64.deb
 37e391ed8b0ef696c65fdf9c65410d54e94c90ef 6018956 qemu-user_2.7+dfsg-1_amd64.deb
 47a3c4002467dde1577cbb7f37068fd623a33941 7617866 
qemu-utils-dbgsym_2.7+dfsg-1_amd64.deb
 f5e3b13336b75a7ae1f1867a102633e98f83e939 764830 qemu-utils_2.7+dfsg-1_amd64.deb
 e1e13f90222eefc4593aba94a2bf6025cccb9a53 136592 qemu_2.7+dfsg-1_amd64.deb
Checksums-Sha256:
 3f5d17e2fefa7721ecac3001418923c5bfe0e296829eb7f8c1161d073f672b25 5374 
qemu_2.7+dfsg-1.dsc
 2554833a33fedd30264f7428422d3608d722f189bac4f23251f171e770a7e566 6601064 
qemu_2.7+dfsg.orig.tar.xz
 87449f5050f37f7a2dae57c2717a6c7e8114550461104f664db4fd3cc6e7483d 67132 
qemu_2.7+dfsg-1.debian.tar.xz
 91e7a6f5ae649e00d1568f5ba13e380ee36cd2435ab4dc1d5522ffb9da9a0d03 176070 
qemu-block-extra-dbgsym_2.7+dfsg-1_amd64.deb
 aa3a7be3ea7388af5b2444f2d0507448e41f4accc680878c5a6994c6f43a182d 85362 
qemu-block-extra_2.7+dfsg-1_amd64.deb
 f6bcf43a9539e65053619afc01be60c358a1995e7a2a691115c96584756f4035 652860 
qemu-guest-agent-dbgsym_2.7+dfsg-1_amd64.deb
 d0fe8357c830d3a652ad09d90ab8053a9ff7e5908ea008bfd003e6d16dc8d7c3 219486 
qemu-guest-agent_2.7+dfsg-1_amd64.deb
 f1a542557e0b162d071ac4f3cacd37f27517195a86190f76e009d02aca4ae7a6 56004 
qemu-kvm_2.7+dfsg-1_amd64.deb
 ae0157f026e1345a35bec049de9ca2f9cd7aefd95c1ac3518c22cef0c1af321a 28128304 
qemu-system-arm-dbgsym_2.7+dfsg-1_amd64.deb
 feb899e31e77db77a20f85c220f0ca6e7b7b025bb38808b34c4a6709ee60e802 4886984 
qemu-system-arm_2.7+dfsg-1_amd64.deb
 5b0e664e60b1cc3bdca9bcc1b7e9c5fe2f3679d808bd1d9faf450bffbbfb0d5e 243662 
qemu-system-common-dbgsym_2.7+dfsg-1_amd64.deb
 677642398a2c0344d5a56c0936b9875f20fb56a3bc301c7ac8ccda467f7edfbf 383174 
qemu-system-common_2.7+dfsg-1_amd64.deb
 33c303b3257b9a7d92a9bbe71b3f5767f936e7e1ade261fc62aba931e7eb7b50 47482936 
qemu-system-mips-dbgsym_2.7+dfsg-1_amd64.deb
 6b8a16791aeab285d4b8755219ea86a474a072cbb985d34d1d97b97202d8807d 8265506 
qemu-system-mips_2.7+dfsg-1_amd64.deb
 cad887e693628a301cd9448592ddb0569c0eca7387c2f3d050c8fa3967d2f0ee 119996044 
qemu-system-misc-dbgsym_2.7+dfsg-1_amd64.deb
 bcba7caa6aa9930b9b1a5cbcb59e6945a2328535378c7be483d206c008954a19 9486008 
qemu-system-misc_2.7+dfsg-1_amd64.deb
 db2b5eb8a5a9a9a2a2af86db2cd7d8ed4d30e8a9e7ffe3c03f0bb80131f1961e 36716748 
qemu-system-ppc-dbgsym_2.7+dfsg-1_amd64.deb
 a96b560ffb3983fd82c4791965b9a2a695bdc4a2bc5ee7f34da0c9da16289e36 6477536 
qemu-system-ppc_2.7+dfsg-1_amd64.deb
 0544c308f596ca0fe3d33ab61471c1806755a327d742e46098f85c274f48e4cd 17954162 
qemu-system-sparc-dbgsym_2.7+dfsg-1_amd64.deb
 2d1bcabef47285756d13ad0600f590da6bccb910ebc8e54b3e0617d49e50d759 2358306 
qemu-system-sparc_2.7+dfsg-1_amd64.deb
 0ce1aa59e6d5d4fbccb9d1fc8de41d8d4e15d89af0023c853b8e5db02caf5405 26134990 
qemu-system-x86-dbgsym_2.7+dfsg-1_amd64.deb
 ef3ed7f0eb4e606f2f33377e13db24a0a7d2f08a9439facd0553f6062f870109 4433228 
qemu-system-x86_2.7+dfsg-1_amd64.deb
 4c6a498944482e08fbca59ca338dc7852b3b79e3495e7965cbf1a8ae56f04837 55062 
qemu-system_2.7+dfsg-1_amd64.deb
 56abd2881cfd8d0faaf8eee15dce2d5fe9ad8864792fb66709bdb8c2594bde4f 2616 
qemu-user-binfmt_2.7+dfsg-1_amd64.deb
 b6df145cf8fac817d4d8a2b833acd9107cd4126c806f583c240f817dcf111da3 65684372 
qemu-user-dbgsym_2.7+dfsg-1_amd64.deb
 76326aa825d8823637fdbbf4f4da109e4cc918fd0cc90d2b925658a73c799b61 73340940 
qemu-user-static-dbgsym_2.7+dfsg-1_amd64.deb
 e256b6e6bf0adc1dffc2f45ec1272195bbf1ae2ada4e031da9bd7ac40909bdca 6721956 
qemu-user-static_2.7+dfsg-1_amd64.deb
 b0a5a2a468c3a81fa6e38d24e029123dc38d9d137e6926842417014b2514f8b2 6018956 
qemu-user_2.7+dfsg-1_amd64.deb
 8d0e3602691ae4ad2d0c91356c36f9a6e3457bad7ebeeb012b57e07d1fdf49bf 7617866 
qemu-utils-dbgsym_2.7+dfsg-1_amd64.deb
 eface59dac48060d876a480043d6581658541fe790a02102648cbcbaf1a8bf81 764830 
qemu-utils_2.7+dfsg-1_amd64.deb
 66e0ba8ac51badbb19aa847a8c17d56fe1c6f82136ea4c189a98b0c705d1e1a7 136592 
qemu_2.7+dfsg-1_amd64.deb
Files:
 f94c5b51e3e6e87a734c415e79843d19 5374 otherosfs optional qemu_2.7+dfsg-1.dsc
 7d0e3db5fb8e3e5879d25c0465e50110 6601064 otherosfs optional 
qemu_2.7+dfsg.orig.tar.xz
 4456f333e3b3666c88a261178ca89ea3 67132 otherosfs optional 
qemu_2.7+dfsg-1.debian.tar.xz
 03af9d7aa1b91fd765e7127cb60ac949 176070 debug extra 
qemu-block-extra-dbgsym_2.7+dfsg-1_amd64.deb
 d4b02ddc3037049293e6b41af42d86a7 85362 otherosfs optional 
qemu-block-extra_2.7+dfsg-1_amd64.deb
 bd578cabbf132232f1f95aa056e556b3 652860 debug extra 
qemu-guest-agent-dbgsym_2.7+dfsg-1_amd64.deb
 958c15abc392d65af63e5b198cfc83c5 219486 otherosfs optional 
qemu-guest-agent_2.7+dfsg-1_amd64.deb
 42c20d076ac3ad2eddd1f55e260367d6 56004 otherosfs optional 
qemu-kvm_2.7+dfsg-1_amd64.deb
 832eb5dab01a59722a9973ffadee2b87 28128304 debug extra 
qemu-system-arm-dbgsym_2.7+dfsg-1_amd64.deb
 f91d5f80bd39976c8bb7b08ddd5ffa96 4886984 otherosfs optional 
qemu-system-arm_2.7+dfsg-1_amd64.deb
 41aa19f4d25e7f012eed911ed4d91d41 243662 debug extra 
qemu-system-common-dbgsym_2.7+dfsg-1_amd64.deb
 99a555db43c3632db9909081f6e9fac1 383174 otherosfs optional 
qemu-system-common_2.7+dfsg-1_amd64.deb
 873bb1cf467b97a202372d8fc2463601 47482936 debug extra 
qemu-system-mips-dbgsym_2.7+dfsg-1_amd64.deb
 356a2b9723c60d52d3fcf182733a8767 8265506 otherosfs optional 
qemu-system-mips_2.7+dfsg-1_amd64.deb
 3df86b70de7b8af456d22860e4775bd1 119996044 debug extra 
qemu-system-misc-dbgsym_2.7+dfsg-1_amd64.deb
 6c9f079aa12313b3b889f0d0cea1a9c7 9486008 otherosfs optional 
qemu-system-misc_2.7+dfsg-1_amd64.deb
 65eebf0d920383f537c7b3633c3cd5fb 36716748 debug extra 
qemu-system-ppc-dbgsym_2.7+dfsg-1_amd64.deb
 8c96377f6d1ccebf0390604cb026be25 6477536 otherosfs optional 
qemu-system-ppc_2.7+dfsg-1_amd64.deb
 26fade45868042279142b30b19551435 17954162 debug extra 
qemu-system-sparc-dbgsym_2.7+dfsg-1_amd64.deb
 63cef85dd7b66616dbeb67e1b7104895 2358306 otherosfs optional 
qemu-system-sparc_2.7+dfsg-1_amd64.deb
 55f53b13220d49b8d7f05e543ce0cd9a 26134990 debug extra 
qemu-system-x86-dbgsym_2.7+dfsg-1_amd64.deb
 e2621d0fe6ab3972108dbb278eb66937 4433228 otherosfs optional 
qemu-system-x86_2.7+dfsg-1_amd64.deb
 ed003a87aab82878d1236316c6856ded 55062 otherosfs optional 
qemu-system_2.7+dfsg-1_amd64.deb
 ec485b66e839e5bd138a998d4d2fb707 2616 otherosfs optional 
qemu-user-binfmt_2.7+dfsg-1_amd64.deb
 1b2e4159be91aa2a2fd9f5adcf0e71d2 65684372 debug extra 
qemu-user-dbgsym_2.7+dfsg-1_amd64.deb
 f443d032bdeaf3d1b9502c43f9cda21c 73340940 debug extra 
qemu-user-static-dbgsym_2.7+dfsg-1_amd64.deb
 dcf9ad14b16b82cfcc82e7b0598b734e 6721956 otherosfs optional 
qemu-user-static_2.7+dfsg-1_amd64.deb
 444afcfce4af49fef96ee6d625c6bd50 6018956 otherosfs optional 
qemu-user_2.7+dfsg-1_amd64.deb
 215647796458166b37bde207cdd7d57e 7617866 debug extra 
qemu-utils-dbgsym_2.7+dfsg-1_amd64.deb
 63ef90a4b6e791e1ea9cf9a4f9ef713b 764830 otherosfs optional 
qemu-utils_2.7+dfsg-1_amd64.deb
 9b556212befd9a15096be0ee68a121b6 136592 otherosfs optional 
qemu_2.7+dfsg-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJYAQpJAAoJEHAbT2saaT5ZEJwH/iScjmN9bDg9TK3YqMygeDuS
QA4i6UabGa4/pTxZ6VKAvy2KeKBjW/KTZB3mtb+c8REv4la2spU5K0VIrhxw39lU
HphMpUcg0+zGbXz1EXFbFOtO3uDDo1PovZQhQ2Bpt/MfrKxQxaHILWvq3is4coAP
5sVrh+uZEFk1WcF0Mwi8Mn7d+GDRQmke7dCRxlmxGOBPsUlhdDJPtIrrxKA4sETp
YzlTmZrpIsf520k8i3O+X96k1zdSDNqUOHwB5/vHZ2kGQDcbIp9WMu8TMGt/vesG
MNwtbtBJcyXdPoUdIJEj37cFiZbDzoM+ItKp5HWitqLf5W/Ar7E0eIUS3SFIGSU=
=dq6l
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to