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

Bug#677690: marked as done (linux-image-3.2.0-1-powerpc64: Kernel space errno ERESTARTNOHAND escaping into user space)



Your message dated Sat, 16 Jun 2012 14:37:33 +0100
with message-id <1339853853.4942.173.camel@deadeye.wl.decadent.org.uk>
and subject line Re: Bug#677690: linux-image-3.2.0-1-powerpc64: Kernel space errno ERESTARTNOHAND escaping into user space
has caused the Debian Bug report #677690,
regarding linux-image-3.2.0-1-powerpc64: Kernel space errno ERESTARTNOHAND escaping into user space
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 owner@bugs.debian.org
immediately.)


-- 
677690: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677690
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: linux-2.6
Version: 3.2.7-1
Severity: normal

Compiling GHC (Glorious Haskell compiler) from the HEAD of the
git sources.

The GHC runtime is quite sophisticated and has a green threads
implementation a little like that of the JVM.

During compile of one particular file, the complier stalls in a
state where its consuming < 1% of CPU and < 1% of memory. Running
strace on the compile job, I find that when the compile stalls I
get the following strace output:

   rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
   pause()                                 = ? ERESTARTNOHAND (To be restarted)
   --- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
   sigreturn()                             = ? (mask now [])
   pause()                                 = ? ERESTARTNOHAND (To be restarted)
   --- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
   sigreturn()                             = ? (mask now [])
   pause()                                 = ? ERESTARTNOHAND (To be restarted)
   --- SIGVTALRM (Virtual timer expired) @ 0 (0) ---

that continues until I kill the process.

This problem is 100% deterministic and repeatable. Every time I
try to compile this one particlar file I end up with the same
stall.

A bit of googling tells me that ERESTARTNOHAND is supposedly a kernel
level errno that is not supposed to escape into userland. See:

    https://lkml.org/lkml/2011/12/23/117

I logged a bug on the GHC bug tracker as well:

    http://hackage.haskell.org/trac/ghc/ticket/6167



-- Package-specific info:
** Version:
Linux version 3.2.0-1-powerpc64 (Debian 3.2.7-1) (debian-kernel@lists.debian.org) (gcc version 4.6.2 (Debian 4.6.2-11) ) #1 SMP Wed Feb 29 02:37:41 UTC 2012

** Command line:
root=UUID=dbcc8080-7bc6-496c-8506-b0b99408b35a ro ramdisk_size=8192 

** Not tainted

** Kernel log:
[    9.749689] [drm] nouveau 0000:0a:00.0: mem timing table length unknown: 14
[    9.749788] i2c i2c-5: wf_smu_sat: attach_adapter method is deprecated
[    9.749796] i2c i2c-5: Please use another way to instantiate your i2c_client
[    9.749808] i2c i2c-5: wf_lm75: attach_adapter method is deprecated
[    9.749815] i2c i2c-5: Please use another way to instantiate your i2c_client
[    9.749825] i2c i2c-5: wf_max6690: attach_adapter method is deprecated
[    9.749833] i2c i2c-5: Please use another way to instantiate your i2c_client
[    9.768777] [drm] nouveau 0000:0a:00.0: 1 available performance level(s)
[    9.768793] [drm] nouveau 0000:0a:00.0: 0: core 300MHz shader 300MHz memory 500MHz fanspeed 100%
[    9.768815] [drm] nouveau 0000:0a:00.0: c: core 300MHz shader 300MHz memory 500MHz
[    9.769244] nouveau 0000:0a:00.0: Using 32-bit DMA via iommu
[    9.769342] [TTM] Zone  kernel: Available graphics memory: 5278624 kiB.
[    9.769350] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB.
[    9.769361] [TTM] Initializing pool allocator.
[    9.769398] [drm] nouveau 0000:0a:00.0: Detected 256MiB VRAM
[    9.789577] [drm] nouveau 0000:0a:00.0: 512 MiB GART (aperture)
[    9.793299] [drm] nouveau 0000:0a:00.0: Detected TMDS transmitter: sil164
[    9.827652] sil164 5-0038: Detected device 1:6.0
[    9.836263] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[    9.836272] [drm] No driver support for vblank timestamp query.
[    9.836304] [drm] nouveau 0000:0a:00.0: Setting dpms mode 3 on vga encoder (output 0)
[    9.836316] [drm] nouveau 0000:0a:00.0: Setting dpms mode 3 on tmds encoder (output 1)
[    9.836326] [drm] nouveau 0000:0a:00.0: Setting dpms mode 3 on vga encoder (output 2)
[    9.836337] [drm] nouveau 0000:0a:00.0: Setting dpms mode 3 on tmds encoder (output 3)
[    9.836347] [drm] nouveau 0000:0a:00.0: Setting dpms mode 3 on TV encoder (output 4)
[    9.856261] i2c i2c-6: wf_smu_sat: attach_adapter method is deprecated
[    9.856269] i2c i2c-6: Please use another way to instantiate your i2c_client
[    9.856281] i2c i2c-6: wf_lm75: attach_adapter method is deprecated
[    9.856288] i2c i2c-6: Please use another way to instantiate your i2c_client
[    9.856298] i2c i2c-6: wf_max6690: attach_adapter method is deprecated
[    9.856305] i2c i2c-6: Please use another way to instantiate your i2c_client
[    9.962663] i2c i2c-7: wf_smu_sat: attach_adapter method is deprecated
[    9.962672] i2c i2c-7: Please use another way to instantiate your i2c_client
[    9.962681] i2c i2c-7: wf_lm75: attach_adapter method is deprecated
[    9.962688] i2c i2c-7: Please use another way to instantiate your i2c_client
[    9.962697] i2c i2c-7: wf_max6690: attach_adapter method is deprecated
[    9.962705] i2c i2c-7: Please use another way to instantiate your i2c_client
[   10.052413] [drm] nouveau 0000:0a:00.0: allocated 1280x1024 fb: 0x49000, bo c0000003086dcc00
[   10.062943] [drm] nouveau 0000:0a:00.0: 0x14CC: Parsing digital output script table
[   10.112472] [drm] nouveau 0000:0a:00.0: Setting dpms mode 0 on tmds encoder (output 1)
[   10.112479] [drm] nouveau 0000:0a:00.0: Output DVI-I-1 is running on CRTC 0 using output A
[   10.112491] Console: switching to colour frame buffer device 160x64
[   10.113736] fb0: nouveaufb frame buffer device
[   10.113747] drm: registered panic notifier
[   10.113765] [drm] Initialized nouveau 0.0.16 20090420 for 0000:0a:00.0 on minor 0
[   10.297803] snd-aoa-fabric-layout: Using PMF GPIOs
[   10.302239] i2c i2c-0: aoa_codec_onyx: attach_adapter method is deprecated
[   10.302270] i2c i2c-0: Please use another way to instantiate your i2c_client
[   10.302291] i2c i2c-1: aoa_codec_onyx: attach_adapter method is deprecated
[   10.302306] i2c i2c-1: Please use another way to instantiate your i2c_client
[   10.302328] i2c i2c-2: aoa_codec_onyx: attach_adapter method is deprecated
[   10.302344] i2c i2c-2: Please use another way to instantiate your i2c_client
[   10.302361] snd-aoa-codec-onyx: found pcm3052
[   10.305495] snd-aoa-fabric-layout: platform-onyx-codec-ref doesn't match!
[   10.305527] snd-aoa: fabric didn't like codec onyx
[   10.305816] i2c i2c-3: aoa_codec_onyx: attach_adapter method is deprecated
[   10.305834] i2c i2c-3: Please use another way to instantiate your i2c_client
[   10.305853] snd-aoa-codec-onyx: found pcm3052
[   10.306946] snd-aoa-fabric-layout: can use this codec
[   10.326520] sat 0 partition c4: c4 4 1 7f 22 11 e0 e6 ff 55 7b 12 ec 11 0 0
[   10.335746] snd-aoa-codec-onyx: attached to onyx codec via i2c
[   10.335897] snd-aoa-codec-onyx: created and attached onyx instance
[   10.335911] i2c i2c-4: aoa_codec_onyx: attach_adapter method is deprecated
[   10.335928] i2c i2c-4: Please use another way to instantiate your i2c_client
[   10.335951] i2c i2c-5: aoa_codec_onyx: attach_adapter method is deprecated
[   10.335969] i2c i2c-5: Please use another way to instantiate your i2c_client
[   10.335986] i2c i2c-6: aoa_codec_onyx: attach_adapter method is deprecated
[   10.336002] i2c i2c-6: Please use another way to instantiate your i2c_client
[   10.336019] i2c i2c-7: aoa_codec_onyx: attach_adapter method is deprecated
[   10.336034] i2c i2c-7: Please use another way to instantiate your i2c_client
[   11.155572] sat 0 partition c9: c9 6 2 7f ff 2 ff 1 fb bf 0 41 0 20 0 0 0 7 89 37 0 a0 0 0
[   11.780026] sat 0 partition c5: c5 4 1 7f 22 11 e0 e6 ff 55 7b 12 ec 11 0 0
[   12.155356] windfarm: Backside control loop started.
[   12.205580] windfarm: Slots control loop started.
[   12.307029] windfarm: Drive bay control loop started.
[   12.602627] Adding 9974760k swap on /dev/sda4.  Priority:-1 extents:1 across:9974760k 
[   12.901105] EXT3-fs (sda3): using internal journal
[   13.274487] loop: module loaded
[   16.271752] u3msi: allocated virq 0x20 (hw 0x8) addr 0xfee00000
[   16.303547] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   19.378018] tg3 0001:05:04.0: eth0: Link is up at 1000 Mbps, full duplex
[   19.382632] tg3 0001:05:04.0: eth0: Flow control is on for TX and on for RX
[   19.389282] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   22.146924] fuse init (API version 7.17)
[   30.228267] eth0: no IPv6 routers present
[   32.590580] u3msi: allocated virq 0x21 (hw 0x9) addr 0xfee00000
[   32.622186] ADDRCONF(NETDEV_UP): eth1: link is not ready
[   36.109559] lp: driver loaded but no devices found
[   37.374847] Bluetooth: Core ver 2.16
[   37.376738] NET: Registered protocol family 31
[   37.377909] Bluetooth: HCI device and connection manager initialized
[   37.379085] Bluetooth: HCI socket layer initialized
[   37.380235] Bluetooth: L2CAP socket layer initialized
[   37.381764] Bluetooth: SCO socket layer initialized
[   37.665081] Bluetooth: RFCOMM TTY layer initialized
[   37.666358] Bluetooth: RFCOMM socket layer initialized
[   37.667555] Bluetooth: RFCOMM ver 1.11
[   37.927427] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   37.928746] Bluetooth: BNEP filters: protocol multicast
[  736.180504] [drm] nouveau 0000:0a:00.0: Setting dpms mode 3 on tmds encoder (output 1)

** Model information
revision	: 1.1 (pvr 0044 0101)
revision	: 1.1 (pvr 0044 0101)
platform	: PowerMac
model		: PowerMac11,2
machine		: PowerMac11,2
motherboard	: PowerMac11,2 MacRISC4 Power Macintosh 

** Loaded modules:
bnep
rfcomm
bluetooth
rfkill
crc16
parport_pc
lp
parport
cpufreq_powersave
cpufreq_ondemand
cpufreq_stats
cpufreq_userspace
cpufreq_conservative
binfmt_misc
fuse
firewire_sbp2
loop
snd_aoa_codec_onyx
snd_aoa_fabric_layout
snd_aoa
snd_aoa_i2sbus
snd_aoa_soundbus
snd_pcm_oss
snd_mixer_oss
snd_pcm
snd_page_alloc
snd_seq_midi
snd_rawmidi
sil164
snd_seq_midi_event
nouveau
snd_seq
joydev
snd_timer
snd_seq_device
snd
evdev
drm_kms_helper
ttm
soundcore
drm
i2c_powermac
ext3
mbcache
jbd
windfarm_cpufreq_clamp
windfarm_max6690_sensor
windfarm_lm75_sensor
windfarm_smu_sensors
windfarm_smu_controls
windfarm_pm112
windfarm_smu_sat
windfarm_pid
windfarm_core
usbhid
hid
sd_mod
crc_t10dif
ata_generic
ohci_hcd
firewire_ohci
firewire_core
ehci_hcd
usbcore
crc_itu_t
tg3
sr_mod
cdrom
sata_svw
libphy
usb_common

** Network interface configuration:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
	address 192.168.200.110
	netmask 255.255.255.0
	gateway 192.168.200.99


** Network status:
*** IP interfaces and addresses:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:16:cb:39:4f:1a brd ff:ff:ff:ff:ff:ff
    inet 192.168.200.110/24 brd 192.168.200.255 scope global eth0
    inet6 fe80::216:cbff:fe39:4f1a/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether 00:16:cb:39:4f:1b brd ff:ff:ff:ff:ff:ff

*** Device statistics:
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:   63660     600    0    0    0     0          0         0    63660     600    0    0    0     0       0          0
  eth1:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
  eth0: 37411679   50901    0    0    0     0          0       226  9056004   39524    0    0    0     0       0          0

*** Protocol statistics:
Ip:
    49298 total packets received
    0 forwarded
    0 incoming packets discarded
    49298 incoming packets delivered
    38077 requests sent out
Icmp:
    0 ICMP messages received
    0 input ICMP message failed.
    ICMP input histogram:
    0 ICMP messages sent
    0 ICMP messages failed
    ICMP output histogram:
Tcp:
    53 active connections openings
    3 passive connection openings
    0 failed connection attempts
    1 connection resets received
    3 connections established
    49517 segments received
    39502 segments send out
    38 segments retransmited
    0 bad segments received.
    1 resets sent
Udp:
    348 packets received
    0 packets to unknown port received.
    0 packet receive errors
    250 packets sent
UdpLite:
TcpExt:
    7 packets pruned from receive queue because of socket buffer overrun
    49 TCP sockets finished time wait in fast timer
    152 delayed acks sent
    2 packets directly queued to recvmsg prequeue.
    24323 packet headers predicted
    1154 acknowledgments not containing data payload received
    23506 predicted acknowledgments
    10 times recovered from packet loss by selective acknowledgements
    4 TCP data loss events
    TCPLostRetransmit: 2
    3 timeouts after SACK recovery
    21 fast retransmits
    2 forward retransmits
    6 retransmits in slow start
    6 other TCP timeouts
    127 packets collapsed in receive queue due to low socket buffer
    1 DSACKs for out of order packets received
    1 connections reset due to early user close
    TCPSackShifted: 61
    TCPSackMerged: 351
    TCPSackShiftFallback: 264
IpExt:
    InMcastPkts: 142
    OutMcastPkts: 31
    InBcastPkts: 33
    OutBcastPkts: 14
    InOctets: 36405432
    OutOctets: 8268296
    InMcastOctets: 19057
    OutMcastOctets: 4134
    InBcastOctets: 5007
    OutBcastOctets: 656


** PCI devices:
0000:00:0b.0 PCI bridge [0604]: Apple Inc. CPC945 PCIe Bridge [106b:005b] (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Bus: primary=00, secondary=0a, subordinate=0a, sec-latency=0
	Memory behind bridge: 90000000-afffffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>

0000:0a:00.0 VGA compatible controller [0300]: NVIDIA Corporation NV43 [GeForce 6600] [10de:0141] (rev a2) (prog-if 00 [VGA controller])
	Subsystem: NVIDIA Corporation Device [10de:0010]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 17
	Region 0: Memory at a1000000 (32-bit, non-prefetchable) [size=16M]
	Region 1: Memory at 90000000 (64-bit, prefetchable) [size=256M]
	Region 3: Memory at a0000000 (64-bit, non-prefetchable) [size=16M]
	Expansion ROM at a2000000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: nouveau

0001:00:00.0 Host bridge [0600]: Apple Inc. U4 HT Bridge [106b:0074]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
	Latency: 0
	Capabilities: <access denied>

0001:00:01.0 PCI bridge [0604]: Broadcom BCM5780 [HT2000] PCI-X bridge [1166:0130] (rev a3) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 32
	Bus: primary=00, secondary=04, subordinate=04, sec-latency=32
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr+ DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>

0001:00:02.0 PCI bridge [0604]: Broadcom BCM5780 [HT2000] PCI-X bridge [1166:0130] (rev a3) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 32
	Bus: primary=00, secondary=05, subordinate=05, sec-latency=32
	Memory behind bridge: fa500000-fa5fffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr+ DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>

0001:00:03.0 PCI bridge [0604]: Broadcom BCM5780 [HT2000] PCI-Express Bridge [1166:0132] (rev a3) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Bus: primary=00, secondary=06, subordinate=06, sec-latency=32
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>

0001:00:04.0 PCI bridge [0604]: Broadcom BCM5780 [HT2000] PCI-Express Bridge [1166:0132] (rev a3) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Bus: primary=00, secondary=07, subordinate=07, sec-latency=32
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>

0001:00:05.0 PCI bridge [0604]: Broadcom BCM5780 [HT2000] PCI-Express Bridge [1166:0132] (rev a3) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Bus: primary=00, secondary=08, subordinate=08, sec-latency=32
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>

0001:00:06.0 PCI bridge [0604]: Broadcom BCM5780 [HT2000] PCI-Express Bridge [1166:0132] (rev a3) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Bus: primary=00, secondary=09, subordinate=09, sec-latency=32
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>

0001:00:07.0 PCI bridge [0604]: Apple Inc. Shasta PCI Bridge [106b:0053] (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=32
	Memory behind bridge: fa000000-fa3fffff
	Prefetchable memory behind bridge: 00000000-000fffff
	Secondary status: 66MHz+ FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>

0001:00:08.0 PCI bridge [0604]: Apple Inc. Shasta PCI Bridge [106b:0054] (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
	Memory behind bridge: 80000000-800fffff
	Prefetchable memory behind bridge: 00000000-000fffff
	Secondary status: 66MHz+ FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>

0001:00:09.0 PCI bridge [0604]: Apple Inc. Shasta PCI Bridge [106b:0055] (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=32
	Memory behind bridge: fa400000-fa4fffff
	Prefetchable memory behind bridge: 00000000-000fffff
	Secondary status: 66MHz+ FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>

0001:01:07.0 Unassigned class [ff00]: Apple Inc. Shasta Mac I/O [106b:004f]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 16, Cache Line Size: 64 bytes
	Region 0: Memory at 80000000 (32-bit, non-prefetchable) [size=512K]
	Kernel driver in use: macio

0001:01:0b.0 USB controller [0c03]: NEC Corporation USB [1033:0035] (rev 43) (prog-if 10 [OHCI])
	Subsystem: NEC Corporation Hama USB 2.0 CardBus [1033:0035]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 16 (250ns min, 10500ns max), Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 70
	Region 0: Memory at 80082000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: ohci_hcd

0001:01:0b.1 USB controller [0c03]: NEC Corporation USB [1033:0035] (rev 43) (prog-if 10 [OHCI])
	Subsystem: NEC Corporation Hama USB 2.0 CardBus [1033:0035]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 16 (250ns min, 10500ns max), Cache Line Size: 64 bytes
	Interrupt: pin B routed to IRQ 70
	Region 0: Memory at 80081000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: ohci_hcd

0001:01:0b.2 USB controller [0c03]: NEC Corporation USB 2.0 [1033:00e0] (rev 04) (prog-if 20 [EHCI])
	Subsystem: NEC Corporation USB 2.0 [1033:00e0]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 16 (4000ns min, 8500ns max), Cache Line Size: 64 bytes
	Interrupt: pin C routed to IRQ 70
	Region 0: Memory at 80080000 (32-bit, non-prefetchable) [size=256]
	Capabilities: <access denied>
	Kernel driver in use: ehci_hcd

0001:03:0c.0 IDE interface [0101]: Broadcom K2 SATA [1166:0240] (prog-if 8f [Master SecP SecO PriP PriO])
	Subsystem: Broadcom K2 SATA [1166:0240]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 16
	Interrupt: pin ? routed to IRQ 18
	Region 0: I/O ports at <unassigned> [disabled]
	Region 1: I/O ports at <unassigned> [disabled]
	Region 2: I/O ports at <unassigned> [disabled]
	Region 3: I/O ports at <unassigned> [disabled]
	Region 4: I/O ports at <unassigned> [disabled]
	Region 5: Memory at fa402000 (32-bit, non-prefetchable) [size=8K]
	Kernel driver in use: sata_svw

0001:03:0d.0 Unassigned class [ff00]: Apple Inc. Shasta IDE [106b:0050]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR+ INTx-
	Latency: 32, Cache Line Size: 32 bytes
	Interrupt: pin ? routed to IRQ 38
	Region 0: Memory at fa404000 (32-bit, non-prefetchable) [size=16K]
	Kernel driver in use: pata-pci-macio

0001:03:0e.0 FireWire (IEEE 1394) [0c00]: Apple Inc. Shasta Firewire [106b:0052] (prog-if 10 [OHCI])
	Subsystem: Apple Inc. Device [106b:5811]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 248 (3000ns min, 6000ns max), Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 39
	Region 0: Memory at fa400000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: firewire_ohci

0001:05:04.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5780 Gigabit Ethernet [14e4:166a] (rev 03)
	Subsystem: Apple Inc. Device [106b:0085]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 16 (16000ns min), Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 32
	Region 0: Memory at fa530000 (64-bit, non-prefetchable) [size=64K]
	Region 2: Memory at fa520000 (64-bit, non-prefetchable) [size=64K]
	Expansion ROM at <ignored> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: tg3

0001:05:04.1 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5780 Gigabit Ethernet [14e4:166a] (rev 03)
	Subsystem: Apple Inc. Device [106b:0085]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 16 (16000ns min), Cache Line Size: 64 bytes
	Interrupt: pin B routed to IRQ 33
	Region 0: Memory at fa510000 (64-bit, non-prefetchable) [size=64K]
	Region 2: Memory at fa500000 (64-bit, non-prefetchable) [size=64K]
	Expansion ROM at <ignored> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: tg3


** USB devices:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 413c:1003 Dell Computer Corp. Keyboard Hub
Bus 003 Device 003: ID 413c:2010 Dell Computer Corp. Keyboard


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: powerpc (ppc64)

Kernel: Linux 3.2.0-1-powerpc64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to POSIX)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-image-3.2.0-1-powerpc64 depends on:
ii  debconf [debconf-2.0]                   1.5.43
ii  initramfs-tools [linux-initramfs-tool]  0.106
ii  kmod                                    8-2
ii  libc6                                   2.13-33
ii  linux-base                              3.5
ii  module-init-tools                       8-2

Versions of packages linux-image-3.2.0-1-powerpc64 recommends:
ii  firmware-linux-free  3

Versions of packages linux-image-3.2.0-1-powerpc64 suggests:
pn  linux-doc-3.2  <none>
pn  mkvmlinuz      <none>

Versions of packages linux-image-3.2.0-1-powerpc64 is related to:
pn  firmware-atheros        <none>
pn  firmware-bnx2           <none>
pn  firmware-bnx2x          <none>
pn  firmware-brcm80211      <none>
pn  firmware-intelwimax     <none>
pn  firmware-ipw2x00        <none>
pn  firmware-ivtv           <none>
pn  firmware-iwlwifi        <none>
pn  firmware-libertas       <none>
ii  firmware-linux          0.36
ii  firmware-linux-nonfree  0.36
pn  firmware-myricom        <none>
pn  firmware-netxen         <none>
pn  firmware-qlogic         <none>
pn  firmware-ralink         <none>
pn  firmware-realtek        <none>
pn  xen-hypervisor          <none>

-- debconf information:
  linux-image-3.2.0-1-powerpc64/postinst/depmod-error-initrd-3.2.0-1-powerpc64: false
  linux-image-3.2.0-1-powerpc64/prerm/removing-running-kernel-3.2.0-1-powerpc64: true
  linux-image-3.2.0-1-powerpc64/postinst/missing-firmware-3.2.0-1-powerpc64:
  linux-image-3.2.0-1-powerpc64/postinst/ignoring-ramdisk:



--- End Message ---
--- Begin Message ---
On Sat, 2012-06-16 at 16:33 +1000, Erik de Castro Lopo wrote:
> Package: linux-2.6
> Version: 3.2.7-1

By the way, this is old.

> Severity: normal
> 
> Compiling GHC (Glorious Haskell compiler) from the HEAD of the
> git sources.
> 
> The GHC runtime is quite sophisticated and has a green threads
> implementation a little like that of the JVM.
> 
> During compile of one particular file, the complier stalls in a
> state where its consuming < 1% of CPU and < 1% of memory. Running
> strace on the compile job, I find that when the compile stalls I
> get the following strace output:
> 
>    rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
>    pause()                                 = ? ERESTARTNOHAND (To be restarted)
>    --- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
>    sigreturn()                             = ? (mask now [])
>    pause()                                 = ? ERESTARTNOHAND (To be restarted)
>    --- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
>    sigreturn()                             = ? (mask now [])
>    pause()                                 = ? ERESTARTNOHAND (To be restarted)
>    --- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
> 
> that continues until I kill the process.
> 
> This problem is 100% deterministic and repeatable. Every time I
> try to compile this one particlar file I end up with the same
> stall.

The task called pause() with an empty signal set, which means: wait
forever.  Perhaps it meant to enable SIGVTALRM, but it hasn't.

> A bit of googling tells me that ERESTARTNOHAND is supposedly a kernel
> level errno that is not supposed to escape into userland. See:
[...]

I don't think it does escape into the ghc task.

Ben.

-- 
Ben Hutchings
We get into the habit of living before acquiring the habit of thinking.
                                                              - Albert Camus

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply to: