[Python-bugs-list] [ python-Bugs-451597 ] Solaris2.6 core dump in test_struct.py

noreply@sourceforge.net noreply@sourceforge.net
Thu, 16 Aug 2001 08:46:13 -0700


Bugs item #451597, was opened at 2001-08-16 08:46
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=451597&group_id=5470

Category: Build
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: William S. Annis (wsannis)
Assigned to: Nobody/Anonymous (nobody)
Summary: Solaris2.6 core dump in test_struct.py

Initial Comment:
/s/src/python/Python-2.2a1 $
/test_struct.py             <
trying: xcbhilfd
trying: xcBHILfd
trying: @xcbhilfd
trying: @xcBHILfd
trying: <xcbhilfd
trying: <xcBHILfd
trying: >xcbhilfd
trying: >xcBHILfd
trying: =xcbhilfd
trying: =xcBHILfd
trying: !xcbhilfd
trying: !xcBHILfd
'c' 'a' 'a' 'a'
'xc' 'a' '\x00a' '\x00a'
'cx' 'a' 'a\x00' 'a\x00'
's' 'a' 'a' 'a'
'0s' 'helloworld' '' ''
'1s' 'helloworld' 'h' 'h'
'9s' 'helloworld' 'helloworl' 'helloworl'
'10s' 'helloworld' 'helloworld' 'helloworld'
'11s' 'helloworld' 'helloworld\x00' 'helloworld\x00'
'20s' 'helloworld'
'helloworld\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
'helloworld\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
'b' 7 '\x07' '\x07'
'b' -7 '\xf9' '\xf9'
'B' 7 '\x07' '\x07'
'B' 249 '\xf9' '\xf9'
'h' 700 '\x02\xbc' '\xbc\x02'
'h' -700 '\xfdD' 'D\xfd'
'H' 700 '\x02\xbc' '\xbc\x02'
'H' 64836 '\xfdD' 'D\xfd'
'i' 70000000 '\x04,\x1d\x80' '\x80\x1d,\x04'
'i' -70000000 '\xfb\xd3\xe2\x80' '\x80\xe2\xd3\xfb'
'I' 70000000L '\x04,\x1d\x80' '\x80\x1d,\x04'
'I' 4224967296L '\xfb\xd3\xe2\x80' '\x80\xe2\xd3\xfb'
'l' 70000000 '\x04,\x1d\x80' '\x80\x1d,\x04'
'l' -70000000 '\xfb\xd3\xe2\x80' '\x80\xe2\xd3\xfb'
'L' 70000000L '\x04,\x1d\x80' '\x80\x1d,\x04'
'L' 4224967296L '\xfb\xd3\xe2\x80' '\x80\xe2\xd3\xfb'
'f' 2.0 '@\x00\x00\x00' '\x00\x00\x00@'
'd' 2.0 '@\x00\x00\x00\x00\x00\x00\x00'
'\x00\x00\x00\x00\x00\x00\x00@'
'f' -2.0 '\xc0\x00\x00\x00' '\x00\x00\x00\xc0'
'd' -2.0 '\xc0\x00\x00\x00\x00\x00\x00\x00'
'\x00\x00\x00\x00\x00\x00\x00\xc0'
Bus Error(coredump)

When I run ddd on the core file, the error is at 
Python-2.2a1/Modules/structmodule.c:704.  Backtrace:

(gdb) bt
#0  0xef3c38d4 in np_longlong (p=0x15ae64 "",
v=0xeffff508, f=0xef3d5564) at
/s/src/python/Python-2.2a1/Modules/structmodule.c:704
#1  0xef3c2910 in struct_pack (self=0x2, args=0x1e0254)
at
/s/src/python/Python-2.2a1/Modules/structmodule.c:1362
#2  0x2960c in call_cfunction (func=0x15376c,
arg=0x1e0254, kw=0x15ae64) at Python/ceval.c:3073
#3  0x25714 in eval_frame (f=0x17eecc) at
Python/ceval.c:1913
#4  0x26f18 in PyEval_EvalCodeEx (co=0x1e2938,
globals=0x17f018, locals=0x1e186a, args=0x0,
argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0,
closure=0x0) at Python/ceval.c:2518
#5  0x29558 in PyEval_EvalCode (co=0x1e2938,
globals=0xec514, locals=0xec514) at Python/ceval.c:491
#6  0x49018 in run_node (n=0x14b2b8, filename=0x1e2938
"", globals=0xec514, locals=0xec514, flags=0xeffffa5c)
at Python/pythonrun.c:1057
#7  0x48fc4 in run_err_node (n=0x14b2b8,
filename=0x1e2938 "", globals=0xec514, locals=0xec514,
flags=0xeffffa5c) at Python/pythonrun.c:1044
#8  0x48ba8 in PyRun_FileExFlags (fp=0xdb8f0,
filename=0xeffffc41 "Lib/test/test_struct.py",
start=967956, globals=0xec514, locals=0xec514,
closeit=1, flags=0xeffffa5c) at Python/pythonrun.c:1035
#9  0x47628 in PyRun_SimpleFileExFlags (fp=0xdb8f0,
filename=0xeffffc41 "Lib/test/test_struct.py",
closeit=1, flags=0xeffffa5c) at Python/pythonrun.c:672
#10 0x486f4 in PyRun_AnyFileExFlags (fp=0xdb8f0,
filename=0xeffffc41 "Lib/test/test_struct.py",
closeit=1, flags=0xeffffa5c) at Python/pythonrun.c:482
#11 0x1e81c in Py_Main (argc=2, argv=0xeffffb44) at
Modules/main.c:320
#12 0x1e1e4 in main (argc=2, argv=0xeffffb44) at
Modules/python.c:10

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

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