[Python-bugs-list] [ python-Bugs-472642 ] interpreter crash when import .so fails (original) (raw)

noreply@sourceforge.net noreply@sourceforge.net
Thu, 18 Oct 2001 20:42:10 -0700


Bugs item #472642, was opened at 2001-10-18 20:42 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=472642&group_id=5470

Category: Python Interpreter Core Group: Python 2.2 Status: Open Resolution: None Priority: 5 Submitted By: Neal Norwitz (nnorwitz) Assigned to: Nobody/Anonymous (nobody) Summary: interpreter crash when import .so fails

Initial Comment: The python interpreter crashes when import _socket fails (.so). This only happens when running purify (on solaris 2.8). The problem is that dlerror() returns NULL, which is then passed to strlen().

Attached is a file with the stack trace which caused the problem, and a patch to fix the problem.

Neal


You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=472642&group_id=5470