Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#16395 closed defect (fixed)

python24 2.4.5 core dumps with trivial operations

Reported by: lucadex@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: skymoo (Adam Mercer)
Port: python24

Description (last modified by jmroot (Joshua Root))

I installed the python24 port on my Mac Book Pro Intel (OS X 10.5.4).

Then, after performed a "port_install" operation to activate this new version I run the python interpreter with these two trivial commands:

>>> import re
>>> dir(re)

and got a "Bus error".

These are the operation I performed:

[lucamac:~] luca% sudo python_select python24
Selecting version "python24" for python
[lucamac:~] luca% python
Python 2.4.5 (#1, Aug 27 2008, 10:36:10) 
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> dir(re)
Bus error

This is the dump message I got from the System:

"Process:         Python [23040]
Path:            /opt/local/Library/Frameworks/Python.framework/Versions/2.4/Resources/Python.app/Contents/MacOS/Python
Identifier:      Python
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  tcsh [216]

Date/Time:       2008-08-27 10:42:11.308 +0200
OS Version:      Mac OS X 10.5.4 (9E17)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread:  0

Thread 0 Crashed:
0   readline.so                   	0x000bbaa3 call_readline + 691
1   org.python.python             	0x0016c7ae PyOS_Readline + 254
2   org.python.python             	0x0016dd70 tok_nextc + 64
3   org.python.python             	0x0016e5a5 PyTokenizer_Get + 101
4   org.python.python             	0x00169312 parsetok + 210
5   org.python.python             	0x00213942 PyRun_InteractiveOneFlags + 290
6   org.python.python             	0x00213b63 PyRun_InteractiveLoopFlags + 99
7   org.python.python             	0x00214a19 PyRun_AnyFileExFlags + 185
8   org.python.python             	0x0021ea8a Py_Main + 3130
9   org.python.python             	0x000018dc 0x1000 + 2268
10  org.python.python             	0x00001809 0x1000 + 2057

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x000bb7fb  ecx: 0xbfffefa8  edx: 0x0030aea0
  edi: 0x0030b7e0  esi: 0x0030cc00  ebp: 0xbffff0b8  esp: 0xbfffefd0
   ss: 0x0000001f  efl: 0x00010246  eip: 0x000bbaa3   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x00000000

Binary Images:
    0x1000 -     0x1ff3 +org.python.python 2.4a0 (2.4alpha1) <a3759fd10129d38ed1d03cffd1e0eecc> /opt/local/Library/Frameworks/Python.framework/Versions/2.4/Resources/Python.app/Contents/MacOS/Python
   0xba000 -    0xbbff5 +readline.so ??? (???) <27097946047fd99b12903f63b9b23c31> /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/readline.so
  0x167000 -   0x247fe7 +org.python.python 2.4a0 (2.2) <441a392cc4fe3bf968b49ca8583688b5> /opt/local/Library/Frameworks/Python.framework/Versions/2.4/Python
  0x2ce000 -   0x2e4fea  libedit.2.dylib ??? (???) <c98b30cb0c9e4252892382daf57fa108> /usr/lib/libedit.2.dylib
  0x400000 -   0x436fe7 +libncursesw.5.dylib ??? (???) /opt/local/lib/libncursesw.5.dylib
0x8fe00000 - 0x8fe2da53  dyld 96.2 (???) <14ac3b684fa5a31932fa89c4bba7a29b> /usr/lib/dyld
0x901d2000 - 0x901d6fff  libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib
0x90a5a000 - 0x90a89ff7  libncurses.5.4.dylib ??? (???) <00632d5180ac31e2cd437a1ce9d08562> /usr/lib/libncurses.5.4.dylib
0x933ac000 - 0x933b3fe9  libgcc_s.1.dylib ??? (???) <28a7cbc3a5ca2982d124668306f422d9> /usr/lib/libgcc_s.1.dylib
0x954f9000 - 0x95659ff3  libSystem.B.dylib ??? (???) <98fc91f31f185411ddc46d3225e9af55> /usr/lib/libSystem.B.dylib
0x9680f000 - 0x9686cffb  libstdc++.6.dylib ??? (???) <6106b1f2b0b303b06ae476253dbb5f3f> /usr/lib/libstdc++.6.dylib
0xffff0000 - 0xffff1780  libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib"

I'm using MacPorts version 1.6.0.

Any guess? TIA!

Ciao, Luca De Santis Pisa, Italy

Change History (5)

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: ticketformatting added
Milestone: Port Bugs
Port: python24 added

comment:2 Changed 16 years ago by skymoo (Adam Mercer)

Cc: ram@… added

Cc Me!

comment:3 Changed 16 years ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: python24 ticketformatting removed

comment:4 Changed 15 years ago by blb@…

Resolution: fixed
Status: newclosed

Since I see readline in that crash log, this was probably fixed by r42379 (tickets #13238 and #10964). Speak up if not and I'll reopen.

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.