Regular crash in modifying regex

Richard Kimberly Heck rikiheck at lyx.org
Thu Jan 14 08:13:49 UTC 2021


On 1/14/21 3:08 AM, Kornel Benko wrote:
> Am Wed, 13 Jan 2021 22:01:43 -0500
> schrieb Richard Kimberly Heck <rikiheck at lyx.org>:
>
>> On 1/13/21 7:39 PM, Kornel Benko wrote:
>>> Am Thu, 14 Jan 2021 00:58:40 +0100
>>> schrieb Kornel Benko <kornel at lyx.org>:
>>>  
>>>> How to reproduce
>>>>
>>>> 1.) Open lyx file e.g. Additional.lyx
>>>> 2.) select AdvFind
>>>> 3.) select regexp-mode-
>>>> 4.) insert any text not in this file
>>>> 5.) select search for section
>>>> 6.) change to not ignore format
>>>> 7.) start search
>>>> 8.) cancel the search (with escape)
>>>> 9.) clean the regex content and try to insert anything ==> crash
>>>>
>>>> BTW, lyx2.3 does not crash.
>>>>
>>>> 	Kornel  
>>> Git bisect leads me to 
>>> a7018252b75316b7855f04c51be2342dc269f96c is the first bad commit
>>> commit a7018252b75316b7855f04c51be2342dc269f96c
>>> Author: Yuriy Skalko <yuriy.skalko at gmail.com>
>>> Date:   Wed Oct 21 11:35:40 2020 +0300
>>>
>>>     Constify
>>> Hm, I hardly believe it.  
>> I don't see how that could really be the cause. I read through the
>> patch. Unless it's a problem with the compiler. Maybe a false optimization?
>>
>> In any event, i don't fully follow the recipe. Do you mean at (3)
>> Insert> Regular Expression? Can you make the whole thing a bit more precise?  
> 3.) Insert into the regex any text not found in this file

Like Jürgen, then, I can't reproduce.

Riki




More information about the lyx-devel mailing list