[New-bugs-announce] [issue15072] Segfault on OSX

William Payne report at bugs.python.org
Fri Jun 15 00:47:00 CEST 2012


New submission from William Payne <wtpayne at gmail.com>:

Unfortunately, I cannot provide the source of the script I was running then the crash occurred, so I strongly suspect that this issue will be closed as "cannot reproduce", but I have included the OSX problem report anyway, if it is of any use.

:-)

The script was running unit-tests & gathering unit-test coverage metrics in a separate process (using subprocess module) when the crash occurred. It was also doing some fairly funky things with dynamic imports which might have had a destabilizing influence.

Process:         Python [33830]
Path:            /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:      Python
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  Python [33825]

Date/Time:       2012-06-14 18:31:28.053 -0400
OS Version:      Mac OS X 10.7.4 (11E53)
Report Version:  9

Interval Since Last Report:          169200 sec
Crashes Since Last Report:           1
Per-App Crashes Since Last Report:   1
Anonymous UUID:                      81415EC1-2F3C-4A2B-BE73-2AC40EA4A047

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: 0x000000000000000d, 0x0000000000000000

VM Regions Near 0:
--> 
    __TEXT                 0000000109071000-0000000109072000 [    4K] r-x/rwx SM=COW  /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

Application Specific Information:
objc[33830]: garbage collection is OFF

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   org.python.python             	0x000000010912eeea 0x10907b000 + 737002
1   org.python.python             	0x000000010912f61d _PyObject_GC_Malloc + 177
2   org.python.python             	0x000000010912f6af _PyObject_GC_New + 21
3   org.python.python             	0x00000001090b28b0 PyDict_New + 109
4   org.python.python             	0x00000001090b300c PyDict_Copy + 57
5   org.python.python             	0x00000001090c9232 0x10907b000 + 320050
6   org.python.python             	0x00000001090c7afa 0x10907b000 + 314106
7   org.python.python             	0x0000000109082d32 PyObject_Call + 97
8   org.python.python             	0x0000000109082eed PyObject_CallFunctionObjArgs + 178
9   org.python.python             	0x000000010908dc0e PyClass_New + 462
10  org.python.python             	0x000000010908e9f3 0x10907b000 + 80371
11  org.python.python             	0x00000001090c7afa 0x10907b000 + 314106
12  org.python.python             	0x0000000109082d32 PyObject_Call + 97
13  org.python.python             	0x0000000109082eed PyObject_CallFunctionObjArgs + 178
14  org.python.python             	0x000000010910076b PyEval_EvalFrameEx + 4121
15  org.python.python             	0x0000000109105df7 0x10907b000 + 568823
16  org.python.python             	0x0000000109102e0a PyEval_EvalFrameEx + 14008
17  org.python.python             	0x0000000109105df7 0x10907b000 + 568823
18  org.python.python             	0x0000000109102e0a PyEval_EvalFrameEx + 14008
19  org.python.python             	0x0000000109105df7 0x10907b000 + 568823
20  org.python.python             	0x0000000109102e0a PyEval_EvalFrameEx + 14008
21  org.python.python             	0x0000000109105cd8 PyEval_EvalCodeEx + 1996
22  org.python.python             	0x00000001090a3abf 0x10907b000 + 166591
23  org.python.python             	0x0000000109082d32 PyObject_Call + 97
24  org.python.python             	0x00000001090fec40 PyEval_CallObjectWithKeywords + 180
25  org.python.python             	0x00000001090fc552 0x10907b000 + 529746
26  org.python.python             	0x0000000109102d77 PyEval_EvalFrameEx + 13861
27  org.python.python             	0x0000000109105cd8 PyEval_EvalCodeEx + 1996
28  org.python.python             	0x0000000109105e6c 0x10907b000 + 568940
29  org.python.python             	0x0000000109102e0a PyEval_EvalFrameEx + 14008
30  org.python.python             	0x0000000109105df7 0x10907b000 + 568823
31  org.python.python             	0x0000000109102e0a PyEval_EvalFrameEx + 14008
32  org.python.python             	0x0000000109105df7 0x10907b000 + 568823
33  org.python.python             	0x0000000109102e0a PyEval_EvalFrameEx + 14008
34  org.python.python             	0x0000000109105cd8 PyEval_EvalCodeEx + 1996
35  org.python.python             	0x0000000109105d4d PyEval_EvalCode + 54
36  org.python.python             	0x0000000109113f3a PyImport_ExecCodeModuleEx + 211
37  org.python.python             	0x0000000109114482 0x10907b000 + 627842
38  org.python.python             	0x0000000109115246 0x10907b000 + 631366
39  org.python.python             	0x0000000109115454 0x10907b000 + 631892
40  org.python.python             	0x0000000109116201 PyImport_ImportModuleLevel + 1137
41  org.python.python             	0x00000001090fa506 0x10907b000 + 521478
42  org.python.python             	0x0000000109102d77 PyEval_EvalFrameEx + 13861
43  org.python.python             	0x0000000109105cd8 PyEval_EvalCodeEx + 1996
44  org.python.python             	0x0000000109105d4d PyEval_EvalCode + 54
45  org.python.python             	0x0000000109113f3a PyImport_ExecCodeModuleEx + 211
46  org.python.python             	0x0000000109114482 0x10907b000 + 627842
47  org.python.python             	0x0000000109114ccd 0x10907b000 + 629965
48  org.python.python             	0x0000000109115246 0x10907b000 + 631366
49  org.python.python             	0x0000000109115492 0x10907b000 + 631954
50  org.python.python             	0x0000000109116201 PyImport_ImportModuleLevel + 1137
51  org.python.python             	0x00000001090fa506 0x10907b000 + 521478
52  org.python.python             	0x0000000109082d32 PyObject_Call + 97
53  org.python.python             	0x00000001090fec40 PyEval_CallObjectWithKeywords + 180
54  org.python.python             	0x00000001091048d9 PyEval_EvalFrameEx + 20871
55  org.python.python             	0x0000000109105cd8 PyEval_EvalCodeEx + 1996
56  org.python.python             	0x0000000109105d4d PyEval_EvalCode + 54
57  org.python.python             	0x0000000109113f3a PyImport_ExecCodeModuleEx + 211
58  org.python.python             	0x0000000109114482 0x10907b000 + 627842
59  org.python.python             	0x0000000109114ccd 0x10907b000 + 629965
60  org.python.python             	0x0000000109115246 0x10907b000 + 631366
61  org.python.python             	0x0000000109115454 0x10907b000 + 631892
62  org.python.python             	0x0000000109116246 PyImport_ImportModuleLevel + 1206
63  org.python.python             	0x00000001090fa506 0x10907b000 + 521478
64  org.python.python             	0x0000000109082d32 PyObject_Call + 97
65  org.python.python             	0x00000001090fec40 PyEval_CallObjectWithKeywords + 180
66  org.python.python             	0x00000001091048d9 PyEval_EvalFrameEx + 20871
67  org.python.python             	0x0000000109105cd8 PyEval_EvalCodeEx + 1996
68  org.python.python             	0x0000000109105d4d PyEval_EvalCode + 54
69  org.python.python             	0x0000000109113f3a PyImport_ExecCodeModuleEx + 211
70  org.python.python             	0x0000000109114482 0x10907b000 + 627842
71  org.python.python             	0x0000000109115246 0x10907b000 + 631366
72  org.python.python             	0x00000001091155cc 0x10907b000 + 632268
73  org.python.python             	0x000000010911635f PyImport_ImportModuleLevel + 1487
74  org.python.python             	0x00000001090fa506 0x10907b000 + 521478
75  org.python.python             	0x0000000109082d32 PyObject_Call + 97
76  org.python.python             	0x00000001090fec40 PyEval_CallObjectWithKeywords + 180
77  org.python.python             	0x00000001091048d9 PyEval_EvalFrameEx + 20871
78  org.python.python             	0x0000000109105cd8 PyEval_EvalCodeEx + 1996
79  org.python.python             	0x0000000109105d4d PyEval_EvalCode + 54
80  org.python.python             	0x000000010911d08f 0x10907b000 + 663695
81  org.python.python             	0x000000010911d14f PyRun_FileExFlags + 157
82  org.python.python             	0x000000010911e2a2 PyRun_SimpleFileExFlags + 392
83  org.python.python             	0x000000010912e2af Py_Main + 2715
84  org.python.python             	0x0000000109071e88 0x109071000 + 3720

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x4000000000000000  rbx: 0x00000001091c4ac0  rcx: 0x00000001091c4af0  rdx: 0x00000001091c4ac0
  rdi: 0x0000000000000000  rsi: 0x0000000000000000  rbp: 0x00007fff68c696c0  rsp: 0x00007fff68c69610
   r8: 0x0000000000000016   r9: 0x0000000000000dd8  r10: 0x0000000000000000  r11: 0x000000003ae31e7c
  r12: 0x00000001091b0f30  r13: 0x000000010944bfc8  r14: 0x9000000001093a04  r15: 0x00000001091b0f30
  rip: 0x000000010912eeea  rfl: 0x0000000000010286  cr2: 0x00007ff4fbcde098
Logical CPU: 2

Binary Images:
       0x109071000 -        0x109071fff  org.python.python (2.7.1 - 2.7.1) <E2C46621-158F-349B-9131-263E8958B23A> /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
       0x10907b000 -        0x109196ff7  org.python.python (2.7.1 - 2.7.1) <A7E34EB5-24D2-3B8F-A26B-4A5B28CD2C60> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
       0x1093c7000 -        0x1093cafff  strop.so (??? - ???) <A317730F-EDDF-3998-8A22-0E632B3E67A4> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/strop.so
       0x10940f000 -        0x109410fff  time.so (??? - ???) <DA274462-B33A-33EB-90F7-BB9FB8120A5D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so
       0x109417000 -        0x109419ff7  binascii.so (??? - ???) <9B353DAC-B0E8-3B4B-91A1-50F6F86AA928> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/binascii.so
       0x10941d000 -        0x109428ff7  datetime.so (??? - ???) <9EC1E3BD-3BD3-3B39-AE19-448CCEEA747A> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/datetime.so
       0x109431000 -        0x109432fff  cStringIO.so (??? - ???) <AE5A2A12-8E57-3FE2-B998-C175083B27F7> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cStringIO.so
       0x109477000 -        0x10947dfff  pyexpat.so (??? - ???) <0E02E7DD-AC97-38B5-BB3B-856249DEBFF9> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/pyexpat.so
    0x7fff68c71000 -     0x7fff68ca5baf  dyld (195.6 - ???) <0CD1B35B-A28F-32DA-B72E-452EAD609613> /usr/lib/dyld
    0x7fff8bb2e000 -     0x7fff8bba1fff  libstdc++.6.dylib (52.0.0 - compatibility 7.0.0) <6BDD43E4-A4B1-379E-9ED5-8C713653DFF2> /usr/lib/libstdc++.6.dylib
    0x7fff8bc9d000 -     0x7fff8bcdfff7  libcommonCrypto.dylib (55010.0.0 - compatibility 1.0.0) <A5B9778E-11C3-3F61-B740-1F2114E967FB> /usr/lib/system/libcommonCrypto.dylib
    0x7fff8c135000 -     0x7fff8c13bff7  libunwind.dylib (30.0.0 - compatibility 1.0.0) <1E9C6C8C-CBE8-3F4B-A5B5-E03E3AB53231> /usr/lib/system/libunwind.dylib
    0x7fff8cfef000 -     0x7fff8cffdfff  libdispatch.dylib (187.9.0 - compatibility 1.0.0) <1D5BE322-A9B9-3BCE-8FAC-076FB07CF54A> /usr/lib/system/libdispatch.dylib
    0x7fff8cffe000 -     0x7fff8d003ff7  libsystem_network.dylib (??? - ???) <5DE7024E-1D2D-34A2-80F4-08326331A75B> /usr/lib/system/libsystem_network.dylib
    0x7fff8d136000 -     0x7fff8d13bfff  libcache.dylib (47.0.0 - compatibility 1.0.0) <B7757E2E-5A7D-362E-AB71-785FE79E1527> /usr/lib/system/libcache.dylib
    0x7fff8d8c1000 -     0x7fff8d8c2fff  libdnsinfo.dylib (395.11.0 - compatibility 1.0.0) <853BAAA5-270F-3FDC-B025-D448DB72E1C3> /usr/lib/system/libdnsinfo.dylib
    0x7fff8d921000 -     0x7fff8da05e5f  libobjc.A.dylib (228.0.0 - compatibility 1.0.0) <871E688B-CF57-3BC7-80D6-F6476DFF109B> /usr/lib/libobjc.A.dylib
    0x7fff8dba7000 -     0x7fff8dba9fff  libquarantine.dylib (36.6.0 - compatibility 1.0.0) <0EBF714B-4B69-3E1F-9A7D-6BBC2AACB310> /usr/lib/system/libquarantine.dylib
    0x7fff8f4e3000 -     0x7fff8f4e4ff7  libremovefile.dylib (21.1.0 - compatibility 1.0.0) <739E6C83-AA52-3C6C-A680-B37FE2888A04> /usr/lib/system/libremovefile.dylib
    0x7fff8f4e5000 -     0x7fff8f6e7fff  libicucore.A.dylib (46.1.0 - compatibility 1.0.0) <38CD6ED3-C8E4-3CCD-89AC-9C3198803101> /usr/lib/libicucore.A.dylib
    0x7fff9017f000 -     0x7fff901acfe7  libSystem.B.dylib (159.1.0 - compatibility 1.0.0) <7BEBB139-50BB-3112-947A-F4AA168F991C> /usr/lib/libSystem.B.dylib
    0x7fff902bb000 -     0x7fff90331fff  libc++.1.dylib (28.1.0 - compatibility 1.0.0) <DA22E4D6-7F20-3BEA-9B89-2FBA735C2EE1> /usr/lib/libc++.1.dylib
    0x7fff90339000 -     0x7fff9050dff7  com.apple.CoreFoundation (6.7.2 - 635.21) <62A3402E-A4E7-391F-AD20-1EF20236CE1B> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff906df000 -     0x7fff906e0fff  libDiagnosticMessagesClient.dylib (??? - ???) <3DCF577B-F126-302B-BCE2-4DB9A95B8598> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff90b92000 -     0x7fff90b9dff7  libc++abi.dylib (14.0.0 - compatibility 1.0.0) <8FF3D766-D678-36F6-84AC-423C878E6D14> /usr/lib/libc++abi.dylib
    0x7fff90c5b000 -     0x7fff90c65ff7  liblaunch.dylib (392.38.0 - compatibility 1.0.0) <6ECB7F19-B384-32C1-8652-2463C1CF4815> /usr/lib/system/liblaunch.dylib
    0x7fff90d26000 -     0x7fff90e03fef  libsystem_c.dylib (763.13.0 - compatibility 1.0.0) <41B43515-2806-3FBC-ACF1-A16F35B7E290> /usr/lib/system/libsystem_c.dylib
    0x7fff90e04000 -     0x7fff90e0bfff  libcopyfile.dylib (85.1.0 - compatibility 1.0.0) <172B1985-F24A-34E9-8D8B-A2403C9A0399> /usr/lib/system/libcopyfile.dylib
    0x7fff91a32000 -     0x7fff91a36fff  libmathCommon.A.dylib (2026.0.0 - compatibility 1.0.0) <FF83AFF7-42B2-306E-90AF-D539C51A4542> /usr/lib/system/libmathCommon.A.dylib
    0x7fff91f2e000 -     0x7fff91f4efff  libsystem_kernel.dylib (1699.26.8 - compatibility 1.0.0) <1DDC0B0F-DB2A-34D6-895D-E5B2B5618946> /usr/lib/system/libsystem_kernel.dylib
    0x7fff920d0000 -     0x7fff9211efff  libauto.dylib (??? - ???) <D8AC8458-DDD0-3939-8B96-B6CED81613EF> /usr/lib/libauto.dylib
    0x7fff93b83000 -     0x7fff93b9efff  libexpat.1.dylib (7.2.0 - compatibility 7.0.0) <DDB91E75-A2FA-331F-8069-999127AC6A9D> /usr/lib/libexpat.1.dylib
    0x7fff94278000 -     0x7fff9427efff  libmacho.dylib (800.0.0 - compatibility 1.0.0) <D86F63EC-D2BD-32E0-8955-08B5EAFAD2CC> /usr/lib/system/libmacho.dylib
    0x7fff943a9000 -     0x7fff943aafff  libunc.dylib (24.0.0 - compatibility 1.0.0) <C67B3B14-866C-314F-87FF-8025BEC2CAAC> /usr/lib/system/libunc.dylib
    0x7fff943b9000 -     0x7fff943f4fff  libsystem_info.dylib (??? - ???) <35F90252-2AE1-32C5-8D34-782C614D9639> /usr/lib/system/libsystem_info.dylib
    0x7fff9464c000 -     0x7fff9464cfff  libkeymgr.dylib (23.0.0 - compatibility 1.0.0) <61EFED6A-A407-301E-B454-CD18314F0075> /usr/lib/system/libkeymgr.dylib
    0x7fff94a6c000 -     0x7fff94a89fff  libxpc.dylib (77.19.0 - compatibility 1.0.0) <9F57891B-D7EF-3050-BEDD-21E7C6668248> /usr/lib/system/libxpc.dylib
    0x7fff95187000 -     0x7fff95188ff7  libsystem_sandbox.dylib (??? - ???) <96D38E74-F18F-3CCB-A20B-E8E3ADC4E166> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff95189000 -     0x7fff9519bff7  libz.1.dylib (1.2.5 - compatibility 1.0.0) <30CBEF15-4978-3DED-8629-7109880A19D4> /usr/lib/libz.1.dylib
    0x7fff96fe0000 -     0x7fff96fe4fff  libdyld.dylib (195.5.0 - compatibility 1.0.0) <F1903B7A-D3FF-3390-909A-B24E09BAD1A5> /usr/lib/system/libdyld.dylib
    0x7fff9705f000 -     0x7fff97068ff7  libsystem_notify.dylib (80.1.0 - compatibility 1.0.0) <A4D651E3-D1C6-3934-AD49-7A104FD14596> /usr/lib/system/libsystem_notify.dylib
    0x7fff974cc000 -     0x7fff974cdff7  libsystem_blocks.dylib (53.0.0 - compatibility 1.0.0) <8BCA214A-8992-34B2-A8B9-B74DEACA1869> /usr/lib/system/libsystem_blocks.dylib
    0x7fff97edf000 -     0x7fff97ee7fff  libsystem_dnssd.dylib (??? - ???) <D9BB1F87-A42B-3CBC-9DC2-FC07FCEF0016> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff98489000 -     0x7fff9848efff  libcompiler_rt.dylib (6.0.0 - compatibility 1.0.0) <98ECD5F6-E85C-32A5-98CD-8911230CB66A> /usr/lib/system/libcompiler_rt.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 24138
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=57.8M resident=29.7M(51%) swapped_out_or_unallocated=28.1M(49%)
Writable regions: Total=20.6M written=2800K(13%) resident=3796K(18%) swapped_out=0K(0%) unallocated=16.9M(82%)
 
REGION TYPE                      VIRTUAL
===========                      =======
MALLOC                             12.3M
MALLOC guard page                    32K
STACK GUARD                        56.0M
Stack                              8192K
VM_ALLOCATE                           4K
__DATA                             1364K
__LINKEDIT                         47.9M
__TEXT                              9.9M
__UNICODE                           544K
shared memory                        12K
===========                      =======
TOTAL                             136.0M

Model: MacBookPro8,1, BootROM MBP81.0047.B27, 2 processors, Intel Core i7, 2.7 GHz, 8 GB, SMC 1.68f98
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 512 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x029E, 0x434D5341344758334D314131333333433920
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1333 MHz, 0x029E, 0x434D5341344758334D314131333333433920
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.106.198.4.20)
Bluetooth: Version 4.0.5f11, 2 service, 18 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: TOSHIBA MK5065GSXF, 500.11 GB
Serial ATA Device: HL-DT-ST DVDRW  GS31N
USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8509, 0xfa200000 / 3
USB Device: hub_device, 0x0424  (SMSC), 0x2513, 0xfa100000 / 2
USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfa130000 / 6
USB Device: Natural® Ergonomic Keyboard 4000, 0x045e  (Microsoft Corporation), 0x00db, 0xfa133000 / 10
USB Device: Evoluent VerticalMouse 4, 0x1a7c, 0x0191, 0xfa134000 / 9
USB Device: hub_device, 0x0424  (SMSC), 0x2640, 0xfa131000 / 7
USB Device: Ultra Fast Media Reader, 0x0424  (SMSC), 0x4064, 0xfa131100 / 11
USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0252, 0xfa120000 / 5
USB Device: BRCM2070 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 4
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x821a, 0xfa113000 / 8
USB Device: hub_device, 0x0424  (SMSC), 0x2513, 0xfd100000 / 2
USB Device: Plugable UGA-2K-A, 0x17e9  (DisplayLink (UK) Ltd.), 0x0378, 

0xfd120000 / 4
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd110000 / 3

----------
assignee: ronaldoussoren
components: Macintosh
messages: 162832
nosy: William.Payne, ronaldoussoren
priority: normal
severity: normal
status: open
title: Segfault on OSX
type: crash
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15072>
_______________________________________


More information about the New-bugs-announce mailing list