bugGNU TeXmacs - Bugs: bug #49655, recent changes in Qt plugin cause...


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

bug #49655: recent changes in Qt plugin cause "free() invalid pointer" crash in ubuntu 16.04

Submitted by:  Philippe Joyez <pjoyez>
Submitted on:  Sun 20 Nov 2016 01:21:24 PM UTC  
Category:  Qt port Priority:  7 - High
Item Group:  Error Status:  Confirmed
Privacy:  Public Assigned to:  Massimiliano Gubinelli <mgubi>
Originator Name:  Open/Closed:  Open
Release:  Release:  None
Fixed Release:  None Fixed Release: 

( Jump to the original submission)

Wed 07 Aug 2019 05:38:52 PM UTC, comment #7: 

Reopening because rev 11157 did not fix this, at least not in all distributions  (unlike I though earlier).

Interestingly the AppImage I make (https://build.opensuse.org/package/binaries/home:slowphil:texmacs-devel/texmacs/AppImage) is immune from the bug (and it uses Qt 4.8.7).

Philippe Joyez <pjoyez>
Project Member
Tue 21 Aug 2018 10:55:50 PM UTC, comment #6: 

This seems to have been fixed by rev 11157. Closing.

Philippe Joyez <pjoyez>
Project Member
Tue 06 Feb 2018 08:49:21 AM UTC, comment #5: 

I'm trying to reproduce this bug but on my mac (with current svn and qt 4.8.7) it seems I cannot trigger the crash. Can somebody confirm that the crash is still present?

Massimiliano Gubinelli <mgubi>
Project AdministratorIn charge of this item.
Fri 03 Nov 2017 10:20:43 PM UTC, comment #4: 

the previous "fix" is not working in ubuntu 17.10; the crash still occurs...

Philippe Joyez <pjoyez>
Project Member
Fri 03 Nov 2017 11:15:14 AM UTC, comment #3: 

Until now I was avoiding the bug for myself by reverting most changes Max had made after 10544...

However my reverting patch came into conflict with r 10874 and I then realized accidentally that with the current svn (r10881) if I configure with --enable-debug the bug is not occurring anymore in ubuntu 16.04 (previously I could get a bt, see initial report) !

Hence, the bug seems to be somehow related to the optimizations performed by the compiler: with -O0 or -Og (default is -O3), the bug does not occur... Weird.

Philippe Joyez <pjoyez>
Project Member
Fri 03 Nov 2017 10:56:13 AM UTC, comment #2: 

here are two file to reproduce the issue (still occurring and also in ubuntu 17.10)

1- place the content of "place-in-my-init-texmacs.scm" in your my-init-texmacs.scm.

2- Start texmacs.On the treminal it should display "starting server".

3-  run the python which will connect to texmacs. This will open a new texmacs window with a third toolbar with buttons "done" and "cancel".

4- Click on any of these buttons => crash when calling safely-kill-window in equ-edit-end

This could probably be simplified further...

(file #42323, file #42324)

Philippe Joyez <pjoyez>
Project Member
Thu 22 Jun 2017 09:14:19 PM UTC, comment #1: 


Joris van der Hoeven <vdhoeven>
Project Administrator
Sun 20 Nov 2016 01:21:24 PM UTC, original submission:  

I have recently set up a new machine with ubuntu 16.04 and found that one of my scheme scripts that automatically open and close an extra window (and which works perfectly in ubuntu 14.04, debian, and windows) would systematically crash when closing the window, throwing a  "free() invalid pointer" and  SIGABRT.

One possible difference between the setups is that in 14.04 it's Qt4.8.5 while in 16.04 it's Qt4.8.7.

Following this idea I found that going back to svn versions 10544 or earlier, the problem does not occur anymore in the newer os, and indeed the changes made in 10545 regarded the qt plugin.

I attach the gdb output.

Philippe Joyez <pjoyez>
Project Member


Attached Files
file #42323:  place-in-my-init-texmacs.scm added by pjoyez (3KiB - text/x-scheme)
file #42324:  simple_texmacs_connect.py added by pjoyez (3KiB - text/x-python)
file #39029:  gdb_output added by pjoyez (25KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mgubi (Updated the item)
  • -email is unavailable- added by vdhoeven (Posted a comment)
  • -email is unavailable- added by pjoyez (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 14 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-10-19 vdhoeven Priority5 - Normal => 7 - High
        StatusNone => Confirmed
    2019-08-07 pjoyez StatusFixed => None
        Open/ClosedClosed => Open
    2018-08-21 pjoyez StatusNone => Fixed
        Open/ClosedOpen => Closed
    2018-02-06 mgubi Originator NameJoyez =>
    2018-02-06 mgubi Priority9 - Immediate => 5 - Normal
        Originator Name => Joyez
    2018-02-05 mgubi Priority5 - Normal => 9 - Immediate
    2017-11-03 pjoyez Attached File- => Added place-in-my-init-texmacs.scm, #42323
        Attached File- => Added simple_texmacs_connect.py, #42324
    2017-06-22 vdhoeven Assigned toNone => mgubi
    2016-11-20 pjoyez Attached File- => Added gdb_output, #39029

    Back to the top

    Powered by Savane 3.5