Link error when compiling with -fsanitize=undefined
Scott Kostyshak
skostysh at lyx.org
Sun Sep 19 18:15:21 UTC 2021
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
-------------- next part --------------
command-sequence branch-add-insert branch1; branch-add-insert branch2; branch-add-insert branch3; branch-add-insert branch4; branch-add-insert branch5; branch-add-insert branch6; branch-add-insert branch7; branch-add-insert branch8; branch-add-insert branch9; branch-add-insert branch10; branch-add-insert branch11; branch-add-insert branch12; branch-add-insert branch13; branch-add-insert branch14; branch-add-insert branch15; branch-add-insert branch16; branch-add-insert branch17; branch-add-insert branch18; branch-add-insert branch19; branch-add-insert branch20; branch-add-insert branch21; branch-add-insert branch22; branch-add-insert branch23; branch-add-insert branch24; branch-add-insert branch25; branch-add-insert branch26; branch-add-insert branch27; branch-add-insert branch28; branch-add-insert branch29; branch-add-insert branch30; branch-add-insert branch31; branch-add-insert branch32; branch-add-insert branch33; branch-add-insert branch34; branch-add-insert branch35; branch-add-insert branch36; branch-add-insert branch37; branch-add-insert branch38; branch-add-insert branch39; branch-add-insert branch40; branch-add-insert branch41; branch-add-insert branch42; branch-add-insert branch43; branch-add-insert branch44; branch-add-insert branch45; branch-add-insert branch46; branch-add-insert branch47; branch-add-insert branch48; branch-add-insert branch49; branch-add-insert branch50; branch-add-insert branch51; branch-add-insert branch52; branch-add-insert branch53; branch-add-insert branch54; branch-add-insert branch55; branch-add-insert branch56; branch-add-insert branch57; branch-add-insert branch58; branch-add-insert branch59; branch-add-insert branch60; branch-add-insert branch61; branch-add-insert branch62
-------------- 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/20210919/01dff8a1/attachment.asc>
More information about the lyx-devel
mailing list