[Commits] [SCM] claws branch, gtk3, updated. 3.99.0-53-g1ea8493c4

mones at claws-mail.org mones at claws-mail.org
Sun Mar 14 17:50:18 CET 2021


The branch, gtk3 has been updated
       via  1ea8493c4f6d3d266911b41b6878056a79097d86 (commit)
      from  89a4a73df88449bb541e61320364f664a708cebc (commit)

Summary of changes:
 src/plugins/python/clawsmailmodule.c | 4 ++++
 1 file changed, 4 insertions(+)


- Log -----------------------------------------------------------------
commit 1ea8493c4f6d3d266911b41b6878056a79097d86
Author: Ricardo Mones <ricardo at mones.org>
Date:   Sun Mar 14 17:49:44 2021 +0100

    Initialize PyGObject to prevent segfault
    
    Problem backtrace was:
     Thread 1 "claws-mail" received signal SIGSEGV, Segmentation fault.
     0x00007fffed276732 in get_gobj_from_address (addr=<optimized out>) at clawsmailmodule.c:64
     64        return pygobject_new(obj);
     (gdb) bt full
     #0  0x00007fffed276732 in get_gobj_from_address (addr=<optimized out>) at clawsmailmodule.c:64
            obj = 0xa667a0
     #1  0x00007fffecfb9c56 in _PyMethodDef_RawFastCallKeywords () from /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0
     No symbol table info available.
     #2  0x00007fffecfbaa05 in _PyCFunction_FastCallKeywords () from /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0
     No symbol table info available.
     #3  0x00007fffecdbbcb0 in _PyEval_EvalFrameDefault () from /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0
     No symbol table info available.
     #4  0x00007fffecdbe4d3 in ?? () from /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0
     No symbol table info available.
     #5  0x00007fffecdb9b3c in _PyEval_EvalFrameDefault () from /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0
     No symbol table info available.
     #6  0x00007fffecee31e6 in _PyEval_EvalCodeWithName () from /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0
     No symbol table info available.
     #7  0x00007fffecee346e in PyEval_EvalCodeEx () from /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0
     No symbol table info available.
     #8  0x00007fffecee423b in PyEval_EvalCode () from /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0
     No symbol table info available.
     #9  0x00007fffeceb1e52 in PyRun_FileExFlags () from /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0
     No symbol table info available.
     #10 0x00007fffeceb325d in PyRun_SimpleFileExFlags () from /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0
     No symbol table info available.
     #11 0x00007fffed2794c5 in run_script_file (filename=0x8c48d0 "/home/mones/.claws-mail/python-scripts/auto/startup", compose=0x0)
         at python_plugin.c:189
             fp = 0x128db30

diff --git a/src/plugins/python/clawsmailmodule.c b/src/plugins/python/clawsmailmodule.c
index 581b73a3b..55c59012e 100644
--- a/src/plugins/python/clawsmailmodule.c
+++ b/src/plugins/python/clawsmailmodule.c
@@ -947,6 +947,10 @@ PyMODINIT_FUNC initclawsmail(void)
   /* initialize misc things */
   if(ok)
     add_miscstuff(cm_module);
+
+  /* initialize pygobject */
+  pygobject_init(-1, -1, -1);
+
   return cm_module;
 }
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list