[Python-bugs-list] [ python-Bugs-470635 ] simple script causes segfault (original) (raw)

noreply@sourceforge.net noreply@sourceforge.net
Fri, 12 Oct 2001 11:39:44 -0700


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

Category: Python Library Group: Python 2.2 Status: Open Resolution: None Priority: 5 Submitted By: Travis Hume (travishume) Assigned to: Guido van Rossum (gvanrossum) Summary: simple script causes segfault

Initial Comment: I've attached a simple script that uses the poplib to periodically check a mailbox and print the number of messages available.

Seems to work twice, then the third time through a segfault occurs.

The attached script contains a gdb backtrace at the end.

Python v2.2a4 Linux Mandrake v8.1


Comment By: Guido van Rossum (gvanrossum) Date: 2001-10-12 11:39

Message: Logged In: YES user_id=6380

I'm hot on the trail. The problem is most likely in getaddrinfo(). With a debug build, I get this:

import socket [... refs] socket.getaddrinfo("mail.tenzing.com", 110, 0, socket.SOCK_STREAM) [(2, 1, 6, '', ('63.115.0.25', 110))] ../Objects/tupleobject.c:147 negative ref count -1 [... refs]


Comment By: Guido van Rossum (gvanrossum) Date: 2001-10-12 10:46

Message: Logged In: YES user_id=6380

I'm deleting your attachment since it contained a password. I'm investigating the crash now.O It's an assert atat Objects/typeobject.c:329


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