[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2010-10-20 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I'm closing this as a duplicate of #9670, that is: too deep recursion in a thread doesn't trigger the appropriate exception but causes a hard crash instead. I have attached a patch to that issue (but haven't applied it yet, I'd like

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2010-08-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Issue1454481, which introduced the ability to set the thread stack size, indicates that the FreeBSD port maintainers were bumping the default limit higher. So I think (3) is probably the correct solution. --

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2010-05-05 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The script works fine for me (OSX 10.6.3, /usr/bin/python2.5, /usr/bin/python2.6, a recent build of 2.6.x, a recent build of 3.2 and the trunk) The breakit example in msg93828 works in 64-bit binaries, and fails on 32-bit ones. This

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2010-05-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: - ronaldoussoren components: +Macintosh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6763 ___

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2009-10-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The thread safety problem comes from the fact that performing file IO as mimetypes.init() does will release the GIL - if you want to ensure thread safety in that context, you have to do your own locking. mimetypes ignore this thread

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2009-10-10 Thread Leonardo Santagada
Leonardo Santagada santag...@gmail.com added the comment: I'm on os x 10.6 where threadboom.py doesn't segfault anymore at least on the system provided python. The problem that I see is that it shouldn't be segfaulting on mac os x 10.5 with the default recursion limit (I think it is 1000) with 2

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2009-10-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Knew I forgot to mention something - I'm not on OS X at all (Linux, Ubuntu 8.04). I was only looking at this bug because RDM cross-linked it to the mimetypes patch I was reviewing this evening. Running the threadboom code, it passes fine for me

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2009-08-22 Thread Leonardo Santagada
New submission from Leonardo Santagada santag...@gmail.com: Python 2.6.2 (and the maint branch if using old mimetypes.py) crash (with a bus error) on mac os x (10.5.7 10.5.8) with the file I posted. The problem appears to be in the allocation of memory by the GC. What I do is I call

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2009-08-22 Thread Joshua Bronson
Changes by Joshua Bronson jabron...@gmail.com: -- nosy: +jab ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6763 ___ ___ Python-bugs-list mailing

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2009-08-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Seems like issue 6626 could be helpful here. -- nosy: +r.david.murray priority: - high stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6763

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2009-08-22 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +jrus ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6763 ___ ___ Python-bugs-list

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2009-08-22 Thread Leonardo Santagada
Leonardo Santagada santag...@gmail.com added the comment: Well, the mimetypes module from 2.6 maintenance branch make this problem not show up with mimetypes.guess_type, but I still think this is a bug because pure python code should not crash the interpreter right? I'm attaching the file I