Link error when compiling with -fsanitize=undefined

Kornel Benko kornel at lyx.org
Sun Sep 19 18:37:16 UTC 2021


Am Sun, 19 Sep 2021 14:15:21 -0400
schrieb Scott Kostyshak <skostysh at lyx.org>:

> On Sun, Sep 19, 2021 at 02:00:33PM +0200, Kornel Benko wrote:
> > Am Sun, 19 Sep 2021 07:45:19 -0400
> > schrieb Scott Kostyshak <skostysh at lyx.org>:
> >   
> > > > > > So inserting this include cured the compilation for me.      
> > > > > 
> > > > > That's great you figured it out and it doesn't add too much complexity to the
> > > > > code. Are you sure it ended up using the -fsanitize=undefined flag ? If you do
> > > > > 
> > > > >   ldd build-dir/bin/lyx | grep ubsan
> > > > > 
> > > > > Does it show up?
> > > > > 
> > > > > Scott    
> > > > 
> > > > 	libubsan.so.1 => /usr/lib/x86_64-linux-gnu/libubsan.so.1
> > > > (0x00007f49cdfd2000)    
> > > 
> > > Great, I will experiment next week with it.
> > > 
> > > Thank you,
> > > 
> > > Scott
> > >   
> > 
> > BTW, how got you the output showing errors? My lyx does not print any error messages.
> > (I mean:
> > 'ColorCode' /home/scott/lyxbuilds/master/repo/src/MetricsInfo.cpp:174:6: runtime
> > error: load of value 128, which is not a valid value for type
> > ...
> > )  
> 
> It seems that it is triggered with a lot of branches (or perhaps more generally any
> different kind of insets?). Attached is an LFUN sequence that reproduces it. Does it
> trigger the error for you?
> 
> Scott

Not on empty document.

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto vom 2021-09-19 20-35-11.png
Type: image/png
Size: 98262 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210919/1aa3b791/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210919/1aa3b791/attachment-0001.asc>


More information about the lyx-devel mailing list