Ticket #753 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Race condition in gui:background-process-run-function

Reported by: rongarret Owned by: gb
Priority: major Milestone:
Component: IDE Version: trunk
Keywords: Cc:

Description

This:

(gui:background-process-run-function "foo" (lambda () (print 123)))

consistently causes CCL to hang with a SBOD. This:

(gui:background-process-run-function "foo" (lambda () (sleep 1) (print 123)))

works reliably.

Change History

comment:1 Changed 4 years ago by gb

  • Owner set to gb
  • Status changed from new to assigned

I haven't been able to reproduce this.

If anyone can, please post a backtrace here, if possible.

comment:2 Changed 4 years ago by rongarret

There is backtrace. It's an SBOD-type hang requiring a force-quit to recover. Here's the crash report:

Date/Time:       2010-10-13 11:22:37 -0700
OS Version:      10.6.4 (Build 10F569)
Architecture:    x86_64
Report Version:  6

Command:         Clozure CL64
Path:            /Users/ron/devel/ccl/trunk/Clozure CL64.app/Contents/MacOS/dx86cl64
Version:         Version 1.4-dev (14332M-trunk (X8664))
Parent:          launchd [220]

PID:             6240
Event:           hang
Duration:        6.00s (sampling started after 2 seconds)
Steps:           0 (100ms sampling interval, 40 steps avoided)

Pageins:         0
Pageouts:        0

Model: MacBookPro7,1, BootROM MBP71.0039.B05, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB, SMC 1.62f6
Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.10.131.16.1)
Bluetooth: Version 2.3.7f1, 2 service, 12 devices, 1 incoming serial ports
Network Service: Built-in Ethernet, Ethernet, en0
Serial ATA Device: OCZ-VERTEX, 119.24 GB
Serial ATA Device: MATSHITADVD-R   UJ-898
USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8507, 0x24600000
USB Device: Hub, 0x05ac  (Apple Inc.), 0x9130, 0x26400000
USB Device: Hub, 0x050d  (Belkin Corporation), 0x0237, 0x26430000
USB Device: Back-UPS ES 500 FW:824.B1.D USB FW:B1, 0x051d  (American Power Conversion), 0x0002, 0x26432000
USB Device: USB+PS/2 Optical Mouse, 0x04f3  (ELAN Microelectronics Corportation), 0x0230, 0x26433000
USB Device: Hub, 0x050d  (Belkin Corporation), 0x0237, 0x26431000
USB Device: C-Media USB Audio Device, 0x0d8c  (C-MEDIA ELECTRONICS INC.), 0x0008, 0x26431400
USB Device: Keyboard Hub, 0x05ac  (Apple Inc.), 0x1006, 0x26431300
USB Device: Apple Keyboard, 0x05ac  (Apple Inc.), 0x0220, 0x26431320
USB Device: Rocketfish HD Webcam, 0x19ff, 0x0218, 0x26431200
USB Device: Apple Cinema Display, 0x05ac  (Apple Inc.), 0x9222, 0x26420000
USB Device: Internal Memory Card Reader, 0x05ac  (Apple Inc.), 0x8403, 0x26100000
USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x06500000
USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06600000
USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8213, 0x06610000
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac  (Apple Inc.), 0x0236, 0x06300000
FireWire Device: SpyderHUB Device 00, SpyderHUB, Up to 800 Mb/sec

comment:3 Changed 4 years ago by rongarret

That should, of course, read: there is NO backtrace.

comment:4 Changed 4 years ago by gb

If the hang in question is the same one that I eventually saw, it should have been fixed in r14363.

comment:5 Changed 4 years ago by rongarret

  • Status changed from assigned to closed
  • Resolution set to fixed

Looks good to me. Thanks!

Note: See TracTickets for help on using tickets.