Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Neverending story of Blender Segmentation fault (LLVM OSL)

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
gorg86
Guru
Guru
User avatar
Posts: 357
Joined: Fri May 20, 2011 6:20 pm

Neverending story of Blender Segmentation fault (LLVM OSL)

  • Quote

Post by gorg86 » Wed Jun 28, 2023 10:14 am

Hi,

https://forums.gentoo.org/viewtopic-t-1163401.html
https://bugs.gentoo.org/880671

If the underlying issue here is "just" an LLVM version mismatch, what is the correct way of fixing this permanently?
Is this a new kind of problem that will affect other packages in the future, too?
Should this be handled by portage by forcing specific LLVM versions system wide or at least for certain packages and their dependencies?

Thanks
Top
Thistled
Guru
Guru
User avatar
Posts: 572
Joined: Thu Jan 06, 2011 6:57 pm
Location: Scotland
Contact:
Contact Thistled
Website

  • Quote

Post by Thistled » Sat Jul 01, 2023 10:43 pm

Well the developer on the bugzilla asks....
Sebastian Parborg 2023-05-01 15:41:30 UTC
(In reply to Lorenzo Bertini from comment #12)
> Can confirm with LLVM 15 and 16 (~amd64). Using "-osl" makes it finally
> start, but rendering a benchmark scene produces a segmentation fault with
> the usual backtrace
> #1 0x... in () at /usr/lib/llvm/16/lib64/libLLVM-16.so


Could you perhaps build Blender with debug flags so we can see where it is crashing?
Have you tried this? It might help the team get to the bottom of it.
Whatever you do, do it properly!
Top
androidyl
n00b
n00b
Posts: 1
Joined: Tue Jul 18, 2023 2:03 am

  • Quote

Post by androidyl » Tue Jul 18, 2023 2:09 am

Thistled wrote:Well the developer on the bugzilla asks....
Sebastian Parborg 2023-05-01 15:41:30 UTC
(In reply to Lorenzo Bertini from comment #12)
> Can confirm with LLVM 15 and 16 (~amd64). Using "-osl" makes it finally
> start, but rendering a benchmark scene produces a segmentation fault with
> the usual backtrace
> #1 0x... in () at /usr/lib/llvm/16/lib64/libLLVM-16.so


Could you perhaps build Blender with debug flags so we can see where it is crashing?
Have you tried this? It might help the team get to the bottom of it.
Here's my gdb output. currently building both LLVM versions with debug as well, can post that result if it will help

Code: Select all

(gdb) run
Starting program: /usr/bin/blender-3.3
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[Detaching after vfork from child process 16019]
[New Thread 0x7fffd5ba56c0 (LWP 16021)]
[New Thread 0x7fffd53a46c0 (LWP 16022)]
[New Thread 0x7fffd4a4a6c0 (LWP 16026)]
[New Thread 0x7fffc2f7b6c0 (LWP 16027)]
[New Thread 0x7fffc277a6c0 (LWP 16028)]
[New Thread 0x7fffc1f796c0 (LWP 16029)]
[New Thread 0x7fffc13786c0 (LWP 16030)]

Thread 1 "blender-3.3" received signal SIGSEGV, Segmentation fault.
0x00007fffe200a9f7 in ?? () from /usr/lib/llvm/15/lib64/libLLVM-15.so
(gdb) bt
#0  0x00007fffe200a9f7 in  () at /usr/lib/llvm/15/lib64/libLLVM-15.so
#1  0x00007fffe200ab64 in  () at /usr/lib/llvm/15/lib64/libLLVM-15.so
#2  0x00007fffb524dbe0 in llvm::FoldingSetBase::FindNodeOrInsertPos(llvm::FoldingSetNodeID const&, void*&, llvm::FoldingSetBase::FoldingSetInfo const&) ()
    at /usr/lib/llvm/16/lib64/libLLVM-16.so
#3  0x00007fffb5bc1c21 in llvm::SelectionDAG::FindNodeOrInsertPos(llvm::FoldingSetNodeID const&, llvm::SDLoc const&, void*&) () at /usr/lib/llvm/16/lib64/libLLVM-16.so
#4  0x00007fffb5c07403 in llvm::SelectionDAG::getNode(unsigned int, llvm::SDLoc const&, llvm::SDVTList, llvm::ArrayRef<llvm::SDValue>, llvm::SDNodeFlags) ()
    at /usr/lib/llvm/16/lib64/libLLVM-16.so
#5  0x00007fffb7757664 in  () at /usr/lib/llvm/16/lib64/libLLVM-16.so
#6  0x00007fffb5b8a974 in llvm::SelectionDAGISel::LowerArguments(llvm::Function const&) () at /usr/lib/llvm/16/lib64/libLLVM-16.so
#7  0x00007fffb5c2274b in llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) () at /usr/lib/llvm/16/lib64/libLLVM-16.so
#8  0x00007fffb5c233fa in llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) () at /usr/lib/llvm/16/lib64/libLLVM-16.so
#9  0x00007fffb56f956f in llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
    () at /usr/lib/llvm/16/lib64/libLLVM-16.so
#10 0x00007fffb5459a33 in llvm::FPPassManager::runOnFunction(llvm::Function&) ()
    at /usr/lib/llvm/16/lib64/libLLVM-16.so
#11 0x00007fffb68aba6d in  () at /usr/lib/llvm/16/lib64/libLLVM-16.so
#12 0x00007fffb545a36c in llvm::legacy::PassManagerImpl::run(llvm::Module&) ()
    at /usr/lib/llvm/16/lib64/libLLVM-16.so
#13 0x00007fffc3765106 in  () at /usr/lib64/dri/radeonsi_dri.so
#14 0x00007fffc369ae9b in  () at /usr/lib64/dri/radeonsi_dri.so
#15 0x00007fffc369321e in  () at /usr/lib64/dri/radeonsi_dri.so
#16 0x00007fffc369867c in  () at /usr/lib64/dri/radeonsi_dri.so
#17 0x00007fffc36bd4c2 in  () at /usr/lib64/dri/radeonsi_dri.so
#18 0x00007fffc36c1b75 in  () at /usr/lib64/dri/radeonsi_dri.so
#19 0x00007fffc3800979 in  () at /usr/lib64/dri/radeonsi_dri.so
#20 0x00007fffc3804463 in  () at /usr/lib64/dri/radeonsi_dri.so
#21 0x00007fffc37ff0c7 in  () at /usr/lib64/dri/radeonsi_dri.so
#22 0x00007fffc37ba85b in  () at /usr/lib64/dri/radeonsi_dri.so
#23 0x00007fffc36f0a4c in  () at /usr/lib64/dri/radeonsi_dri.so
#24 0x00007fffc36f0fcd in  () at /usr/lib64/dri/radeonsi_dri.so
#25 0x00007fffc35883d3 in  () at /usr/lib64/dri/radeonsi_dri.so
#26 0x00007fffc3586b61 in  () at /usr/lib64/dri/radeonsi_dri.so
#27 0x00007fffc3587c36 in  () at /usr/lib64/dri/radeonsi_dri.so
#28 0x00007fffc358ed58 in  () at /usr/lib64/dri/radeonsi_dri.so
#29 0x00007fffc30b00bc in  () at /usr/lib64/dri/radeonsi_dri.so
#30 0x00007fffc2fed615 in  () at /usr/lib64/dri/radeonsi_dri.so
#31 0x00007fffd4b5d9ce in glLabelObjectEXT () at /usr/lib64/libGLX_mesa.so.0
#32 0x00007fffd4b4f7b1 in  () at /usr/lib64/libGLX_mesa.so.0
#33 0x00007fffd4b3ebeb in  () at /usr/lib64/libGLX_mesa.so.0
--Type <RET> for more, q to quit, c to continue without paging--
#34 0x00005555574325c2 in GHOST_ContextGLX::initializeDrawingContext()
    (this=this@entry=0x55555c74b6a8)
    at /usr/src/debug/media-gfx/blender-3.3.6-r1/blender-3.3.6/intern/ghost/intern/GHOST_ContextGLX.cpp:287
#35 0x00005555574318be in GHOST_WindowX11::newDrawingContext(GHOST_TDrawingContextType) (this=0x55555bf8f158, type=<optimized out>)
    at /usr/src/debug/media-gfx/blender-3.3.6-r1/blender-3.3.6/intern/ghost/intern/GHOST_WindowX11.cpp:1360
#36 0x00005555574346a9 in GHOST_Window::setDrawingContextType(GHOST_TDrawingContextType) (type=GHOST_kDrawingContextTypeOpenGL, this=0x55555bf8f158)
    at /usr/src/debug/media-gfx/blender-3.3.6-r1/blender-3.3.6/intern/ghost/intern/GHOST_Window.cpp:65
#37 GHOST_Window::setDrawingContextType(GHOST_TDrawingContextType)
    (this=this@entry=0x55555bf8f158, type=type@entry=GHOST_kDrawingContextTypeOpenGL) at /usr/src/debug/media-gfx/blender-3.3.6-r1/blender-3.3.6/intern/ghost/intern/GHOST_Window.cpp:58
#38 0x0000555557430f23 in GHOST_WindowX11::GHOST_WindowX11(GHOST_SystemX11*, _XDisplay*, char const*, int, int, unsigned int, unsigned int, GHOST_TWindowState, GHOST_WindowX11*, GHOST_TDrawingContextType, bool, bool, bool, bool, bool)
    (this=this@entry=0x55555bf8f158, system=system@entry=0x55555c2f7158, display=0x55555c2f72f0, title=title@entry=0x555558c4de27 "Blender", left=left@entry=0, top=top@entry=0, width=1920, height=1080, state=GHOST_kWindowStateMaximized, parentWindow=0x0, type=GHOST_kDrawingContextTypeOpenGL, is_dialog=false, stereoVisual=false, exclusive=false, alphaBackground=false, is_debug=false)
    at /usr/src/debug/media-gfx/blender-3.3.6-r1/blender-3.3.6/intern/ghost/intern/GHOST_WindowX11.cpp:453
#39 0x000055555742dd74 in GHOST_SystemX11::createWindow(char const*, int, int, unsigned int, unsigned int, GHOST_TWindowState, GHOST_TDrawingContextType, GHOST_GLSettings, bool, bool, GHOST_IWindow const*)
    (this=0x55555c2f7158, title=0x555558c4de27 "Blender", left=0, top=0, width=1920, height=1080, state=GHOST_kWindowStateMaximized, type=GHOST_kDrawingContextTypeOpenGL, glSettings=..., exclusive=false, is_dialog=false, parentWindow=0x0)
    at /usr/src/debug/media-gfx/blender-3.3.6-r1/blender-3.3.6/intern/ghost/intern/GHOST_SystemX11.cpp:358
#40 0x0000555557427c4e in GHOST_CreateWindow(GHOST_SystemHandle, GHOST_WindowHandle, char const*, int32_t, int32_t, uint32_t, uint32_t, GHOST_TWindowState, bool, GHOST_TDrawingContextType, GHOST_GLSettings)
    (systemhandle=<optimized out>, parent_windowhandle=<optimized out>, title=title@entry=0x555558c4de27 "Blender", left=<optimized out>, top=top@entry=0, width=<optimized out>, height=1080, state=GHOST_kWindowStateMaximized, is_dialog=false, type=GHOST_kDrawingContextTypeOpenGL, glSettings=...)
    at /usr/src/debug/media-gfx/blender-3.3.6-r1/blender-3.3.6/intern/ghost/intern/GHOST_C-api.cpp:154
#41 0x000055555631afd1 in wm_window_ghostwindow_add
    (title=0x555558c4de27 "Blender", is_dialog=false, win=0x55555c688368, wm=0x55555c--Type <RET> for more, q to quit, c to continue without paging--
687c08)
    at /usr/src/debug/media-gfx/blender-3.3.6-r1/blender-3.3.6/source/blender/windowmanager/intern/wm_window.c:538
#42 wm_window_ghostwindow_ensure
    (wm=wm@entry=0x55555c687c08, win=win@entry=0x55555c688368, is_dialog=is_dialog@entry=false)
    at /usr/src/debug/media-gfx/blender-3.3.6-r1/blender-3.3.6/source/blender/windowmanager/intern/wm_window.c:627
#43 0x000055555631b1ad in wm_window_ghostwindows_ensure (wm=wm@entry=0x55555c687c08)
    at /usr/src/debug/media-gfx/blender-3.3.6-r1/blender-3.3.6/source/blender/windowmanager/intern/wm_window.c:680
#44 0x00005555562ea0b8 in WM_check (C=C@entry=0x55555bf25ed8)
    at /usr/src/debug/media-gfx/blender-3.3.6-r1/blender-3.3.6/source/blender/windowmanager/intern/wm.c:500
#45 0x00005555562fdc4e in wm_homefile_read_ex
    (C=C@entry=0x55555bf25ed8, params_homefile=params_homefile@entry=0x7fffffffd780, reports=reports@entry=0x0, r_params_file_read_post=r_params_file_read_post@entry=0x7fffffffd778)
    at /usr/src/debug/media-gfx/blender-3.3.6-r1/blender-3.3.6/source/blender/windowmanager/intern/wm_files.c:1344
#46 0x0000555556301c00 in WM_init
    (C=C@entry=0x55555bf25ed8, argc=argc@entry=1, argv=argv@entry=0x7fffffffd948
)
    at /usr/src/debug/media-gfx/blender-3.3.6-r1/blender-3.3.6/source/blender/windowm
anager/intern/wm_init_exit.c:291
#47 0x0000555555ccbd25 in main (argc=1, argv=0x7fffffffd948)
    at /usr/src/debug/media-gfx/blender-3.3.6-r1/blender-3.3.6/source/creator/creator.c:489
[Moderator edit: added [code] tags to preserve output layout. -Hu]
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Tue Jul 18, 2023 9:17 am

Blender & OSL require to be build with the same LLVM version.

Code: Select all

emerge -1 media-libs/osl
prior to rebuild of media-gfx/blender regularly fixes here.
media-gfx/blender:3.6 untested, though.

The one thing blender ebuild could force is the rebuild of osl when the package is required...

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
Post Reply

4 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy