[Python-Dev] Worse news
Neil Schemenauer
nas@arctrix.com
Mon, 22 Jan 2001 07:00:57 -0800
Perhaps this will help somone track down the bug:
[running test_extcall...]
unbound method method() must be called with instance as first argument
unbound method method() must be called with instance as first argument
Program received signal SIGSEGV, Segmentation fault.
symtable_params (st=0x429bafd0, n=0x42a3ffd7) at Python/compile.c:4330
4330 if (TYPE(c) == DOUBLESTAR) {
(gdb) l
4325 symtable_add_def(st, STR(CHILD(n, i)),
4326 DEF_PARAM | DEF_STAR);
4327 i += 2;
4328 c = CHILD(n, i);
4329 }
4330 if (TYPE(c) == DOUBLESTAR) {
4331 i++;
4332 symtable_add_def(st, STR(CHILD(n, i)),
4333 DEF_PARAM | DEF_DOUBLESTAR);
4334 }
(gdb) p c
$3 = (node *) 0x42a43fff
(gdb) p *c
$4 = {n_type = 0, n_str = 0x0, n_lineno = 0, n_nchildren = 0, n_child = 0x0}
(gdb) p n
$5 = (node *) 0x42a3ffd7
(gdb) p *n
$6 = {n_type = 261, n_str = 0x0, n_lineno = 1, n_nchildren = 2,
n_child = 0x42a43fc3}
(gdb) bt 10
#0 symtable_params (st=0x429bafd0, n=0x42a3ffd7) at Python/compile.c:4330
#1 0x8060126 in symtable_funcdef (st=0x429bafd0, n=0x42a23feb)
at Python/compile.c:4245
#2 0x805fd29 in symtable_node (st=0x429bafd0, n=0x429b0fc3)
at Python/compile.c:4128
#3 0x80600da in symtable_node (st=0x429bafd0, n=0x4290cfeb)
at Python/compile.c:4232
#4 0x805f443 in symtable_build (c=0xbffff5c8, n=0x4290cfeb)
at Python/compile.c:3816
#5 0x805f130 in jcompile (n=0x4290cfeb, filename=0x80a040f "<string>",
base=0x0) at Python/compile.c:3720
#6 0x805f0c2 in PyNode_Compile (n=0x4290cfeb, filename=0x80a040f "<string>")
at Python/compile.c:3699
#7 0x8069adf in run_node (n=0x4290cfeb, filename=0x80a040f "<string>",
globals=0x40644fe0, locals=0x40644fe0) at Python/pythonrun.c:915
#8 0x8069ac0 in run_err_node (n=0x4290cfeb, filename=0x80a040f "<string>",
globals=0x40644fe0, locals=0x40644fe0) at Python/pythonrun.c:907
#9 0x8069a30 in PyRun_String (
str=0x429f9fd1 "def zv(*v): print \"ok zv\", a, b, d, e, v, k", start=257,
globals=0x40644fe0, locals=0x40644fe0) at Python/pythonrun.c:881
(More stack frames follow...)