Texmacs crashes with segfault on `\ldots,` in tabular environment

Hi,

I’m new to using Texmacs – love it, it’s helped me out of a pit of burnout and has reinspired me to write again – and I’m experiencing a bug that crashes the entire editor (which, after combing the forums, I gather just happens sometimes…). I can work around it for now, but I thought I would let you all know in case it’s an unknown bug.

The crash happens when I enter a tabular environment inside an unnumbered equation and then type \ldots followed by a comma ,. In Tex:
\[ \begin{tabular} \ldots, \end{tabular} \]

If it helps, the exact error it throws is (on KDE, with the Ubuntu 2.1.1 build of Texmacs):

Error message:
  segmentation fault

System information:
  TeXmacs version  : 2.1.1
  Built by         : abuild
  Building date    : Mon Dec 13 09:19:42 UTC 2021
  Operating system : linux-gnu
  Vendor           : pc
  Processor        : @CONFIG_HOST_CPU@
  Crash date       : Thu 18 Aug 2022 11:14:08 AM EDT

Editor status:
  Root path          : [ 0 ]
  Current path       : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 8 ]
  Shifted path       : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 8 ]
  Physical selection : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 7 ] -- [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 7 ]

Backtrace of C++ stack:
  texmacs.bin : () + 0xca0836
  texmacs.bin : () + 0x2a8cdb
  /usr/lib/x86_64-linux-gnu/libc.so.6 : () + 0x43090
  texmacs.bin : () + 0x40a695
  texmacs.bin : () + 0x40ab05
  texmacs.bin : () + 0x40d7e9
  texmacs.bin : () + 0x40d039
  texmacs.bin : () + 0x3569a0
  texmacs.bin : () + 0xc55aee
  texmacs.bin : () + 0xc56457
  texmacs.bin : () + 0xc56a03
  texmacs.bin : () + 0xc58b49
  texmacs.bin : () + 0x8c9508
  texmacs.bin : () + 0x8cf3b9
  texmacs.bin : () + 0xd70851
  texmacs.bin : () + 0x2eabed
  texmacs.bin : () + 0x2ed65a
  texmacs.bin : () + 0x327403
  texmacs.bin : () + 0x2ed65a
  texmacs.bin : () + 0x2f21b2
  texmacs.bin : () + 0x2ed65a
  texmacs.bin : () + 0x327403
  texmacs.bin : () + 0x2ed65a
  texmacs.bin : () + 0x303665
  texmacs.bin : () + 0x2ed65a
  texmacs.bin : () + 0x3171b5
  texmacs.bin : () + 0x2ed65a
  texmacs.bin : () + 0x2f21b2
  texmacs.bin : () + 0x2ed65a
  texmacs.bin : () + 0x343e14
  texmacs.bin : () + 0x2ed65a
  texmacs.bin : () + 0x3171b5
  texmacs.bin : () + 0x2ed65a
  texmacs.bin : () + 0x34b53f
  texmacs.bin : () + 0x2ed65a
  texmacs.bin : () + 0x303665
  texmacs.bin : () + 0x2ed65a
  texmacs.bin : () + 0x3171b5
  texmacs.bin : () + 0x2ed65a
  texmacs.bin : () + 0xd727cf
  texmacs.bin : () + 0xd73294
  texmacs.bin : () + 0xd7463d
  texmacs.bin : () + 0x5a1f02
  texmacs.bin : () + 0x5a5785
  texmacs.bin : () + 0x5046b4
  texmacs.bin : () + 0xcb1171
  texmacs.bin : () + 0xb5122f
  texmacs.bin : () + 0x1a4e0f
  texmacs.bin : () + 0x9a82bd
  /usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 0x726
  /usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QObject::event(QEvent*) + 0x100
  /usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QApplicationPrivate::notify_helper(QObject*, QEvent*) + 0x81
  /usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QApplication::notify(QObject*, QEvent*) + 0x1f4
  texmacs.bin : () + 0x9a7c1a
  /usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QCoreApplication::notifyInternal(QObject*, QEvent*) + 0x6f
  /usr/lib/x86_64-linux-gnu/libQtCore.so.4 : () + 0x1d1742
  /usr/lib/x86_64-linux-gnu/libQtCore.so.4 : () + 0x1ce714
  /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 : g_main_context_dispatch() + 0x27d
  /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 : () + 0x52400
  /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 : g_main_context_iteration() + 0x33
  /usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 0x76
  /usr/lib/x86_64-linux-gnu/libQtGui.so.4 : () + 0x2eba3b
  /usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 0x43
  /usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 0x156
  /usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QCoreApplication::exec() + 0x9e
  texmacs.bin : () + 0x119270
  /lib/libguile.so.17 : () + 0x6567f
  /lib/libguile.so.17 : () + 0x3db3a
  /lib/libguile.so.17 : scm_c_catch() + 0x138
  /lib/libguile.so.17 : scm_i_with_continuation_barrier() + 0xa3
  /lib/libguile.so.17 : scm_c_with_continuation_barrier() + 0x30
  /lib/libguile.so.17 : scm_i_with_guile_and_parent() + 0x29
  /lib/libguile.so.17 : scm_boot_guile() + 0x25
  texmacs.bin : () + 0xf29ba
  /usr/lib/x86_64-linux-gnu/libc.so.6 : __libc_start_main() + 0xf3
  texmacs.bin : () + 0x117dea

-------------------------------------------------
terminate called after throwing an instance of 'string'
Aborted

Thanks,
Caleb

Hi @cckisby and welcome to the forum.
I looked for the word ldots within the TeXmacs bug tracker at https://savannah.gnu.org/bugs/?group=texmacs and I did not find the bug you described (which I reproduced) so I think it would be nice if you could record it in the bug tracker.

2 Likes

Alright, will do!

And for anybody dealing with this issue in the future, one workaround is to type , followed by ,. Texmacs will apply the macro that makes it appear like ,\ldots,.

1 Like

Thanks for filing a report!

For reference: https://savannah.gnu.org/bugs/index.php?62915

1 Like