bugGNU TeXmacs - Bugs: bug #54513, Segfault with...


You are not allowed to post comments on this tracker with your current authentication level.

bug #54513: Segfault with Focus->Preferences menu when using folded inputs/links

Submitted by:  Kyle Andrews <wdkrnls>
Submitted on:  Tue 14 Aug 2018 11:58:36 AM UTC  
Category:  Qt port Priority:  5 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  Release:  None
Fixed Release:  None Fixed Release:  1.99.7

( Jump to the original submission)

Mon 03 Jun 2019 03:52:18 PM UTC, comment #8: 

This bug has been solved in TeXmacs 1.99.9.

Marduk BP <mardukbp>
Thu 30 Aug 2018 11:36:33 AM UTC, comment #7: 

This is not an issue that can be sorted out by a user, since fixing it requires modifying the source code. I provided a way for a user to get around it. I also provided a way for the devs to run TeXmacs in different Linux distros for testing/debugging purposes.

Philippe: TeXmacs is highly unstable despite your experience suggesting the contrary. Downplaying the SEGFAULTS (which happen just by using the GUI) and the contributions of people who actually try to help, will just keep TeXmacs in the dark corner where it lives, instead of being the workhorse of millions of people, where it belongs.

Marduk BP <mardukbp>
Thu 30 Aug 2018 10:34:54 AM UTC, comment #6: 

Kyle, the version of texmacs you got from the Manjaro repo is build with QT5. As far I know, Qt4 is still the recommended version to use. Can you try with a Qt4 build, please?

Marduk: Your comments are not really focused on the problem described (they won't help sorting it out). Please refrain from using this bug tracker as discussion forum, as it dilutes useful information and distracts from the real issues. For broad discussions, consider using the mailing lists instead.

Below I address some misleading statements in comment #3 (in case anyone wonders):

- I use Texmacs natively built on Ubuntu and Debian for my daily work and frankly, it crashes very rarely. I do not think OpenSuse Leap 42.3 is any special.
- the Appimage I make works with plugins just like a regular build would, AFAICT.
- There are indeed known, reproducible ways to crash texmacs documented in this bug tracker and which are related to Qt but IMHO they do not seriously hamper normal usage. Other ways to crash it are when coding inside texmacs (writing scheme code, macros, editing style files...) but these are usual programming issues.

Philippe Joyez <pjoyez>
Project Member
Wed 29 Aug 2018 10:11:15 PM UTC, comment #5: 

I almost forgot. You also have to do the following

nix-env -i glibc-locales

Add this line to your ~/.bashrc:

export LOCALE_ARCHIVE="$(nix-env --installed --no-name --out-path --query glibc-locales)/lib/locale/locale-archive"

Now both TeXmacs 1.99.2 and Maxima should work fine.

As before, here is the permanent link with this information:


Marduk BP <mardukbp>
Wed 29 Aug 2018 09:36:00 PM UTC, comment #4: 

Ok, now I have been able to reproduce this crash even in the hitherto very stable TeXmacs running on OpenSuse 42.3.

Fortunately, there is an easy way out for you. It turns out that TeXmacs 1.99.2 does not crash in this situation and you can install it very easily.

Just install the nix package manager:

sudo pacman-mirrors -f3 && sudo pacman -Syyu

pamac install nix

nix-env -i TeXmacs

Happy TeXmacsing!

Marduk BP <mardukbp>
Wed 29 Aug 2018 05:59:53 PM UTC, comment #3: 

I cannot reproduce this either. To the best of my knowledge, the only Linux in which TeXmacs does not crash is OpenSuse Leap 42.3, which is what I use to run TeXmacs. Philippe uses it to build the TeXmacs AppImage. However, to the best of my knowledge, with the AppImage you cannot use plugins.

I know what you are experiencing. There are many ways to crash TeXmacs. The problem is in the Qt code. With Qt debugging turned on, one can see that the problem is with creating and deleting widgets. Taking a look at the source code reveals that it needs lots of improvement.

I believe this should be a high priority for the core devs. I know TeXmacs is the result of voluntary work by non-professional programmers and I am very grateful for what they have created. But a program that segfaults is very frustrating and is eventually abandoned.

If you need to use plugins, you can run TeXmacs in OpenSuse 42.3 on top of Manjaro, like I do on top of Debian. No virtualization and no root required. See here for the instructions:


If something does not work, let me know. You can be the beta tester that helps me polish that portable solution :)

Marduk BP <mardukbp>
Thu 23 Aug 2018 01:00:19 AM UTC, comment #2: 

I have attached a TeXmacs document that provides instructions for reproducing the crash on Manjaro GNU/Linux. I am using the TeXmacs 1.99.7 from the Manjaro extra software repository.

Kyle Andrews <wdkrnls>
Tue 21 Aug 2018 10:34:49 PM UTC, comment #1: 

I cannot reproduce this. Can you please provide more detailed steps to reproduce the crash? What build are you using and on which distribution?

Philippe Joyez <pjoyez>
Project Member
Tue 14 Aug 2018 11:58:36 AM UTC, original submission:  

I have been able to reproducibly produce a segmentation fault when clicking this menu. I will add the trace as soon as I can.

Kyle Andrews <wdkrnls>


Attached Files
file #44829:  maxima-input-fields-crash.tm added by wdkrnls (999B - text/x-texmacs - this document (hopefully) provides a reproducible example.)
file #44787:  texmacs-segfault-focus-preferences.txt added by wdkrnls (4KiB - text/plain - Here are the attached stack traces printed in bash.)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mardukbp (Posted a comment)
  • -email is unavailable- added by mardukbp (This is important)
  • -email is unavailable- added by pjoyez (Posted a comment)
  • -email is unavailable- added by wdkrnls (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-08-29 mardukbp Carbon-Copy- => Added m.gubinelli@gmail.com
    2018-08-23 wdkrnls Attached File- => Added maxima-input-fields-crash.tm, #44829
    2018-08-15 wdkrnls Attached File- => Added texmacs-segfault-focus-preferences.txt, #44787

    Back to the top

    Powered by Savane 3.5