[issue2546] Python-2.5.2: crash in visit_decref () at Modules/gcmodule.c:270

2008-04-03 Thread George Verbitsky

New submission from George Verbitsky <[EMAIL PROTECTED]>:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208408368 (LWP 2816)]
0x080edccd in visit_decref (op=0xbf9289ff, data=0x0) at
Modules/gcmodule.c:270
270 if (PyObject_IS_GC(op)) {
(gdb) bt
#0  0x080edccd in visit_decref (op=0xbf9289ff, data=0x0) at
Modules/gcmodule.c:270
#1  0x08099e19 in tupletraverse (o=0xb7f2380c, visit=0x80edcc0
, arg=0x0)
at Objects/tupleobject.c:443
#2  0x080ee63e in collect (generation=0) at Modules/gcmodule.c:295
#3  0x080ef159 in _PyObject_GC_NewVar (tp=0x8170700, nitems=14) at
Modules/gcmodule.c:897
#4  0x08111f10 in PyFrame_New (tstate=0x8bdd128, code=0xb7d04410,
globals=0xb7cd3934, locals=0x0)
at Objects/frameobject.c:614
#5  0x080c521a in PyEval_EvalFrameEx (f=0x8cf0fb4, throwflag=0) at
Python/ceval.c:3639
#6  0x080c5265 in PyEval_EvalFrameEx (f=0x8ced7bc, throwflag=0) at
Python/ceval.c:3650
#7  0x080c5265 in PyEval_EvalFrameEx (f=0x8ced484, throwflag=0) at
Python/ceval.c:3650
#8  0x080c5265 in PyEval_EvalFrameEx (f=0x8ce7dbc, throwflag=0) at
Python/ceval.c:3650
#9  0x080c5265 in PyEval_EvalFrameEx (f=0x8ce7c5c, throwflag=0) at
Python/ceval.c:3650
#10 0x080c6075 in PyEval_EvalCodeEx (co=0xb7c2d608, globals=0xb7c18e84,
locals=0x0, args=0xb7f28378, 
argcount=1, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
at Python/ceval.c:2831
#11 0x08112871 in function_call (func=0xb7c2af44, arg=0xb7f2836c,
kw=0x0) at Objects/funcobject.c:517
#12 0x08061a17 in PyObject_Call (func=0x7, arg=0xb7f2836c, kw=0x0) at
Objects/abstract.c:1860
#13 0x08067937 in instancemethod_call (func=0xb7f1302c, arg=0xb7f2836c,
kw=0x0) at Objects/classobject.c:2497
#14 0x08061a17 in PyObject_Call (func=0x7, arg=0xb7f5202c, kw=0x0) at
Objects/abstract.c:1860
#15 0x0809d7cb in slot_tp_init (self=0xb7c3442c, args=0xb7f5202c,
kwds=0x0) at Objects/typeobject.c:4862
#16 0x080a0393 in type_call (type=0x8c5d04c, args=0xb7f5202c, kwds=0x0)
at Objects/typeobject.c:436
#17 0x08061a17 in PyObject_Call (func=0x7, arg=0xb7f5202c, kw=0x0) at
Objects/abstract.c:1860
#18 0x080c1149 in PyEval_EvalFrameEx (f=0x8ce7afc, throwflag=0) at
Python/ceval.c:3775
#19 0x080c6075 in PyEval_EvalCodeEx (co=0xb7c2d4a0, globals=0xb7c83934,
locals=0x0, args=0xb7f23818, 
argcount=1, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
at Python/ceval.c:2831
#20 0x08112871 in function_call (func=0xb7c2ae64, arg=0xb7f2380c,
kw=0x0) at Objects/funcobject.c:517
#21 0x08061a17 in PyObject_Call (func=0x7, arg=0xb7f2380c, kw=0x0) at
Objects/abstract.c:1860
#22 0x080be26c in PyEval_CallObjectWithKeywords (func=0xb7c2ae64,
arg=0xb7f2380c, kw=0x0)
at Python/ceval.c:3433
#23 0x08061c30 in PyObject_CallObject (o=0xb7c2ae64, a=0xb7f2380c) at
Objects/abstract.c:1851
#24 0x08061879 in C2py (func=0x81380c5 "backend", nargs=1) at C2py.c:52
#25 0x0806191d in backend (output_filename=0xbf9289ff "cla") at backend.c:5
#26 0x08056fa5 in main (argc=3, argv=0xbf9271b4) at main.c:33
(gdb)

--
components: Interpreter Core
messages: 64915
nosy: garikvm
severity: normal
status: open
title: Python-2.5.2: crash in visit_decref () at Modules/gcmodule.c:270
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2546>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2546] Python-2.5.2: crash in visit_decref () at Modules/gcmodule.c:270

2008-04-05 Thread George Verbitsky

George Verbitsky <[EMAIL PROTECTED]> added the comment:

Thank you, Amaury, very much for helping me with this one.
George

Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: 
Amaury Forgeot d'Arc  added the comment:

The crash is because of an error in your C code:
in backend.c::
void backend(char *output_filename)
{
C2py("backend", 1, output_filename);
}

But your C2py function expects a variable number of PyObject*.

I found this by disabling the garbage collector: then the program
crashes in C2py.c at the instruction "Py_DECREF(pArgs);"

--
priority: release blocker -> normal
resolution:  -> invalid
status: open -> closed

__
Tracker 

__

-
You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.

Added file: http://bugs.python.org/file9949/unnamed

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2546>
__Thank you, Amaury, very much for helping me with this 
one.GeorgeAmaury Forgeot d'Arc <[EMAIL 
PROTECTED]> wrote: Amaury 
Forgeot d'Arc <[EMAIL PROTECTED]> added the comment:The crash is 
because of an error in your C code:in backend.c::void backend(char 
*output_filename){C2py("backend", 1, output_filename);  
  }But your C2py function expects a variable number of 
PyObject*.I found this by disabling the garbage collector: then the 
programcrashes in C2py.c at the instruction 
"Py_DECREF(pArgs);"--priority: release blocker -> 
normalresolution:  -> invalidstatus: open -> 
closed__Tracker <[EMAIL 
PROTECTED]>__ 

  You rock. That's why Blockbuster's offering you http://us.rd.yahoo.com/evt=47523/*http://tc.deals.yahoo.com/tc/blockbuster/text5.com";>one
 month of Blockbuster Total Access, No Cost.___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com