[Bug 702062] crash after Gst.Pad.new_from_template
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Jun 14 11:25:44 PDT 2013
https://bugzilla.gnome.org/show_bug.cgi?id=702062
GStreamer | gst-python | 1.0.6
--- Comment #2 from Drew Perttula <drewp at bigasterisk.com> 2013-06-14 18:25:38 UTC ---
Here's the crash from the print. Below is the more important crash from the
set_chain_function_full call.
In case anyone wants to reproduce this output, here's what I ran:
1. sudo aptitude install python-gobject-dbg
2. gdb --args /usr/bin/python2.7-dbg /tmp/cr.py
3. r
4. bt
#0 0x00007ffff4c279f1 in pygobject_repr (self=0xe22e60)
at /build/buildd/pygobject-3.4.0/gi/_gobject/pygobject.c:1188
#1 0x00000000004b66ae in object_str (self=<Pad at remote 0xe22e60>) at
../Objects/typeobject.c:3012
#2 0x00000000004888b6 in _PyObject_Str (v=<Pad at remote 0xe22e60>) at
../Objects/object.c:430
#3 0x00000000004889df in PyObject_Str (v=<Pad at remote 0xe22e60>) at
../Objects/object.c:451
#4 0x0000000000488398 in internal_print (op=<Pad at remote 0xe22e60>,
fp=0x7ffff729d280 <_IO_2_1_stdout_>,
flags=1, nesting=0) at ../Objects/object.c:303
#5 0x00000000004884d6 in PyObject_Print (op=<Pad at remote 0xe22e60>,
fp=0x7ffff729d280 <_IO_2_1_stdout_>,
flags=1) at ../Objects/object.c:330
#6 0x0000000000452c8c in file_PyObject_Print (op=<Pad at remote 0xe22e60>,
f=0x7ffff7fab280, flags=1)
at ../Objects/fileobject.c:110
#7 0x0000000000458795 in PyFile_WriteObject (v=<Pad at remote 0xe22e60>,
f=<file at remote 0x7ffff7fab280>,
flags=1) at ../Objects/fileobject.c:2572
#8 0x000000000051d6ee in PyEval_EvalFrameEx (f=
Frame 0xbc0830, for file /tmp/cr.py, line 17, in <module> (), throwflag=0)
at ../Python/ceval.c:1770
etc
-----------
Remove the 'print sinkpad' line and it crashes here:
#0 0x00007ffff6a080be in _pygi_marshal_from_py_interface_instance
(state=0x7fffffffd620, callable_cache=
0xe6bd20, arg_cache=0xf7d490, py_arg=<Pad at remote 0xe22e60>,
arg=0xf6f600)
at /build/buildd/pygobject-3.4.0/gi/pygi-marshal-from-py.c:1712
#1 0x00007ffff6a00a0b in _invoke_marshal_in_args (state=0x7fffffffd620,
cache=0xe6bd20)
at /build/buildd/pygobject-3.4.0/gi/pygi-invoke.c:502
#2 0x00007ffff6a00ee3 in pygi_callable_info_invoke (info=0xf83ca0, py_args=
(<Pad at remote 0xe22e60>, <function at remote 0xf94108>, None), kwargs={},
cache=0xe6bd20,
function_ptr=0x0, user_data=0x0) at
/build/buildd/pygobject-3.4.0/gi/pygi-invoke.c:646
#3 0x00007ffff6a00ff9 in _wrap_g_callable_info_invoke (self=0xe4c060, py_args=
(<Pad at remote 0xe22e60>, <function at remote 0xf94108>, None), kwargs={})
at /build/buildd/pygobject-3.4.0/gi/pygi-invoke.c:672
#4 0x0000000000486b34 in PyCFunction_Call (func=
<built-in method invoke of gi.FunctionInfo object at remote 0xe4c060>, arg=
(<Pad at remote 0xe22e60>, <function at remote 0xf94108>, None), kw={}) at
../Objects/methodobject.c:85
#5 0x0000000000527a9a in ext_do_call (func=
<built-in method invoke of gi.FunctionInfo object at remote 0xe4c060>,
pp_stack=0x7fffffffd830, flags=3,
na=0, nk=0) at ../Python/ceval.c:4331
#6 0x00000000005216a7 in PyEval_EvalFrameEx (f=
Frame 0xbb9150, for file /usr/lib/python2.7/dist-packages/gi/types.py, line
47, in function (args=(<Pad at remote 0xe22e60>, <function at remote 0xf94108>,
None), kwargs={}), throwflag=0) at ../Python/ceval.c:2705
#7 0x0000000000523de9 in PyEval_EvalCodeEx (co=0xe2f250, globals=
{'StructMeta': <type at remote 0xe74130>, 'absolute_import':
<_Feature(mandatory=(3, 0, 0, 'alpha', 0), optional=(2, 5, 0, 'alpha', 1),
compiler_flag=16384) at remote 0xcc39c0>, 'register_interface_info': <built-in
function register_interface_info>, 'ObjectInfo': <type at remote
0x7ffff6c154c0>, 'Function': <function at remote 0xe28f78>, '__package__':
'gi', 'MetaClassHelper': <type at remote 0xe72a20>, '_gobject': <module at
remote 0xbd7338>, '__doc__': None, 'hook_up_vfunc_implementation': <built-in
function hook_up_vfunc_implementation>, '__builtins__': {'bytearray': <type at
remote 0x85dd40>, 'IndexError': <type at remote 0x864380>, 'all': <built-in
function all>, 'help': <_Helper at remote 0xcac290>, 'vars': <built-in function
vars>, 'SyntaxError': <type at remote 0x863d00>, 'unicode': <type at remote
0x87b060>, 'UnicodeDecodeError': <type at remote 0x864ca0>, 'memoryview': <type
at remote 0x86ec20>, 'isinstance': <built-in function isinstance>, 'copyright':
<_Printer(_Printer__data='Copyright (c) 2001-2...(truncated), locals=0x0,
args=0xbc09b8, argcount=3, kws=0xbc09d0,
kwcount=0, defs=0x0, defcount=0, closure=(<cell at remote 0xe55540>,)) at
../Python/ceval.c:3253
---Type <return> to continue, or q <return> to quit---
#8 0x0000000000526bfe in fast_function (func=<function at remote 0xe564f8>,
pp_stack=0x7fffffffdcf0, n=3,
na=3, nk=0) at ../Python/ceval.c:4117
#9 0x00000000005267e7 in call_function (pp_stack=0x7fffffffdcf0, oparg=2) at
../Python/ceval.c:4042
#10 0x00000000005213fb in PyEval_EvalFrameEx (f=
Frame 0xbc0830, for file /tmp/cr.py, line 22, in <module> (), throwflag=0)
at ../Python/ceval.c:2666
#11 0x0000000000523de9 in PyEval_EvalCodeEx (co=0xc98bf0, globals=
{'Gst': <DynamicModule(_overrides_module=None, _namespace='Gst',
_introspection_module=<IntrospectionModule(caps_from_string=<function at remote
0xe3f990>, _namespace='Gst', PadPresence=<type at remote 0xf7c340>,
PadDirection=<type at remote 0xf7b980>, Object=<GObjectMeta(unparent=<function
at remote 0xe3f648>, __module__='gi.repository.Gst',
default_deep_notify=<staticmethod at remote 0xe375a8>,
add_control_binding=<function at remote 0xe3b840>, lock=<property at remote
0xe2a418>, replace=<staticmethod at remote 0xe37678>,
do_deep_notify=<NativeVFunc(_info=<gi.VFuncInfo at remote 0xe3cf60>) at remote
0xe3e7d0>, suggest_next_sync=<function at remote 0xe3f4f8>,
set_parent=<function at remote 0xe3f450>,
set_control_binding_disabled=<function at remote 0xe3f1b0>, last_sync=<property
at remote 0xe3a170>, __info__=<ObjectInfo at remote 0xe30c90>,
control_bindings=<property at remote 0xe32c10>,
has_active_control_bindings=<function at remote 0xe3bed0>, __gsignals__={},
check_uniqueness=<staticmethod at remote 0xe37...(truncated), locals=
{'Gst': <DynamicModule(_overrides_module=None, _namespace='Gst',
_introspection_module=<IntrospectionModule(caps_from_string=<function at remote
0xe3f990>, _namespace='Gst', PadPresence=<type at remote 0xf7c340>,
PadDirection=<type at remote 0xf7b980>, Object=<GObjectMeta(unparent=<function
at remote 0xe3f648>, __module__='gi.repository.Gst',
default_deep_notify=<staticmethod at remote 0xe375a8>,
add_control_binding=<function at remote 0xe3b840>, lock=<property at remote
0xe2a418>, replace=<staticmethod at remote 0xe37678>,
do_deep_notify=<NativeVFunc(_info=<gi.VFuncInfo at remote 0xe3cf60>) at remote
0xe3e7d0>, suggest_next_sync=<function at remote 0xe3f4f8>,
set_parent=<function at remote 0xe3f450>,
set_control_binding_disabled=<function at remote 0xe3f1b0>, last_sync=<property
at remote 0xe3a170>, __info__=<ObjectInfo at remote 0xe30c90>,
control_bindings=<property at remote 0xe32c10>,
has_active_control_bindings=<function at remote 0xe3bed0>, __gsignals__={},
check_uniqueness=<staticmethod at remote 0xe37...(truncated), args=0x0,
argcount=0, kws=0x0, kwcount=0, defs=0x0,
defcount=0, closure=0x0) at ../Python/ceval.c:3253
#12 0x0000000000519e56 in PyEval_EvalCode (co=0xc98bf0, globals=
{'Gst': <DynamicModule(_overrides_module=None, _namespace='Gst',
_introspection_module=<IntrospectionModule(caps_from_string=<function at remote
0xe3f990>, _namespace='Gst', PadPresence=<type at remote 0xf7c340>,
PadDirection=<type at remote 0xf7b980>, Object=<GObjectMeta(unparent=<function
at remote 0xe3f648>, __module__='gi.repository.Gst',
default_deep_notify=<staticmethod at remote 0xe375a8>,
add_control_binding=<function at rem---Type <return> to continue, or q <return>
to quit---
ote 0xe3b840>, lock=<property at remote 0xe2a418>, replace=<staticmethod at
remote 0xe37678>, do_deep_notify=<NativeVFunc(_info=<gi.VFuncInfo at remote
0xe3cf60>) at remote 0xe3e7d0>, suggest_next_sync=<function at remote
0xe3f4f8>, set_parent=<function at remote 0xe3f450>,
set_control_binding_disabled=<function at remote 0xe3f1b0>, last_sync=<property
at remote 0xe3a170>, __info__=<ObjectInfo at remote 0xe30c90>,
control_bindings=<property at remote 0xe32c10>,
has_active_control_bindings=<function at remote 0xe3bed0>, __gsignals__={},
check_uniqueness=<staticmethod at remote 0xe37...(truncated), locals=
{'Gst': <DynamicModule(_overrides_module=None, _namespace='Gst',
_introspection_module=<IntrospectionModule(caps_from_string=<function at remote
0xe3f990>, _namespace='Gst', PadPresence=<type at remote 0xf7c340>,
PadDirection=<type at remote 0xf7b980>, Object=<GObjectMeta(unparent=<function
at remote 0xe3f648>, __module__='gi.repository.Gst',
default_deep_notify=<staticmethod at remote 0xe375a8>,
add_control_binding=<function at remote 0xe3b840>, lock=<property at remote
0xe2a418>, replace=<staticmethod at remote 0xe37678>,
do_deep_notify=<NativeVFunc(_info=<gi.VFuncInfo at remote 0xe3cf60>) at remote
0xe3e7d0>, suggest_next_sync=<function at remote 0xe3f4f8>,
set_parent=<function at remote 0xe3f450>,
set_control_binding_disabled=<function at remote 0xe3f1b0>, last_sync=<property
at remote 0xe3a170>, __info__=<ObjectInfo at remote 0xe30c90>,
control_bindings=<property at remote 0xe32c10>,
has_active_control_bindings=<function at remote 0xe3bed0>, __gsignals__={},
check_uniqueness=<staticmethod at remote 0xe37...(truncated)) at
../Python/ceval.c:667
#13 0x000000000055685c in run_mod (mod=0xbbf700, filename=0x7fffffffe765
"/tmp/cr.py", globals=
{'Gst': <DynamicModule(_overrides_module=None, _namespace='Gst',
_introspection_module=<IntrospectionModule(caps_from_string=<function at remote
0xe3f990>, _namespace='Gst', PadPresence=<type at remote 0xf7c340>,
PadDirection=<type at remote 0xf7b980>, Object=<GObjectMeta(unparent=<function
at remote 0xe3f648>, __module__='gi.repository.Gst',
default_deep_notify=<staticmethod at remote 0xe375a8>,
add_control_binding=<function at remote 0xe3b840>, lock=<property at remote
0xe2a418>, replace=<staticmethod at remote 0xe37678>,
do_deep_notify=<NativeVFunc(_info=<gi.VFuncInfo at remote 0xe3cf60>) at remote
0xe3e7d0>, suggest_next_sync=<function at remote 0xe3f4f8>,
set_parent=<function at remote 0xe3f450>,
set_control_binding_disabled=<function at remote 0xe3f1b0>, last_sync=<property
at remote 0xe3a170>, __info__=<ObjectInfo at remote 0xe30c90>,
control_bindings=<property at remote 0xe32c10>,
has_active_control_bindings=<function at remote 0xe3bed0>, __gsignals__={},
check_uniqueness=<staticmethod at remote 0xe37...(truncated), locals=
{'Gst': <DynamicModule(_overrides_module=None, _namespace='Gst',
_introspection_module=<IntrospectionModule(caps_from_string=<function at remote
0xe3f990>, _namespace='Gst', PadPresence=<type at remote 0xf7c340>,
PadDirection=<type at remote 0xf7b980>, Object=<GObjectMeta(unparent=<function
at remote 0xe3f648>, __module__='gi.repository.Gst',
default_deep_notify=<staticmethod at remote 0xe375a8>,
add_control_binding=<function at remote 0xe3b840>, lock=<property at remote
0xe2a418>, replace=<staticmethod at remote 0xe37678>, do_deep_notify=<---Type
<return> to continue, or q <return> to quit---
NativeVFunc(_info=<gi.VFuncInfo at remote 0xe3cf60>) at remote 0xe3e7d0>,
suggest_next_sync=<function at remote 0xe3f4f8>, set_parent=<function at remote
0xe3f450>, set_control_binding_disabled=<function at remote 0xe3f1b0>,
last_sync=<property at remote 0xe3a170>, __info__=<ObjectInfo at remote
0xe30c90>, control_bindings=<property at remote 0xe32c10>,
has_active_control_bindings=<function at remote 0xe3bed0>, __gsignals__={},
check_uniqueness=<staticmethod at remote 0xe37...(truncated),
flags=0x7fffffffe1e0, arena=0xaf5810)
at ../Python/pythonrun.c:1365
#14 0x00000000005567e2 in PyRun_FileExFlags (fp=0xb3c0f0,
filename=0x7fffffffe765 "/tmp/cr.py", start=257,
globals=
{'Gst': <DynamicModule(_overrides_module=None, _namespace='Gst',
_introspection_module=<IntrospectionModule(caps_from_string=<function at remote
0xe3f990>, _namespace='Gst', PadPresence=<type at remote 0xf7c340>,
PadDirection=<type at remote 0xf7b980>, Object=<GObjectMeta(unparent=<function
at remote 0xe3f648>, __module__='gi.repository.Gst',
default_deep_notify=<staticmethod at remote 0xe375a8>,
add_control_binding=<function at remote 0xe3b840>, lock=<property at remote
0xe2a418>, replace=<staticmethod at remote 0xe37678>,
do_deep_notify=<NativeVFunc(_info=<gi.VFuncInfo at remote 0xe3cf60>) at remote
0xe3e7d0>, suggest_next_sync=<function at remote 0xe3f4f8>,
set_parent=<function at remote 0xe3f450>,
set_control_binding_disabled=<function at remote 0xe3f1b0>, last_sync=<property
at remote 0xe3a170>, __info__=<ObjectInfo at remote 0xe30c90>,
control_bindings=<property at remote 0xe32c10>,
has_active_control_bindings=<function at remote 0xe3bed0>, __gsignals__={},
check_uniqueness=<staticmethod at remote 0xe37...(truncated), locals=
{'Gst': <DynamicModule(_overrides_module=None, _namespace='Gst',
_introspection_module=<IntrospectionModule(caps_from_string=<function at remote
0xe3f990>, _namespace='Gst', PadPresence=<type at remote 0xf7c340>,
PadDirection=<type at remote 0xf7b980>, Object=<GObjectMeta(unparent=<function
at remote 0xe3f648>, __module__='gi.repository.Gst',
default_deep_notify=<staticmethod at remote 0xe375a8>,
add_control_binding=<function at remote 0xe3b840>, lock=<property at remote
0xe2a418>, replace=<staticmethod at remote 0xe37678>,
do_deep_notify=<NativeVFunc(_info=<gi.VFuncInfo at remote 0xe3cf60>) at remote
0xe3e7d0>, suggest_next_sync=<function at remote 0xe3f4f8>,
set_parent=<function at remote 0xe3f450>,
set_control_binding_disabled=<function at remote 0xe3f1b0>, last_sync=<property
at remote 0xe3a170>, __info__=<ObjectInfo at remote 0xe30c90>,
control_bindings=<property at remote 0xe32c10>,
has_active_control_bindings=<function at remote 0xe3bed0>, __gsignals__={},
check_uniqueness=<staticmethod at remote 0xe37...(truncated), closeit=1,
flags=0x7fffffffe1e0)
at ../Python/pythonrun.c:1351
#15 0x0000000000555002 in PyRun_SimpleFileExFlags (fp=0xb3c0f0,
filename=0x7fffffffe765 "/tmp/cr.py",
closeit=1, flags=0x7fffffffe1e0) at ../Python/pythonrun.c:943
#16 0x00000000005546b5 in PyRun_AnyFileExFlags (fp=0xb3c0f0,
filename=0x7fffffffe765 "/tmp/cr.py",
---Type <return> to continue, or q <return> to quit---
closeit=1, flags=0x7fffffffe1e0) at ../Python/pythonrun.c:747
#17 0x0000000000570290 in Py_Main (argc=2, argv=0x7fffffffe3f8) at
../Modules/main.c:639
#18 0x00000000004171fc in main (argc=2, argv=0x7fffffffe3f8) at
../Modules/python.c:23
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list