SIGSEGV on current master when saving with cursor in subscript

Scott Kostyshak skostysh at lyx.org
Sat Apr 13 22:05:48 UTC 2024


On Sat, Apr 13, 2024 at 08:10:59AM GMT, Jürgen Spitzmüller wrote:
> Am Freitag, dem 12.04.2024 um 12:06 -0400 schrieb Scott Kostyshak:
> > To reproduce:
> > 
> > 1. Start a new document.
> > 2. Start a math inset, e.g., ctrl + m.
> > 3. Type "x".
> > 4. Press "_" to go into the subscript.
> > 5. Type "i" (so at this step the math will be $x_i$).
> > 6. Save the (new) file.
> > 
> > After saving, I get a SIGSEGV.
> > 
> > Note that to reproduce, after 5, do not move the cursor.
> > 
> > Can anyone reproduce?
> 
> Yes. Seems the superscript inset is not properly initialized at that
> point, leading to a null pointer in CursorSlice::text().
> 
> Note that this is not specific to this particularly inset. I can
> reproduce with any other (text) inset, e.g.:
> 
> 1. Start a new document.
> 2. Insert a Note inset
> 3. Save the (new) file (cursor still being in the Note inset).
> 
> => Kaboom.

Thanks for reproducing and the new (ore simple) recipe.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240413/60cfd8e9/attachment.asc>


More information about the lyx-devel mailing list