bugGNU TeXmacs - Bugs: bug #61628, Certain semantic selections crash...

 
 

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

bug #61628: Certain semantic selections crash the editor (1.99.18 - 2.1, Windows, Linux)

Submitter:  shostory
Submitted:  Mon 06 Dec 2021 05:14:50 PM UTC
 
Category:  Editor Priority:  5 - Normal
Item Group:  Error Status:  Confirmed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  None Release:  2.1
Fixed Release:  None Fixed Release: 
Keywords: 

Wed 10 Aug 2022 05:21:04 PM UTC, comment #4: 

A `while (true)` loop in `packrat_parser_rep::inspect` is never broken.

The `break` statement on line 345 of `src/System/Language/packrat_parser.cpp` is never reached. The value of `next` remains 4.

Jeroen Wouters <jeronim>
Project Member
Wed 10 Aug 2022 04:13:42 PM UTC, comment #3: 

Some debugging show that while the cpu is active, it frequently enters the function `resize` in `src/Kernel/Containers/array.cpp`. The values of the variable `m` in that function seems to keep increasing.

Jeroen Wouters <jeronim>
Project Member
Tue 09 Aug 2022 11:01:06 PM UTC, comment #2: 

I confirm that this happens also under Debian Linux (TeXmacs 2.1.2).

Aeh9quu9 <ohnie0ai>
Mon 06 Dec 2021 09:39:18 PM UTC, comment #1: 

I confirm the bug on linux, v. 2.1, qt4 build. The "Semantic selections" setting can only be set/unset through menu preferences, but when done as instructed, as soon as one tries to extend the selection from the front or back of, say =>, TeXmacs hangs on my machine. Actually, it maxes out a cpu core and memory usage increases in steps by ~8Gb in ~40s and then stays there, apparently forever (I killed the process after several minutes with no change). 

Philippe Joyez <pjoyez>
Project Member
Mon 06 Dec 2021 05:14:50 PM UTC, original submission:  

Bug Description:
When 'semantic selections' is enabled, selecting certain symbols (=>, <=>, or triple line =>) crashes TeXmacs.
When 'semantic selections' is disabled with semantic editing still enabled, the same selections work flawlessly.

Environment:
Crashes are reproducible on 2.1 (Windows 10 Latest) and 1.99.18 (Ubuntu 18.04). I didn't check for 2.1 on Ubuntu.

How to reproduce:
1. Open a clean TeXmacs window. Enter math mode and place cursor in it. Check "Preferences for editing mathematical formulas"->Semantic selections (that implies "semantic editing"). Into the math mode, enter something like a=>b (this will produce the implication arrow => as mathematical symbol). Move the cursor back after 'a' just before =>. Hold shift down and move cursor to the right, i.e. select =>. TeXmacs freezes and crashes after some seconds.
2. Same happens if selection is tried via mouse. Same happens with symbols <=> or triple line =>.

Workaround:
Switching off 'semantic selections' removes issues. Semantic editing may remain active.

shostory

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jeronim (Posted a comment)
  • -email is unavailable- added by ohnie0ai (Posted a comment)
  • -email is unavailable- added by pjoyez (Posted a comment)
  • -email is unavailable- added by shostory (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-12-06 pjoyez StatusNone Confirmed

    Back to the top


    Powered by Savane 3.9