[MacPorts] #54728: python36 @3.6.2 (lang) Variants:readline, universal - when printing from the environment terminal is crashing

MacPorts noreply at macports.org
Sat Sep 2 20:38:36 UTC 2017


#54728: python36 @3.6.2 (lang) Variants:readline, universal - when printing from
the environment terminal is crashing
----------------------+----------------------
 Reporter:  avoutsas  |      Owner:
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.4.1
 Keywords:            |       Port:  python36
----------------------+----------------------
 >>> print("!@£")
 Python(87821,0x10d5663c0) malloc: *** error for object 0x10d7b8110:
 pointer being freed was not allocated
 *** set a breakpoint in malloc_error_break to debug
 Abort trap: 6

 See stack trace below
 =====
 Process:               Python [87825]
 Path:
 /opt/local/Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
 Identifier:            Python
 Version:               3.6.2 (3.6.2)
 Code Type:             X86-64 (Native)
 Parent Process:        bash [87706]
 Responsible:           Python [87825]
 User ID:               501

 Date/Time:             2017-09-02 22:37:11.743 +0200
 OS Version:            Mac OS X 10.12.5 (16F73)
 Report Version:        12
 Anonymous UUID:        DEDA5FBE-B0C5-4214-154D-95B91B12E7AA

 Sleep/Wake UUID:       888A3706-940C-4684-8C12-13455F1C4991

 Time Awake Since Boot: 3200000 seconds
 Time Since Wake:       37000 seconds

 System Integrity Protection: enabled

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

 Exception Type:        EXC_CRASH (SIGABRT)
 Exception Codes:       0x0000000000000000, 0x0000000000000000
 Exception Note:        EXC_CORPSE_NOTIFY

 Application Specific Information:
 abort() called
 *** error for object 0x10256a110: pointer being freed was not allocated


 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
 0   libsystem_kernel.dylib              0x00000001021bdd42 __pthread_kill
 + 10
 1   libsystem_pthread.dylib             0x0000000102312457 pthread_kill +
 90
 2   libsystem_c.dylib                   0x00000001020dd420 abort + 129
 3   libsystem_malloc.dylib              0x000000010223dfe7 free + 530
 4   org.python.python                   0x0000000101cf3152 PyOS_Readline +
 285
 5   org.python.python                   0x0000000101cf54e8 tok_nextc + 95
 6   org.python.python                   0x0000000101cf4349 tok_get + 166
 7   org.python.python                   0x0000000101cf4287 PyTokenizer_Get
 + 14
 8   org.python.python                   0x0000000101cf33fb parsetok + 95
 9   org.python.python                   0x0000000101db445a
 PyParser_ASTFromFileObject + 101
 10  org.python.python                   0x0000000101db429c
 PyRun_InteractiveOneObject + 426
 11  org.python.python                   0x0000000101db3be4
 PyRun_InteractiveLoopFlags + 105
 12  org.python.python                   0x0000000101db3b48
 PyRun_AnyFileExFlags + 60
 13  org.python.python                   0x0000000101dc7ce7 Py_Main + 3655
 14  org.python.python                   0x0000000101ce7e1d 0x101ce6000 +
 7709
 15  libdyld.dylib                       0x0000000102041235 start + 1

 Thread 0 crashed with X86 Thread State (64-bit):
   rax: 0x0000000000000000  rbx: 0x0000000000000006  rcx:
 0x00007fff5df18e78  rdx: 0x0000000000000000
   rdi: 0x0000000000000307  rsi: 0x0000000000000006  rbp:
 0x00007fff5df18ea0  rsp: 0x00007fff5df18e78
    r8: 0x0000000000000000   r9: 0x0000000000000000  r10:
 0x0000000008000000  r11: 0x0000000000000206
   r12: 0x00007ffb1101ae00  r13: 0x0000000000000001  r14:
 0x00000001023173c0  r15: 0x0000000000000000
   rip: 0x00000001021bdd42  rfl: 0x0000000000000206  cr2:
 0x0000000101faf000

 Logical CPU:     0
 Error Code:      0x02000148
 Trap Number:     133


 Binary Images:
        0x101ce6000 -        0x101ce7fff +org.python.python (3.6.2 - 3.6.2)
 <9BC71836-8DEB-3DF1-8EE4-CC1707CF6FB1>
 /opt/local/Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
        0x101cee000 -        0x101e56ff7 +org.python.python (3.6.2, [c]
 2001-2017 Python Software Foundation. - 3.6.2) <1EAFEF35-0FCB-3144-AE4E-
 F376515AECBC>
 /opt/local/Library/Frameworks/Python.framework/Versions/3.6/Python
        0x101fb2000 -        0x101fbaff3 +libintl.8.dylib (0)
 <34C7A792-8F97-3B47-BE05-892044CF0A65> /opt/local/lib/libintl.8.dylib
        0x101fbf000 -        0x101fc0fff +_heapq.cpython-36m-darwin.so (0)
 <36FA0C9F-59EE-35D0-93C0-8C819AAEACD4>
 /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
 /lib-dynload/_heapq.cpython-36m-darwin.so
        0x101fc5000 -        0x101fc6ffb  libSystem.B.dylib (1238.60.2)
 <FC9E9F13-3B18-305C-BE0A-97C7843652B0> /usr/lib/libSystem.B.dylib
        0x101fcd000 -        0x101ffefff  libdispatch.dylib (703.50.37)
 <6582BAD6-ED27-3B30-B620-90B1C5A4AE3C> /usr/lib/system/libdispatch.dylib
        0x10203c000 -        0x102041ffb  libdyld.dylib (433.5)
 <EC3D88D2-3D40-3274-8E26-362C2D7352C8> /usr/lib/system/libdyld.dylib
        0x10204e000 -        0x10204efff  liblaunch.dylib (972.60.2)
 <D3306CFF-58AA-3C90-B06C-B70E80E60C5B> /usr/lib/system/liblaunch.dylib
        0x10205c000 -        0x102061ff3  libmacho.dylib (898)
 <17D5D855-F6C3-3B04-B680-E9BF02EF8AED> /usr/lib/system/libmacho.dylib
        0x10206f000 -        0x102071ff3  libquarantine.dylib (85.50.1)
 <12448CC2-378E-35F3-BE33-9DC395A5B970> /usr/lib/system/libquarantine.dylib
        0x10207e000 -        0x10210bfef  libsystem_c.dylib (1158.50.2)
 <E5AE5244-7D0C-36AC-8BB6-C7AE7EA52A4B> /usr/lib/system/libsystem_c.dylib
        0x10213a000 -        0x10213dffb  libsystem_configuration.dylib
 (888.60.2) <BECC01A2-CA8D-31E6-BCDF-D452965FA976>
 /usr/lib/system/libsystem_configuration.dylib
        0x102146000 -        0x102149fff  libsystem_coreservices.dylib
 (41.4) <7D26DE79-B424-3450-85E1-F7FAB32714AB>
 /usr/lib/system/libsystem_coreservices.dylib
        0x10214f000 -        0x102155fff  libsystem_dnssd.dylib (765.50.9)
 <CC960215-0B1B-3822-A13A-3DDE96FA796F>
 /usr/lib/system/libsystem_dnssd.dylib
        0x10215e000 -        0x102187ff7  libsystem_info.dylib (503.50.4)
 <611DB84C-BF70-3F92-8702-B9F28A900920>
 /usr/lib/system/libsystem_info.dylib
        0x1021a4000 -        0x1021c6ff7  libsystem_kernel.dylib
 (3789.60.24) <6E9E485F-91F6-36B7-A125-AE91DC978BCC>
 /usr/lib/system/libsystem_kernel.dylib
        0x1021e5000 -        0x10222cfe7  libsystem_m.dylib (3121.6)
 <86D499B5-BBDC-3D3B-8A4E-97AE8E6672A4> /usr/lib/system/libsystem_m.dylib
        0x10223a000 -        0x102258ff7  libsystem_malloc.dylib (116.50.8)
 <A3D15F17-99A6-3367-8C7E-4280E8619C95>
 /usr/lib/system/libsystem_malloc.dylib
        0x102265000 -        0x1022beffb  libsystem_network.dylib
 (856.60.1) <369D0221-56CA-3C3E-9EDE-94B41CAE77B7>
 /usr/lib/system/libsystem_network.dylib
        0x1022e6000 -        0x1022efff3  libsystem_networkextension.dylib
 (563.60.2) <B021F2B3-8A75-3633-ABB0-FC012B8E9B0C>
 /usr/lib/system/libsystem_networkextension.dylib
        0x1022fb000 -        0x102303fe7  libsystem_platform.dylib
 (126.50.8) <897462FD-B318-321B-A554-E61982630F7E>
 /usr/lib/system/libsystem_platform.dylib
        0x10230c000 -        0x102316ff7  libsystem_pthread.dylib
 (218.60.3) <B8FB5E20-3295-39E2-B5EB-B464D1D4B104>
 /usr/lib/system/libsystem_pthread.dylib
        0x102324000 -        0x102327ff7  libsystem_sandbox.dylib
 (592.60.1) <DC780631-BD23-36B1-9376-668619E18D25>
 /usr/lib/system/libsystem_sandbox.dylib
        0x102331000 -        0x102332ff3  libsystem_secinit.dylib (24.50.4)
 <F78B847B-3565-3E4B-98A6-F7AD40392E2D>
 /usr/lib/system/libsystem_secinit.dylib
        0x10233e000 -        0x102345ffb  libsystem_symptoms.dylib
 (532.50.47) <3390E07C-C1CE-348F-ADBD-2C5440B45EAA>
 /usr/lib/system/libsystem_symptoms.dylib
        0x102351000 -        0x102364ff7  libsystem_trace.dylib (518.60.2)
 <6B145B10-5874-3E89-90CD-D370DB475BA1>
 /usr/lib/system/libsystem_trace.dylib
        0x102373000 -        0x10239cff7  libxpc.dylib (972.60.2) <1C9AF716
 -69DF-359F-85E9-7DFDE362F9A2> /usr/lib/system/libxpc.dylib
        0x1023c1000 -        0x1024b6ff7 +libiconv.2.dylib (0)
 <455FEED2-6E0D-3401-B482-886C3489F9EC> /opt/local/lib/libiconv.2.dylib
        0x1027d7000 -        0x102809fff +readline.cpython-36m-darwin.so
 (0) <CBCF26D1-5702-3A6A-9A83-3600936CD174>
 /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
 /site-packages/readline/readline.cpython-36m-darwin.so
        0x102823000 -        0x10285cffb +libncurses.6.dylib (0) <DC0446AF-
 80E7-3BD2-AB75-6DCB9B7276CA> /opt/local/lib/libncurses.6.dylib
        0x11093a000 -        0x110977dc7  dyld (433.5) <322C06B7-8878-311D-
 888C-C8FD2CA96FF3> /usr/lib/dyld
     0x7fffc8176000 -     0x7fffc860fff7  com.apple.CoreFoundation (6.9 -
 1349.8) <09ED473E-5DE8-307F-B55C-16F6419236D5>
 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
     0x7fffdc190000 -     0x7fffdc191ff3  libDiagnosticMessagesClient.dylib
 (102) <84A04D24-0E60-3810-A8C0-90A65E2DF61A>
 /usr/lib/libDiagnosticMessagesClient.dylib
     0x7fffdc509000 -     0x7fffdc55fff7  libc++.1.dylib (307.5) <0B43BB5D-
 E6EB-3464-8DE9-B41AC8ED9D1C> /usr/lib/libc++.1.dylib
     0x7fffdc560000 -     0x7fffdc58afff  libc++abi.dylib (307.3) <30199352
 -88BF-30BD-8CFF-2A4FBE247523> /usr/lib/libc++abi.dylib
     0x7fffdcac9000 -     0x7fffdcceeffb  libicucore.A.dylib (57165.0.1)
 <2931B842-2946-3576-AD1D-1CDA22FA1388> /usr/lib/libicucore.A.dylib
     0x7fffdd07d000 -     0x7fffdd44f047  libobjc.A.dylib (709) <DC77AA6E-
 A4E4-326D-8D7F-82D63AA88F99> /usr/lib/libobjc.A.dylib
     0x7fffdd87b000 -     0x7fffdd88cff3  libz.1.dylib (67) <46E3FFA2-4328
 -327A-8D34-A03E20BFFB8E> /usr/lib/libz.1.dylib
     0x7fffdd89b000 -     0x7fffdd89fff7  libcache.dylib (79)
 <093A4DAB-8385-3D47-A350-E20CB7CCF7BF> /usr/lib/system/libcache.dylib
     0x7fffdd8a0000 -     0x7fffdd8aafff  libcommonCrypto.dylib
 (60092.50.5) <8A64D1B0-C70E-385C-92F0-E669079FDA90>
 /usr/lib/system/libcommonCrypto.dylib
     0x7fffdd8ab000 -     0x7fffdd8b2fff  libcompiler_rt.dylib (62)
 <55D47421-772A-32AB-B529-1A46C2F43B4D>
 /usr/lib/system/libcompiler_rt.dylib
     0x7fffdd8b3000 -     0x7fffdd8bbfff  libcopyfile.dylib (138)
 <819BEA3C-DF11-3E3D-A1A1-5A51C5BF1961> /usr/lib/system/libcopyfile.dylib
     0x7fffdd8bc000 -     0x7fffdd93ffdf  libcorecrypto.dylib (442.50.19)
 <65D7165E-2E71-335D-A2D6-33F78E2DF0C1> /usr/lib/system/libcorecrypto.dylib
     0x7fffdd978000 -     0x7fffdd978ffb  libkeymgr.dylib (28)
 <7AA011A9-DC21-3488-BF73-3B5B14D1FDD6> /usr/lib/system/libkeymgr.dylib
     0x7fffdd990000 -     0x7fffdd991ffb  libremovefile.dylib (45)
 <38D4CB9C-10CD-30D3-8B7B-A515EC75FE85> /usr/lib/system/libremovefile.dylib
     0x7fffdd992000 -     0x7fffdd9aaff7  libsystem_asl.dylib (349.50.5)
 <096E4228-3B7C-30A6-8B13-EC909A64499A> /usr/lib/system/libsystem_asl.dylib
     0x7fffdd9ab000 -     0x7fffdd9abff7  libsystem_blocks.dylib (67)
 <10DC5404-73AB-35B3-A277-A8AFECB476EB>
 /usr/lib/system/libsystem_blocks.dylib
     0x7fffdda42000 -     0x7fffdda5afff  libsystem_coretls.dylib
 (121.50.4) <EC6FCF07-DCFB-3A03-9CC9-6DD3709974C6>
 /usr/lib/system/libsystem_coretls.dylib
     0x7fffddb7a000 -     0x7fffddb83ff3  libsystem_notify.dylib (165.20.1)
 <B8160190-A069-3B3A-BDF6-2AA408221FAE>
 /usr/lib/system/libsystem_notify.dylib
     0x7fffddbba000 -     0x7fffddbbfffb  libunwind.dylib (35.3)
 <3D50D8A8-C460-334D-A519-2DA841102C6B> /usr/lib/system/libunwind.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: 2382254
     thread_create: 0
     thread_set_state: 0

 VM Region Summary:
 ReadOnly portion of Libraries: Total=133.6M resident=0K(0%)
 swapped_out_or_unallocated=133.6M(100%)
 Writable regions: Total=47.5M written=0K(0%) resident=0K(0%)
 swapped_out=0K(0%) unallocated=47.5M(100%)

                                 VIRTUAL   REGION
 REGION TYPE                        SIZE    COUNT (non-coalesced)
 ===========                     =======  =======
 Kernel Alloc Once                    8K        2
 MALLOC                            28.3M       10
 MALLOC guard page                   16K        4
 MALLOC_LARGE (reserved)            512K        3         reserved VM
 address space (unallocated)
 STACK GUARD                          4K        2
 Stack                             16.0M        2
 VM_ALLOCATE                       2308K        6
 __DATA                            3512K       60
 __LINKEDIT                       116.1M       33
 __TEXT                            17.5M       51
 __UNICODE                          556K        2
 shared memory                        8K        3
 ===========                     =======  =======
 TOTAL                            184.7M      166
 TOTAL, minus reserved VM space   184.2M      166

 Model: MacBookPro11,3, BootROM MBP112.0138.B25, 4 processors, Intel Core
 i7, 2.3 GHz, 16 GB, SMC 2.19f12
 Graphics: Intel Iris Pro, Intel Iris Pro, Built-In
 Graphics: NVIDIA GeForce GT 750M, NVIDIA GeForce GT 750M, PCIe, 2048 MB
 Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD,
 0x484D54343147533641465238412D50422020
 Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD,
 0x484D54343147533641465238412D50422020
 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x134),
 Broadcom BCM43xx 1.0 (7.21.171.126.1a2)
 Bluetooth: Version 5.0.4f18, 3 services, 27 devices, 1 incoming serial
 ports
 Network Service: Wi-Fi, AirPort, en0
 Network Service: iPhone, Ethernet, en4
 Serial ATA Device: APPLE SSD SM0512F, 500.28 GB
 USB Device: USB 3.0 Bus
 USB Device: Apple Internal Keyboard / Trackpad
 USB Device: BRCM20702 Hub
 USB Device: Bluetooth USB Host Controller
 USB Device: iPhone
 Thunderbolt Bus: MacBook Pro, Apple Inc., 17.1

--
Ticket URL: <https://trac.macports.org/ticket/54728>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list