[Python-bugs-list] [ python-Bugs-566006 ] telnetlib makes Python dump core

noreply@sourceforge.net noreply@sourceforge.net
Mon, 10 Jun 2002 15:46:13 -0700


Bugs item #566006, was opened at 2002-06-07 23:56
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=566006&group_id=5470

Category: Python Library
Group: Python 2.2
Status: Open
Resolution: None
Priority: 3
Submitted By: Rikard Bosnjakovic (bosna)
Assigned to: Nobody/Anonymous (nobody)
Summary: telnetlib makes Python dump core

Initial Comment:
I have a machine without network and it does not run 
DNS. It runs an irc-server, and when doing the 
following, Python crashes and dumps core:

>>> import telnetlib
>>> a = telnetlib.Telnet("localhost", 6667)
>>> dir(a)

(crash)

If i do /bin/telnet localhost 6667 it works fine, so the 
irc-server is not broken. Gdb gives me this backtrace:

(gdb) bt
#0  0x00000000 in ?? ()
#1  0x080bed79 in dict_dealloc (mp=0x815aef4) at 
Objects/dictobject.c:700
#2  0x080569ff in PyObject_Dir (arg=0x815cb0c) at 
Objects/object.c:1502
#3  0x080c405d in builtin_dir (self=0x0, 
args=0x8114f6c) at Python/bltinmodule.c:436
#4  0x080c0e4d in PyCFunction_Call 
(func=0x80f7c38, arg=0x8114f6c, kw=0x0)
    at Objects/methodobject.c:80
#5  0x08072ff3 in eval_frame (f=0x810a34c) at 
Python/ceval.c:1974
#6  0x08074002 in PyEval_EvalCodeEx 
(co=0x8142a68, globals=0x8104b7c, 
locals=0x8104b7c, 
    args=0x0, argcount=0, kws=0x0, kwcount=0, 
defs=0x0, defcount=0, closure=0x0)
    at Python/ceval.c:2545
#7  0x08075f90 in PyEval_EvalCode 
(co=0x8142a68, globals=0x8104b7c, 
locals=0x8104b7c)
    at Python/ceval.c:482
#8  0x08091061 in run_node (n=0x8141878, 
filename=0x80c5795 "<stdin>", globals=0x8104b7c, 
    locals=0x8104b7c, flags=0xbffff8f4) at 
Python/pythonrun.c:1065
#9  0x0808f6c0 in PyRun_InteractiveOneFlags 
(fp=0x401672e0, filename=0x80c5795 "<stdin>", 
    flags=0xbffff8f4) at Python/pythonrun.c:579
#10 0x080909c1 in PyRun_InteractiveLoopFlags 
(fp=0x401672e0, filename=0x80c5795 "<stdin>", 
    flags=0xbffff8f4) at Python/pythonrun.c:515
#11 0x080907bb in PyRun_AnyFileExFlags 
(fp=0x401672e0, filename=0x80c5795 "<stdin>", 
    closeit=0, flags=0xbffff8f4) at 
Python/pythonrun.c:478
#12 0x08053022 in Py_Main (argc=2, 
argv=0xbffff984) at Modules/main.c:366
#13 0x080528ea in main (argc=2, argv=0xbffff984) 
at Modules/python.c:10
#14 0x4007b542 in __libc_start_main () 
from /lib/libc.so.6



The crash is reproducible. It crashes everytime I try 
the code above. Python 2.2, I have not been able to 
try it with a newer version.

----------------------------------------------------------------------

>Comment By: Rikard Bosnjakovic (bosna)
Date: 2002-06-11 00:46

Message:
Logged In: YES 
user_id=98428

It seems that the version I'm using is 2.2a1 (I guess that's 
why the line numbers seem to be wrong), I will try to 
download the latest version and compile with debuginfo and 
see if I can reproduce the error.

And no, it does not fail to any other port (ftp, telnet, sshd, 
etc), just the IRC one.


----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2002-06-10 21:37

Message:
Logged In: YES 
user_id=6380

Your line numbers seem off.  Can you try again with a debug
build?

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-06-09 10:35

Message:
Logged In: YES 
user_id=21627

What operating system? Does it fail for every port, or just
for the IRC port?

----------------------------------------------------------------------

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