Sat 19 Nov 2016 02:25:29 PM UTC, original submission:
I found by chance a reproducible way to have texmacs 1.99.5 segfaulting on linux and windows.
the sequence that lead to segfault is:
developer menu> (re)build autocompletion index
developer menu> open symbol browser
select item "safely-kill-window" in the list, and click the "see documentation" button : texmacs crashes
Given the name of that function and the fact that other items (at least most of them) do not trigger the segfault, this bug looks almost like a joke.
By going back in time I found that the bug appeared at rev 10067, but I really don't understand why.
I reproduced this on several linux distros and including with the statically built version available on the website and also on a windows build I made.
I've tried gdb, but don't know how to get useful information out of it to fix the problem.
console output of the problem:
-----------------------------
Texmacs] Populating autocompletions tree... 7712 symbols in 709 msec
Throwing segmentation fault
-------------------------------------------------
Error message:
segmentation fault
System information:
TeXmacs version : 1.99.5
Built by : pj
Building date : Thu Oct 20 21:25:01 CEST 2016
Operating system : linux-gnu
Vendor : pc
Processor : x86_64
Crash date : samedi 19 novembre 2016, 14:46:33 (UTC+0100)
Editor status:
Root path : [ 1 ]
Current path : [ 1, 0, 0, 0 ]
Shifted path : [ 1, 0, 0, 0 ]
Physical selection : [ 1, 0, 0, 0 ] -- [ 1, 0, 0, 0 ]
Backtrace of C++ stack:
texmacs.bin() [0xcdfc40]
texmacs.bin() [0x52b624]
/lib/x86_64-linux-gnu/libc.so.6 : () + 0x36cb0
texmacs.bin() [0xcc5f90]
-------------------------------------------------
terminate called after throwing an instance of 'string'
Aborted (core dumped)
|