[ python-Bugs-1236090 ] Carbon.FSSpec.as_pathname() crashes
SourceForge.net
noreply at sourceforge.net
Tue Jul 12 23:26:12 CEST 2005
Bugs item #1236090, was opened at 2005-07-11 16:12
Message generated for change (Comment added) made by jackjansen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1236090&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Extension Modules
Group: Platform-specific
>Status: Closed
>Resolution: Fixed
Priority: 8
Submitted By: Michael Hudson (mwh)
Assigned to: Jack Jansen (jackjansen)
Summary: Carbon.FSSpec.as_pathname() crashes
Initial Comment:
There's something peculiar in the land of bgen-ed wrappers:
$ ./python.exe
Python 2.5a0 (#1, Jul 11 2005, 13:21:11)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1671)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Carbon.File
[45313 refs]
>>> Carbon.File.FSSpec(os.curdir).as_pathname()
Segmentation fault
("make test" also crashes).
This is on 10.3.9.
My first investigations with gdb didn't reveal anything that made
much sense, so it *might* be a compiler bug. At any rate, it didn't
do this a few weeks ago...
----------------------------------------------------------------------
>Comment By: Jack Jansen (jackjansen)
Date: 2005-07-12 23:26
Message:
Logged In: YES
user_id=45365
Argh! It turns out that patch #1035255 was incomplete: it patched
_Filemodule.c, but not filesupport.py (bad Bob, no cookie:-)
So, when I regenerated _Filemodule.c last week FSSpec.as_pathname()
still called FSSpec_as_pathname, in stead of _FSSpec_as_pathname
(note the subtle difference, which I consequently overlooked). This
resulted in an infinite loop.
Fixed in _Filemodule.c rev. 1.25, filesupport.py rev. 1.22.
----------------------------------------------------------------------
Comment By: Jack Jansen (jackjansen)
Date: 2005-07-12 22:18
Message:
Logged In: YES
user_id=45365
The problem appears to be in as_pathname(). Investigating...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1236090&group_id=5470
More information about the Python-bugs-list
mailing list