Ticket #123 (closed crash: fixed)

Opened 4 years ago

Last modified 2 years ago

crash when doing "system trace" with Shark

Reported by: hules@… Owned by: jeremyhu@…
Priority: Nice to Have Milestone: 2.3.1
Component: xserver Version: dev (xorg-server-1.4-apple)
Keywords: Cc:

Description

I have an xterm opened, I launch Shark, and select the "System Trace" tool. Start profiling, let my mouse cursor go over the xterm, then click on the stop button of Shark. X11 dies, with the following stack trace:

Process: X11 [11582] Path: /Applications/Utilities/X11.app/Contents/MacOS/X11 Identifier: org.x.X11 Version: 2.3.0 (2.3.0) Build Info: X11server-480100~4 Code Type: X86 (Native) Parent Process: xinit [11581]

Date/Time: 2008-06-09 18:06:20.151 +0200 OS Version: Mac OS X 10.5.3 (9D34) Report Version: 6

Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x0000000000000000 Crashed Thread: 0

Application Specific Information: X.Org X Server 1.4.0-apple13Build Date: 20080530

Thread 0 Crashed: 0 libSystem.B.dylib 0x970d6c9c mach_msg + 72 1 com.apple.CoreFoundation 0x950e00be CFRunLoopRunSpecific + 1806 2 com.apple.CoreFoundation 0x950e0cf8 CFRunLoopRunInMode + 88 3 com.apple.HIToolbox 0x957c0da4 RunCurrentEventLoopInMode + 283 4 com.apple.HIToolbox 0x957c0bbd ReceiveNextEventCommon + 374 5 com.apple.HIToolbox 0x957c0a31 BlockUntilNextEventMatchingListInMode + 106 6 com.apple.AppKit 0x921d2505 _DPSNextEvent + 657 7 com.apple.AppKit 0x921d1db8 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128 8 com.apple.AppKit 0x921cadf3 -[NSApplication run] + 795 9 org.x.X11 0x00007ea5 X11ApplicationMain + 629 10 org.x.X11 0x00013a5e server_main + 254 11 org.x.X11 0x000027b8 main + 488 12 org.x.X11 0x00002336 start + 54

Thread 1: 0 libSystem.B.dylib 0x970cf4a6 mach_msg_trap + 10 1 libSystem.B.dylib 0x970d6c9c mach_msg + 72 2 com.apple.CoreFoundation 0x950e00be CFRunLoopRunSpecific + 1806 3 com.apple.CoreFoundation 0x950e0cf8 CFRunLoopRunInMode + 88 4 com.apple.audio.CoreAudio 0x9087d464 HALRunLoop::OwnThread(void*) + 160 5 com.apple.audio.CoreAudio 0x9087d300 CAPThread::Entry(CAPThread*) + 96 6 libSystem.B.dylib 0x971006f5 _pthread_start + 321 7 libSystem.B.dylib 0x971005b2 thread_start + 34

Thread 2: 0 libSystem.B.dylib 0x9711f5e2 select$DARWIN_EXTSN + 10 1 org.x.X11 0x0006716c Dispatch + 124 2 org.x.X11 0x00077cfe dix_main + 1006 3 org.x.X11 0x00013885 server_thread + 53 4 libSystem.B.dylib 0x971006f5 _pthread_start + 321 5 libSystem.B.dylib 0x971005b2 thread_start + 34

Thread 0 crashed with X86 Thread State (32-bit):

eax: 0x10004005 ebx: 0x950df9c7 ecx: 0xbfffdb6c edx: 0x970cf4a6 edi: 0x00000000 esi: 0x00000000 ebp: 0xbfffdba8 esp: 0xbfffdb70

ss: 0x0000001f efl: 0x00000306 eip: 0x970d6c9c cs: 0x00000017 ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037

cr2: 0xffe2a114

I'm using the 2.3.0-rc but it was also crashing with the 2.2.1

Change History

Changed 4 years ago by jeremyhu@…

Is this 100% repeatable with the case that you gave, or does it only sometimes crash?

Formatted for readability:

Process:         X11 [11582]
Path:            /Applications/Utilities/X11.app/Contents/MacOS/X11
Identifier:      org.x.X11
Version:         2.3.0 (2.3.0)
Build Info:      X11server-480100~4
Code Type:       X86 (Native)
Parent Process:  xinit [11581]

Date/Time:       2008-06-09 18:06:20.151 +0200
OS Version:      Mac OS X 10.5.3 (9D34)
Report Version:  6

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Crashed Thread:  0

Application Specific Information:
X.Org X Server 1.4.0-apple13Build Date: 20080530

Thread 0 Crashed:
0   libSystem.B.dylib                   0x970d6c9c mach_msg + 72
1   com.apple.CoreFoundation            0x950e00be CFRunLoopRunSpecific +
1806
2   com.apple.CoreFoundation            0x950e0cf8 CFRunLoopRunInMode + 88
3   com.apple.HIToolbox                 0x957c0da4
RunCurrentEventLoopInMode + 283
4   com.apple.HIToolbox                 0x957c0bbd ReceiveNextEventCommon
+ 374
5   com.apple.HIToolbox                 0x957c0a31
BlockUntilNextEventMatchingListInMode + 106
6   com.apple.AppKit                    0x921d2505 _DPSNextEvent + 657
7   com.apple.AppKit                    0x921d1db8 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
8   com.apple.AppKit                    0x921cadf3 -[NSApplication run] +
795
9   org.x.X11                           0x00007ea5 X11ApplicationMain +
629
10  org.x.X11                           0x00013a5e server_main + 254
11  org.x.X11                           0x000027b8 main + 488
12  org.x.X11                           0x00002336 start + 54

Thread 1:
0   libSystem.B.dylib                   0x970cf4a6 mach_msg_trap + 10
1   libSystem.B.dylib                   0x970d6c9c mach_msg + 72
2   com.apple.CoreFoundation            0x950e00be CFRunLoopRunSpecific +
1806
3   com.apple.CoreFoundation            0x950e0cf8 CFRunLoopRunInMode + 88
4   com.apple.audio.CoreAudio           0x9087d464
HALRunLoop::OwnThread(void*) + 160
5   com.apple.audio.CoreAudio           0x9087d300
CAPThread::Entry(CAPThread*) + 96
6   libSystem.B.dylib                   0x971006f5 _pthread_start + 321
7   libSystem.B.dylib                   0x971005b2 thread_start + 34

Thread 2:
0   libSystem.B.dylib                   0x9711f5e2 select$DARWIN_EXTSN +
10
1   org.x.X11                           0x0006716c Dispatch + 124
2   org.x.X11                           0x00077cfe dix_main + 1006
3   org.x.X11                           0x00013885 server_thread + 53
4   libSystem.B.dylib                   0x971006f5 _pthread_start + 321
5   libSystem.B.dylib                   0x971005b2 thread_start + 34

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x10004005  ebx: 0x950df9c7  ecx: 0xbfffdb6c  edx: 0x970cf4a6
  edi: 0x00000000  esi: 0x00000000  ebp: 0xbfffdba8  esp: 0xbfffdb70
   ss: 0x0000001f  efl: 0x00000306  eip: 0x970d6c9c   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0xffe2a114

Changed 4 years ago by hules@…

Thanks for reformatting, I should have previewed before posting !

Yes it is 100% reproducible. I just need to launch system trace, give focus to the xterm and then stop the system trace. Then X11 dies and I am always getting the same stack trace

Changed 4 years ago by jeremyhu@…

  • status changed from new to assigned
  • milestone set to 2.3.0

Changed 4 years ago by jeremyhu@…

Can you reproduce this with 2.3.0-rc7?

Also, please file a bug at  http://bugreport.apple.com ... I don't think this is an X11 issue, and I'd like to get this routed to the correct people.

Changed 4 years ago by hules@…

Hi,

I have upgraded to 10.5.4 / chud 4.6.0 and X11 2.3.0 and X11 is not crashing anymore -- the issue seems to be fixed here.

Changed 4 years ago by jeremyhu@…

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.