[haiku-bugs] [Haiku] #11390: BKernel::TeamSignalEvent::DoDPC: failed to acquire spinlock for a long time

  • From: "jessicah" <trac@xxxxxxxxxxxx>
  • Date: Thu, 30 Oct 2014 10:08:34 -0000

#11390: BKernel::TeamSignalEvent::DoDPC: failed to acquire spinlock for a long 
time
---------------------------+------------------------------
 Reporter:  jessicah       |        Owner:  axeld
     Type:  bug            |       Status:  new
 Priority:  normal         |    Milestone:  R1
Component:  System/Kernel  |      Version:  R1/Development
 Keywords:  spinlock       |   Blocked By:
 Blocking:                 |  Has a Patch:  0
 Platform:  All            |
---------------------------+------------------------------
 Compiling native GHC triggers this panic all the time. However, the
 spinlock command in KDL always says it's not locked, and only one core is
 running (other three are in idle).

 I don't really know how to reduce to a test case, nor know which threads
 to look at.

 However, to reproduce using GHC (it'll continually trigger the KDL when
 resuming), can use the following steps:

 {{{
 wget https://www.haskell.org/ghc/dist/7.8.3/ghc-7.8.3-src.tar.xz
 wget http://haiku.jessicah.org/working-ghc-cross-install.zip
 wget https://raw.githubusercontent.com/nick8325/haiku-ghc/master/ghc-
 patches/0001-Haiku-patches.patch
 tar xJQf ghc-7.8.3-src.tar.xz
 extract working-ghc-cross-install.zip into /system/non-packaged
 cd ghc-7.8.3
 patch -Np1 < ../0001-Haiku-patches.patch
 setarch x86
 ./configure --prefix=/boot/home/test-ghc
 make -jN # multiple jobs seems to trigger it more often than without
 }}}

 You'll also need updated binutils/gcc4 packages (I've just uploaded, and
 available in hrev48162 for gcc2h).

 Links:

 - [https://www.haskell.org/ghc/dist/7.8.3/ghc-7.8.3-src.tar.xz GHC]
 - [http://haiku.jessicah.org/working-ghc-cross-install.zip GHC cross
 compiler]
 - [https://raw.githubusercontent.com/nick8325/haiku-ghc/master/ghc-
 patches/0001-Haiku-patches.patch Patches for Haiku]

--
Ticket URL: <https://dev.haiku-os.org/ticket/11390>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: