reading the guide you provided it seems like that bt may not be useful so I
ran it again with  MALLOC_CHECK_ = 2

➜  ~ MALLOC_CHECK_=2 gdb python3
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python3...Reading symbols from
/usr/lib/debug/.build-id/db/fc2e1a3c58b6d241b3f9af7b2fb3a24b81b90e.debug...done.
done.
(gdb) run python3 /usr/share/retext/retext.py
Starting program: /usr/bin/python3 python3 /usr/share/retext/retext.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
/usr/bin/python3: can't open file 'python3': [Errno 2] No such file or
directory
[Inferior 1 (process 18735) exited with code 02]
(gdb) run /usr/share/retext/retext.py
Starting program: /usr/bin/python3 /usr/share/retext/retext.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe2d66700 (LWP 18743)]
Using configuration file: /home/lotso/.config/ReText project/ReText.conf
[New Thread 0x7fffdfbdd700 (LWP 18744)]

Thread 1 "python3" received signal SIGSEGV, Segmentation fault.
mem2chunk_check (mem=mem@entry=0x5615d9a0, magic_p=magic_p@entry=0x0) at
hooks.c:185
185     hooks.c: No such file or directory.
(gdb) bt
#0  mem2chunk_check (mem=mem@entry=0x5615d9a0, magic_p=magic_p@entry=0x0)
at hooks.c:185
#1  0x00007ffff6d48bd6 in free_check (mem=0x5615d9a0, caller=<optimized
out>) at hooks.c:309
#2  0x00007fffeeea4aa8 in ffi_call_unix64 () from
/usr/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so
#3  0x00007fffeeea450a in ffi_call () from /usr/lib/python3.5/lib-dynload/_
ctypes.cpython-35m-x86_64-linux-gnu.so
#4  0x00007fffeee9dcb4 in _call_function_pointer (argcount=1,
resmem=0x7fffffffcb30, restype=<optimized out>, atypes=0x7fffffffcaf0,
avalues=0x7fffffffcb10, pProc=0x7ffff6d4a330 <__GI___libc_free>,
flags=4353) at ./Modules/_ctypes/callproc.c:813
#5  _ctypes_callproc () at ./Modules/_ctypes/callproc.c:1151
#6  0x00007fffeee9c461 in PyCFuncPtr_call.lto_priv.76 () at
./Modules/_ctypes/_ctypes.c:3876
#7  0x000055555575d647 in PyObject_Call () at ../Objects/abstract.c:2166
#8  0x00005555556d4ee1 in do_call (nk=<optimized out>, na=1,
pp_stack=0x7fffffffce00, func=<optimized out>) at ../Python/ceval.c:4951
#9  call_function (oparg=<optimized out>, pp_stack=0x7fffffffce00) at
../Python/ceval.c:4747
#10 PyEval_EvalFrameEx () at ../Python/ceval.c:3251
#11 0x00005555556d9286 in _PyEval_EvalCodeWithName () at
../Python/ceval.c:4033
#12 0x00005555556d50a9 in fast_function (nk=<optimized out>, na=<optimized
out>, n=<optimized out>, pp_stack=0x7fffffffd010, func=<optimized out>) at
../Python/ceval.c:4828
#13 call_function (oparg=<optimized out>, pp_stack=0x7fffffffd010) at
../Python/ceval.c:4745
#14 PyEval_EvalFrameEx () at ../Python/ceval.c:3251
#15 0x00005555556d9286 in _PyEval_EvalCodeWithName () at
../Python/ceval.c:4033
#16 0x00005555556d50a9 in fast_function (nk=<optimized out>, na=<optimized
out>, n=<optimized out>, pp_stack=0x7fffffffd220, func=<optimized out>) at
../Python/ceval.c:4828
#17 call_function (oparg=<optimized out>, pp_stack=0x7fffffffd220) at
../Python/ceval.c:4745
#18 PyEval_EvalFrameEx () at ../Python/ceval.c:3251
#19 0x00005555556d493f in fast_function (nk=<optimized out>, na=<optimized
out>, n=<optimized out>, pp_stack=0x7fffffffd350, func=<optimized out>) at
../Python/ceval.c:4818
#20 call_function (oparg=<optimized out>, pp_stack=0x7fffffffd350) at
../Python/ceval.c:4745
#21 PyEval_EvalFrameEx () at ../Python/ceval.c:3251
#22 0x00005555556d493f in fast_function (nk=<optimized out>, na=<optimized
out>, n=<optimized out>, pp_stack=0x7fffffffd480, func=<optimized out>) at
../Python/ceval.c:4818
#23 call_function (oparg=<optimized out>, pp_stack=0x7fffffffd480) at
../Python/ceval.c:4745
#24 PyEval_EvalFrameEx () at ../Python/ceval.c:3251
#25 0x00005555556da817 in _PyEval_EvalCodeWithName (qualname=0x0,
name=<optimized out>, closure=0x0, kwdefs=0x0, defcount=1,
defs=0x7fffedcdeca0, kwcount=0, kws=<optimized out>, argcount=<optimized
out>, args=<optimized out>, locals=<optimized out>,
    globals=<optimized out>, _co=<optimized out>) at ../Python/ceval.c:4033
#26 PyEval_EvalCodeEx () at ../Python/ceval.c:4054
#27 0x0000555555716648 in function_call.lto_priv () at
../Objects/funcobject.c:627
#28 0x000055555575d647 in PyObject_Call () at ../Objects/abstract.c:2166
#29 0x000055555567d94e in method_call.lto_priv () at
../Objects/classobject.c:330
#30 0x000055555575d647 in PyObject_Call () at ../Objects/abstract.c:2166
#31 0x000055555571daa9 in slot_tp_init () at ../Objects/typeobject.c:6287
#32 0x00005555557255c4 in type_call.lto_priv () at
../Objects/typeobject.c:905
#33 0x000055555575d647 in PyObject_Call () at ../Objects/abstract.c:2166
#34 0x00005555556d4ee1 in do_call (nk=<optimized out>, na=0,
pp_stack=0x7fffffffd850, func=<optimized out>) at ../Python/ceval.c:4951
#35 call_function (oparg=<optimized out>, pp_stack=0x7fffffffd850) at
../Python/ceval.c:4747
#36 PyEval_EvalFrameEx () at ../Python/ceval.c:3251
#37 0x00005555556d97bf in _PyEval_EvalCodeWithName () at
../Python/ceval.c:4033
#38 0x00005555556d54c9 in fast_function (nk=<optimized out>, na=<optimized
out>, n=<optimized out>, pp_stack=0x7fffffffda60, func=<optimized out>) at
../Python/ceval.c:4828
#39 call_function (oparg=<optimized out>, pp_stack=0x7fffffffda60) at
../Python/ceval.c:4745
#40 PyEval_EvalFrameEx () at ../Python/ceval.c:3251
#41 0x00005555556d9286 in _PyEval_EvalCodeWithName () at
../Python/ceval.c:4033
#42 0x00005555556d9f9f in PyEval_EvalCodeEx () at ../Python/ceval.c:4054
#43 PyEval_EvalCode (co=<optimized out>, globals=<optimized out>,
locals=<optimized out>) at ../Python/ceval.c:777
#44 0x00005555557a78f2 in run_mod () at ../Python/pythonrun.c:976
#45 0x00005555557a9e1d in PyRun_FileExFlags () at ../Python/pythonrun.c:929
#46 0x00005555557aa5be in PyRun_SimpleFileExFlags () at
../Python/pythonrun.c:396
#47 0x00005555557d84d7 in run_file (p_cf=0x7fffffffdcd0,
filename=0x555555c0d330 L"/usr/share/retext/retext.py", fp=0x555555d122e0)
at ../Modules/main.c:318
#48 Py_Main () at ../Modules/main.c:768
#49 0x0000555555668c01 in main () at ../Programs/python.c:65
#50 0x00007ffff6cef2b1 in __libc_start_main (main=0x555555668b20 <main>,
argc=2, argv=0x7fffffffdee8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffded8) at
../csu/libc-start.c:291
#51 0x00005555557721ba in _start ()
(gdb) quit
A debugging session is active.

        Inferior 1 [process 18740] will be killed.

Quit anyway? (y or n) y


On Tue, May 30, 2017 at 2:38 PM, Benoit Barthelet <
benoit.barthe...@gmail.com> wrote:

> Effectively that wasn't very helpful sorry.
>
> TIL how to add dbgsym packages !
>
> here is the backtrace, I hope it helps. I have loads of third party python
> stuff, as for Qt modules I don't think so.
>
> I also have to add I don't have the /home/lotso/.config/ReText
> project/ReText.conf in question, should I have created it ?
>
>
> ➜  ~ gdb python3
> GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
> Copyright (C) 2016 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.
> html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from python3...Reading symbols from
> /usr/lib/debug/.build-id/db/fc2e1a3c58b6d241b3f9af7b2fb3a2
> 4b81b90e.debug...done.
> done.
> (gdb) run /usr/share/retext/retext.py
> Starting program: /usr/bin/python3 /usr/share/retext/retext.py
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> [New Thread 0x7fffe2d66700 (LWP 18065)]
> Using configuration file: /home/lotso/.config/ReText project/ReText.conf
> [New Thread 0x7fffe19f6700 (LWP 18066)]
>
> Thread 1 "python3" received signal SIGSEGV, Segmentation fault.
> __GI___libc_free (mem=0x56182140) at malloc.c:2963
> 2963    malloc.c: No such file or directory.
> (gdb) bt
> #0  __GI___libc_free (mem=0x56182140) at malloc.c:2963
> #1  0x00007fffeeea4aa8 in ffi_call_unix64 () from /usr/lib/python3.5/lib-
> dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so
> #2  0x00007fffeeea450a in ffi_call () from /usr/lib/python3.5/lib-
> dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so
> #3  0x00007fffeee9dcb4 in _call_function_pointer (argcount=1,
> resmem=0x7fffffffcb40, restype=<optimized out>, atypes=0x7fffffffcb00,
> avalues=0x7fffffffcb20,
>     pProc=0x7ffff6d4a330 <__GI___libc_free>, flags=4353) at
> ./Modules/_ctypes/callproc.c:813
> #4  _ctypes_callproc () at ./Modules/_ctypes/callproc.c:1151
> #5  0x00007fffeee9c461 in PyCFuncPtr_call.lto_priv.76 () at
> ./Modules/_ctypes/_ctypes.c:3876
> #6  0x000055555575d647 in PyObject_Call () at ../Objects/abstract.c:2166
> #7  0x00005555556d4ee1 in do_call (nk=<optimized out>, na=1,
> pp_stack=0x7fffffffce10, func=<optimized out>) at ../Python/ceval.c:4951
> #8  call_function (oparg=<optimized out>, pp_stack=0x7fffffffce10) at
> ../Python/ceval.c:4747
> #9  PyEval_EvalFrameEx () at ../Python/ceval.c:3251
> #10 0x00005555556d9286 in _PyEval_EvalCodeWithName () at
> ../Python/ceval.c:4033
> #11 0x00005555556d50a9 in fast_function (nk=<optimized out>, na=<optimized
> out>, n=<optimized out>, pp_stack=0x7fffffffd020, func=<optimized out>) at
> ../Python/ceval.c:4828
> #12 call_function (oparg=<optimized out>, pp_stack=0x7fffffffd020) at
> ../Python/ceval.c:4745
> #13 PyEval_EvalFrameEx () at ../Python/ceval.c:3251
> #14 0x00005555556d9286 in _PyEval_EvalCodeWithName () at
> ../Python/ceval.c:4033
> #15 0x00005555556d50a9 in fast_function (nk=<optimized out>, na=<optimized
> out>, n=<optimized out>, pp_stack=0x7fffffffd230, func=<optimized out>) at
> ../Python/ceval.c:4828
> #16 call_function (oparg=<optimized out>, pp_stack=0x7fffffffd230) at
> ../Python/ceval.c:4745
> #17 PyEval_EvalFrameEx () at ../Python/ceval.c:3251
> #18 0x00005555556d493f in fast_function (nk=<optimized out>, na=<optimized
> out>, n=<optimized out>, pp_stack=0x7fffffffd360, func=<optimized out>) at
> ../Python/ceval.c:4818
> #19 call_function (oparg=<optimized out>, pp_stack=0x7fffffffd360) at
> ../Python/ceval.c:4745
> #20 PyEval_EvalFrameEx () at ../Python/ceval.c:3251
> #21 0x00005555556d493f in fast_function (nk=<optimized out>, na=<optimized
> out>, n=<optimized out>, pp_stack=0x7fffffffd490, func=<optimized out>) at
> ../Python/ceval.c:4818
> #22 call_function (oparg=<optimized out>, pp_stack=0x7fffffffd490) at
> ../Python/ceval.c:4745
> #23 PyEval_EvalFrameEx () at ../Python/ceval.c:3251
> #24 0x00005555556da817 in _PyEval_EvalCodeWithName (qualname=0x0,
> name=<optimized out>, closure=0x0, kwdefs=0x0, defcount=1,
> defs=0x7fffedcdeca0, kwcount=0,
>     kws=<optimized out>, argcount=<optimized out>, args=<optimized out>,
> locals=<optimized out>, globals=<optimized out>, _co=<optimized out>) at
> ../Python/ceval.c:4033
> #25 PyEval_EvalCodeEx () at ../Python/ceval.c:4054
> #26 0x0000555555716648 in function_call.lto_priv () at
> ../Objects/funcobject.c:627
> #27 0x000055555575d647 in PyObject_Call () at ../Objects/abstract.c:2166
> #28 0x000055555567d94e in method_call.lto_priv () at
> ../Objects/classobject.c:330
> #29 0x000055555575d647 in PyObject_Call () at ../Objects/abstract.c:2166
> #30 0x000055555571daa9 in slot_tp_init () at ../Objects/typeobject.c:6287
> #31 0x00005555557255c4 in type_call.lto_priv () at
> ../Objects/typeobject.c:905
> #32 0x000055555575d647 in PyObject_Call () at ../Objects/abstract.c:2166
> #33 0x00005555556d4ee1 in do_call (nk=<optimized out>, na=0,
> pp_stack=0x7fffffffd860, func=<optimized out>) at ../Python/ceval.c:4951
> #34 call_function (oparg=<optimized out>, pp_stack=0x7fffffffd860) at
> ../Python/ceval.c:4747
> #35 PyEval_EvalFrameEx () at ../Python/ceval.c:3251
> #36 0x00005555556d97bf in _PyEval_EvalCodeWithName () at
> ../Python/ceval.c:4033
> #37 0x00005555556d54c9 in fast_function (nk=<optimized out>, na=<optimized
> out>, n=<optimized out>, pp_stack=0x7fffffffda70, func=<optimized out>) at
> ../Python/ceval.c:4828
> #38 call_function (oparg=<optimized out>, pp_stack=0x7fffffffda70) at
> ../Python/ceval.c:4745
> ---Type <return> to continue, or q <return> to quit---
> #39 PyEval_EvalFrameEx () at ../Python/ceval.c:3251
> #40 0x00005555556d9286 in _PyEval_EvalCodeWithName () at
> ../Python/ceval.c:4033
> #41 0x00005555556d9f9f in PyEval_EvalCodeEx () at ../Python/ceval.c:4054
> #42 PyEval_EvalCode (co=<optimized out>, globals=<optimized out>,
> locals=<optimized out>) at ../Python/ceval.c:777
> #43 0x00005555557a78f2 in run_mod () at ../Python/pythonrun.c:976
> #44 0x00005555557a9e1d in PyRun_FileExFlags () at ../Python/pythonrun.c:929
> #45 0x00005555557aa5be in PyRun_SimpleFileExFlags () at
> ../Python/pythonrun.c:396
> #46 0x00005555557d84d7 in run_file (p_cf=0x7fffffffdce0,
> filename=0x555555c0d280 L"/usr/share/retext/retext.py",
> fp=0x555555d14360) at ../Modules/main.c:318
> #47 Py_Main () at ../Modules/main.c:768
> #48 0x0000555555668c01 in main () at ../Programs/python.c:65
> #49 0x00007ffff6cef2b1 in __libc_start_main (main=0x555555668b20 <main>,
> argc=2, argv=0x7fffffffdef8, init=<optimized out>, fini=<optimized out>,
> rtld_fini=<optimized out>,
>     stack_end=0x7fffffffdee8) at ../csu/libc-start.c:291
> #50 0x00005555557721ba in _start ()
> (gdb) quit
> A debugging session is active.
>
>         Inferior 1 [process 18058] will be killed.
>
> Quit anyway? (y or n) y
> ➜  ~
>
>
> On Tue, May 30, 2017 at 1:46 PM, Dmitry Shachnev <mity...@debian.org>
> wrote:
>
>> Control: tags -1 moreinfo
>>
>> Hi Benoit!
>>
>> On Mon, May 29, 2017 at 05:36:22PM +0200, benoit barthelet wrote:
>> >     ➜  ~ retext
>> >     Using configuration file: /home/lotso/.config/ReText
>> project/ReText.conf
>> >     [1]    18072 segmentation fault  retext
>>
>> Unfortunately this is not useful for determining the crash reason.
>>
>> Please install the debug packages libqt5core5a-dbgsym, libqt5gui5-dbgsym,
>> libqt5widgets5-dbgsym and python3-pyqt5.dbg, and then obtain the stack
>> trace
>> using the instructions at https://wiki.debian.org/HowToGetABacktrace.
>>
>> Also, please tell whether you have any third-party Python or Qt modules
>> installed: they may cause problems.
>>
>> --
>> Dmitry Shachnev
>>
>
>
>
> --
> benoit barthelet
> http://pgp.mit.edu/pks/lookup?op=get&search=0xF150E01A72F6D2EE
>



-- 
benoit barthelet
http://pgp.mit.edu/pks/lookup?op=get&search=0xF150E01A72F6D2EE

Reply via email to