Feedback on gnome-devel-demos/3.14/gmenu.py.page



Hi guys,


I'd extract a minimal program from the example, and always had a Segmentation fault.
After experimenting a lot, I copied the exact code into geany and got the same
segfault:

$ /bin/sh ./geany_run_script.sh
./geany_run_script.sh: line 5: 16418 Segmentation fault      python "gio_menu_0.py"

Geany removes the script after a run, so I ran the code from a terminal:

$ python gio_menu_0.py
Segmentation fault

Running in gdb:

Program received signal SIGSEGV, Segmentation fault.
gtk_application_impl_set_app_menu (impl=0x0, app_menu=0x7fffe4003cd0 [GMenu]) at gtkapplicationimpl.c:123
123     gtkapplicationimpl.c: No such file or directory.
(gdb) bt

#0  gtk_application_impl_set_app_menu (impl=0x0, app_menu=0x7fffe4003cd0 [GMenu]) at gtkapplicationimpl.c:123
#1  0x00007ffff2f746e6 in gtk_application_set_app_menu (application=0x9488d0 [__main__+MyApplication], 
    app_menu=0x7fffe4003cd0 [GMenu]) at gtkapplication.c:1174
#2  0x00007ffff532bc1c in ffi_call_unix64 () from /usr/lib64/libffi.so.6
#3  0x00007ffff532b6aa in ffi_call () from /usr/lib64/libffi.so.6
#4  0x00007ffff6861f90 in g_callable_info_invoke (info=info entry=0x944ca0, 
    function=0x7ffff2f74630 <gtk_application_set_app_menu>, in_args=in_args entry=0x9581b0, 
    n_in_args=n_in_args entry=2, out_args=out_args entry=0x0, n_out_args=n_out_args entry=0, 
    return_value=return_value entry=0x7fffffffc660, is_method=is_method entry=1, throws=0, 
    error=error entry=0x7fffffffc5a8) at girepository/gicallableinfo.c:703
#5  0x00007ffff68632c7 in g_function_info_invoke (info=info entry=0x944ca0, in_args=0x9581b0, n_in_args=2, 
    out_args=0x0, n_out_args=0, return_value=return_value entry=0x7fffffffc660, error=error 
entry=0x7fffffffc5a8)
    at girepository/gifunctioninfo.c:281
#6  0x00007ffff6ad5f31 in _invoke_function (py_args=<optimized out>, callable_info=0x944ca0, 
state=0x7fffffffc5b0)
    at pygi-invoke.c:619
#7  _wrap_g_callable_info_invoke (self=<optimized out>, py_args=<optimized out>, kwargs=<optimized out>)
    at pygi-invoke.c:1021
#8  0x00007ffff7adb58f in PyEval_EvalFrameEx () from /usr/lib64/libpython2.7.so.1.0
#9  0x00007ffff7adc46d in PyEval_EvalCodeEx () from /usr/lib64/libpython2.7.so.1.0
#10 0x00007ffff7adb955 in PyEval_EvalFrameEx () from /usr/lib64/libpython2.7.so.1.0
#11 0x00007ffff7adc46d in PyEval_EvalCodeEx () from /usr/lib64/libpython2.7.so.1.0
#12 0x00007ffff7a57190 in ?? () from /usr/lib64/libpython2.7.so.1.0
#13 0x00007ffff7a257c3 in PyObject_Call () from /usr/lib64/libpython2.7.so.1.0
#14 0x00007ffff7ad5e07 in PyEval_CallObjectWithKeywords () from /usr/lib64/libpython2.7.so.1.0
#15 0x00007ffff6ada7ed in _pygi_closure_handle (cif=<optimized out>, result=<optimized out>, 
    args=<optimized out>, data=<optimized out>) at pygi-closure.c:356
#16 0x00007ffff532ba2d in ffi_closure_unix64_inner () from /usr/lib64/libffi.so.6
#17 0x00007ffff532bd84 in ffi_closure_unix64 () from /usr/lib64/libffi.so.6
#18 0x00007ffff5a70447 in _g_closure_invoke_va (closure=0x8b0fb0, return_value=0x0, instance=0x9488d0, 
    args=0x7fffffffcff8, n_params=0, param_types=0x0) at gclosure.c:831
#19 0x00007ffff5a88d5f in g_signal_emit_valist (instance=0x9488d0, signal_id=<optimized out>, detail=0, 
    var_args=var_args entry=0x7fffffffcff8) at gsignal.c:3215
#20 0x00007ffff5a899f2 in g_signal_emit (instance=instance entry=0x9488d0, signal_id=<optimized out>, 
    detail=detail entry=0) at gsignal.c:3363
#21 0x00007ffff65898aa in g_application_register (
    application=application entry=0x9488d0 [__main__+MyApplication], cancellable=cancellable entry=0x0, 
    error=error entry=0x7fffffffd140) at gapplication.c:1808
#22 0x00007ffff658a017 in g_application_real_local_command_line (application=0x9488d0 
[__main__+MyApplication], 
    arguments=0x7fffffffd200, exit_status=0x7fffffffd1fc) at gapplication.c:900
#23 0x00007ffff658a2fb in g_application_run (application=0x9488d0 [__main__+MyApplication], argc=1, 
argv=0x947f40)
    at gapplication.c:2084
#24 0x00007ffff532bc1c in ffi_call_unix64 () from /usr/lib64/libffi.so.6
#25 0x00007ffff532b6aa in ffi_call () from /usr/lib64/libffi.so.6
#26 0x00007ffff6861f90 in g_callable_info_invoke (info=info entry=0x8daca0, 
    function=0x7ffff658a1e0 <g_application_run>, in_args=in_args entry=0x921cc0, n_in_args=n_in_args entry=3, 
    out_args=out_args entry=0x0, n_out_args=n_out_args entry=0, return_value=return_value 
entry=0x7fffffffd620, 
    is_method=is_method entry=1, throws=0, error=error entry=0x7fffffffd568) at 
girepository/gicallableinfo.c:703
#27 0x00007ffff68632c7 in g_function_info_invoke (info=info entry=0x8daca0, in_args=0x921cc0, n_in_args=3, 
    out_args=0x0, n_out_args=0, return_value=return_value entry=0x7fffffffd620, error=error 
entry=0x7fffffffd568)
    at girepository/gifunctioninfo.c:281
#28 0x00007ffff6ad5f31 in _invoke_function (py_args=<optimized out>, callable_info=0x8daca0, 
state=0x7fffffffd570)
    at pygi-invoke.c:619
#29 _wrap_g_callable_info_invoke (self=<optimized out>, py_args=<optimized out>, kwargs=<optimized out>)
    at pygi-invoke.c:1021
#30 0x00007ffff7adb58f in PyEval_EvalFrameEx () from /usr/lib64/libpython2.7.so.1.0
#31 0x00007ffff7adc46d in PyEval_EvalCodeEx () from /usr/lib64/libpython2.7.so.1.0
#32 0x00007ffff7adb955 in PyEval_EvalFrameEx () from /usr/lib64/libpython2.7.so.1.0
#33 0x00007ffff7adc46d in PyEval_EvalCodeEx () from /usr/lib64/libpython2.7.so.1.0
#34 0x00007ffff7adc5a2 in PyEval_EvalCode () from /usr/lib64/libpython2.7.so.1.0
#35 0x00007ffff7b07142 in PyRun_FileExFlags () from /usr/lib64/libpython2.7.so.1.0
#36 0x00007ffff7b08689 in PyRun_SimpleFileExFlags () from /usr/lib64/libpython2.7.so.1.0
#37 0x00007ffff7b1e21d in Py_Main () from /usr/lib64/libpython2.7.so.1.0
#38 0x00007ffff6d06ea5 in __libc_start_main () from /lib64/libc.so.6
#39 0x0000000000400721 in _start ()


Python is 2.7.6, glib 2.40, introspection 1.40

Hope this helps

John


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]