IconInfo iconInfo: member call on null pointer
Scott Kostyshak
skostysh at lyx.org
Sat Sep 25 19:45:19 UTC 2021
On Sat, Sep 25, 2021 at 12:00:12PM -0400, Scott Kostyshak wrote:
> On Sat, Sep 25, 2021 at 04:53:20PM +0200, Jean-Marc Lasgouttes wrote:
> > Le 25/09/2021 à 05:20, Scott Kostyshak a écrit :
> > > After building with fsanitize=undefined -fno-omit-frame-pointer, I get the following:
> > >
> > > $ cd lib/examples/ && lyx -e pdf Welcome.lyx
> > > /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiApplication.cpp:558:55: runtime error: member call on null pointer of type 'struct GuiApplication'
> > > /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiApplication.cpp:558:55: runtime error: member access within null pointer of type 'struct GuiApplication'
> >
> > What I do not understand is why it does not crash without fsanitized.
>
> I guess it's undefined behavior?
>
> https://stackoverflow.com/questions/5431420/why-doesnt-the-program-crash-when-i-call-a-member-function-through-a-null-point
>
> > BTW, with your patch is the output pdf correct?
>
> I will look at the differences between GUI and command line, and between patch/no-patch and report back within a couple of days.
With the "patch" the export from the command line is wrong (it omits the icon). Without the patch, both GUI and command-line exported PDFs are equivalent, and include the icon.
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/20210925/b9aa3257/attachment.asc>
More information about the lyx-devel
mailing list