[Bug 1963556] Re: Open3D segfaults when compiled with LTO

2022-03-07 Thread Launchpad Bug Tracker
This bug was fixed in the package lto-disabled-list - 23 --- lto-disabled-list (23) jammy; urgency=medium * Add imgui to list as linking the static library produced with LTO enabled into open3d crashes. (LP: #1963556) -- Michael Hudson-Doyle Tue, 08 Mar 2022 16:44:21 +1300

[Bug 1963556] Re: Open3D segfaults when compiled with LTO

2022-03-06 Thread Michael Hudson-Doyle
> So I would propose to add imgui to the lto-disabled-list and > recompile open3d afterwards. What do you think? Sounds plausible. I'll try it in my PPA first though! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launch

[Bug 1963556] Re: Open3D segfaults when compiled with LTO

2022-03-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: open3d (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1963556 Title: Ope

[Bug 1963556] Re: Open3D segfaults when compiled with LTO

2022-03-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: lto-disabled-list (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1963556 T

[Bug 1963556] Re: Open3D segfaults when compiled with LTO

2022-03-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: imgui (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1963556 Title: Open

[Bug 1963556] Re: Open3D segfaults when compiled with LTO

2022-03-04 Thread Jochen Sprickerhof
Hi Michael, > tl;dr: probably an imgui bug causing an out of bounds write trashing > malloc's internal data structures Thanks for looking into it, sounds right. I found that imgui in jammy is compiled with LTO and then statically linked into open3d. Recompiling open3d (in jammy) with the imgui f

[Bug 1963556] Re: Open3D segfaults when compiled with LTO

2022-03-03 Thread Michael Hudson-Doyle
I spent a bit too long on this and I think this valgrind error is the core of the issue: ==62437== Invalid write of size 4 ==62437==at 0x685A6C0: stbrp_pack_rects (stb_rect_pack.h:548) ==62437==by 0x522A2D9: ImFontAtlasBuildWithStbTruetype(ImFontAtlas*) (in /usr/lib/x86_64-linux-gnu/libOp

[Bug 1963556] Re: Open3D segfaults when compiled with LTO

2022-03-03 Thread Michael Hudson-Doyle
This is the traceback of how it's crashing: (gdb) bt #0 0x76f5779f in unlink_chunk (p=p@entry=0x55d7b380, av=0x770cac80 ) at ./malloc/malloc.c:1628 #1 0x76f5a6ab in _int_malloc (av=av@entry=0x770cac80 , bytes=bytes@entry=4584) at ./malloc/malloc.c:4307 #2 0x7ff

[Bug 1963556] Re: Open3D segfaults when compiled with LTO

2022-03-03 Thread Michael Hudson-Doyle
** No longer affects: lto-disabled-list (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1963556 Title: Open3D segfaults when compiled with LTO To manage notifications about this bug go to: h

[Bug 1963556] Re: Open3D segfaults when compiled with LTO

2022-03-03 Thread Michael Hudson-Doyle
Turns out open3d is already in lto-disabled-list so something else is going on. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1963556 Title: Open3D segfaults when compiled with LTO To manage notifi

[Bug 1963556] Re: Open3D segfaults when compiled with LTO

2022-03-03 Thread Michael Hudson-Doyle
** Also affects: lto-disabled-list (Ubuntu) Importance: Undecided Status: New ** Tags added: lto -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1963556 Title: Open3D segfaults when compile