[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Eric Smith

New submission from Eric Smith e...@trueblade.com:

I get a bus error in test_lchflags in test_posix.py on my Mac OS X 10.5 box.

I'll try and spend some time later today to debug this, but here's the
backtrace if anyone wants to look at it:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x0004
bytes2str (o=0x0, lock=1) at posixmodule.c:545
545 if(PyBytes_Check(o))
(gdb) bt
#0  bytes2str (o=0x0, lock=1) at posixmodule.c:545
#1  0x000e5d3c in posix_lchflags (self=0x353a08, args=0x0) at
posixmodule.c:1986
#2  0x000a6037 in PyEval_EvalFrameEx (f=0x25ff30, throwflag=0) at
Python/ceval.c:3744
#3  0x000a6e42 in PyEval_EvalFrameEx (f=0x25c4f0, throwflag=0) at
Python/ceval.c:3832
#4  0x000a78cb in PyEval_EvalCodeEx (co=0x624380, globals=0x601420,
locals=0x0, args=0x69c154, argcount=2, kws=0x255410, kwcount=0,
defs=0x4ae4bc, defcount=1, kwdefs=0x0, closure=0x0) at Python/ceval.c:3180
#5  0x00033cc5 in function_call (func=0x4b1660, arg=0x69c148,
kw=0x6a8ed0) at Objects/funcobject.c:628
#6  0x85c9 in PyObject_Call (func=0x4b1660, arg=0x69c148,
kw=0x6a8ed0) at Objects/abstract.c:2161
#7  0x000a352b in PyEval_EvalFrameEx (f=0x25c380, throwflag=0) at
Python/ceval.c:4045
#8  0x000a78cb in PyEval_EvalCodeEx (co=0x6243c8, globals=0x601420,
locals=0x0, args=0x690dac, argcount=2, kws=0x0, kwcount=0, defs=0x0,
defcount=0, kwdefs=0x0, closure=0x0) at Python/ceval.c:3180
#9  0x00033cc5 in function_call (func=0x4b16a8, arg=0x690da0, kw=0x0) at
Objects/funcobject.c:628
#10 0x85c9 in PyObject_Call (func=0x4b16a8, arg=0x690da0, kw=0x0) at
Objects/abstract.c:2161
#11 0x0001ecfe in method_call (func=0x4b16a8, arg=0x69af70, kw=0x0) at
Objects/classobject.c:323
#12 0x85c9 in PyObject_Call (func=0x45dc88, arg=0x69af70, kw=0x0) at
Objects/abstract.c:2161
#13 0x0005cec7 in slot_tp_call (self=0x0, args=0x69af70, kwds=0x0) at
Objects/typeobject.c:4956
#14 0x85c9 in PyObject_Call (func=0x6a37d0, arg=0x69af70, kw=0x0) at
Objects/abstract.c:2161
#15 0x000a4ef8 in PyEval_EvalFrameEx (f=0x25c210, throwflag=0) at
Python/ceval.c:3957
#16 0x000a6e42 in PyEval_EvalFrameEx (f=0x25c090, throwflag=0) at
Python/ceval.c:3832
#17 0x000a78cb in PyEval_EvalCodeEx (co=0x62e7b8, globals=0x601420,
locals=0x0, args=0x690d84, argcount=2, kws=0x203e10, kwcount=0,
defs=0x0, defcount=0, kwdefs=0x0, closure=0x4aeab0) at Python/ceval.c:3180
#18 0x00033cc5 in function_call (func=0x4b56f0, arg=0x690d78,
kw=0x6a8e40) at Objects/funcobject.c:628
#19 0x85c9 in PyObject_Call (func=0x4b56f0, arg=0x690d78,
kw=0x6a8e40) at Objects/abstract.c:2161
#20 0x000a352b in PyEval_EvalFrameEx (f=0x25bf20, throwflag=0) at
Python/ceval.c:4045
#21 0x000a78cb in PyEval_EvalCodeEx (co=0x62e608, globals=0x601420,
locals=0x0, args=0x69cf14, argcount=2, kws=0x0, kwcount=0, defs=0x0,
defcount=0, kwdefs=0x0, closure=0x0) at Python/ceval.c:3180
#22 0x00033cc5 in function_call (func=0x4b55d0, arg=0x69cf08, kw=0x0) at
Objects/funcobject.c:628
#23 0x85c9 in PyObject_Call (func=0x4b55d0, arg=0x69cf08, kw=0x0) at
Objects/abstract.c:2161
#24 0x0001ecfe in method_call (func=0x4b55d0, arg=0x69ad30, kw=0x0) at
Objects/classobject.c:323
#25 0x85c9 in PyObject_Call (func=0x45db48, arg=0x69ad30, kw=0x0) at
Objects/abstract.c:2161
#26 0x0005cec7 in slot_tp_call (self=0x0, args=0x69ad30, kwds=0x0) at
Objects/typeobject.c:4956
#27 0x85c9 in PyObject_Call (func=0x69afb0, arg=0x69ad30, kw=0x0) at
Objects/abstract.c:2161
#28 0x000a4ef8 in PyEval_EvalFrameEx (f=0x25bc50, throwflag=0) at
Python/ceval.c:3957
#29 0x000a78cb in PyEval_EvalCodeEx (co=0x62e5c0, globals=0x601420,
locals=0x0, args=0x690d34, argcount=2, kws=0x203e00, kwcount=0,
defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at Python/ceval.c:3180
#30 0x00033cc5 in function_call (func=0x4b5588, arg=0x690d28,
kw=0x6a8db0) at Objects/funcobject.c:628
#31 0x85c9 in PyObject_Call (func=0x4b5588, arg=0x690d28,
kw=0x6a8db0) at Objects/abstract.c:2161
#32 0x000a352b in PyEval_EvalFrameEx (f=0x25bae0, throwflag=0) at
Python/ceval.c:4045
#33 0x000a78cb in PyEval_EvalCodeEx (co=0x62e608, globals=0x601420,
locals=0x0, args=0x690d5c, argcount=2, kws=0x0, kwcount=0, defs=0x0,
defcount=0, kwdefs=0x0, closure=0x0) at Python/ceval.c:3180
#34 0x00033cc5 in function_call (func=0x4b55d0, arg=0x690d50, kw=0x0) at
Objects/funcobject.c:628
#35 0x85c9 in PyObject_Call (func=0x4b55d0, arg=0x690d50, kw=0x0) at
Objects/abstract.c:2161
#36 0x0001ecfe in method_call (func=0x4b55d0, arg=0x69a910, kw=0x0) at
Objects/classobject.c:323
#37 0x85c9 in PyObject_Call (func=0x45dbe8, arg=0x69a910, kw=0x0) at
Objects/abstract.c:2161
#38 0x0005cec7 in slot_tp_call (self=0x0, args=0x69a910, kwds=0x0) at
Objects/typeobject.c:4956
#39 0x85c9 in PyObject_Call (func=0x69acd0, arg=0x69a910, kw=0x0) at
Objects/abstract.c:2161
#40 0x000a4ef8 in PyEval_EvalFrameEx (f=0x25b390, throwflag=0) at
Python/ceval.c:3957
#41 0x000a6e42 in PyEval_EvalFrameEx (f=0x25a390, throwflag=0) at

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

FreeBSD 6.3 also gives a segfault in test_posix.  Gentoo runs fine.

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5943
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

Fedora Core 6 works okay.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5943
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Does this patch fix the problem?

--
keywords: +patch
nosy: +marketdickinson
Added file: http://bugs.python.org/file13894/issue5943.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5943
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

Yes, that patch fixes the problem for me on Mac OS.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5943
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Fixes it on FreeBSD 6.3 as well.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5943
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

My Fedora Core 6 box still works with the patch.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5943
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

This is now fixed in r72340 (I came up with the same patch
independently, and just hadn't got around to commit it).

--
nosy: +loewis
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5943
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com