Crash when issuing command line render engine list ("-E help") #31464

Closed
opened 2012-05-15 08:36:54 +02:00 by Danny McGrath · 5 comments
Member

%%%Using Ubuntu 64bit r46647.

Noticed a few weeks ago and figured it was a little minor to mention, but it does seem to be holding a debian bug report open:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658275

I will point the debian bug to this report. Also, attached a sample crash output just in case (no gdb bt though, was release build, sry)%%%

%%%Using Ubuntu 64bit r46647. Noticed a few weeks ago and figured it was a little minor to mention, but it does seem to be holding a debian bug report open: ``` http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658275 ``` I will point the debian bug to this report. Also, attached a sample crash output just in case (no gdb bt though, was release build, sry)%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

%%%I setup a debug build and poked around a bit in code. Judging by the backtrace and the code, my theory is that set_engine simply calls "exit(0)" which then triggers the exit handlers, which in turn expect to decrement the references for some AUD pointers which haven't been setup yet in this type of minimal startup.

  • 0 0x00007ffff44c7445 in __GI_raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
  • 1 0x00007ffff44cabab in __GI_abort () at abort.c:91
  • 2 0x00007ffff4504e2e in __libc_message (do_abort=2, fmt=0x7ffff460d0d0 "glibc detected %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:201
  • 3 0x00007ffff450f626 in malloc_printerr (action=3, str=0x7ffff460d2c0 "double free or corruption (fasttop)", ptr=) at malloc.c:5007
  • 4 0x0000000000f90631 in deallocate (__p=, this=) at /usr/include/c++/4.6/ext/new_allocator.h:98
  • 5 _M_put_node (__p=, this=) at /usr/include/c++/4.6/bits/stl_tree.h:373
  • 6 _M_destroy_node (__p=, this=) at /usr/include/c++/4.6/bits/stl_tree.h:395
  • 7 _M_erase_aux (this=0x35dd440, __position=...) at /usr/include/c++/4.6/bits/stl_tree.h:1490
  • 8 erase (__position=..., this=0x35dd440) at /usr/include/c++/4.6/bits/stl_tree.h:780
  • 9 _M_erase_aux (__last=..., __first=..., this=0x35dd440) at /usr/include/c++/4.6/bits/stl_tree.h:1504
  • 10 erase (__last=..., __first=..., this=0x35dd440) at /usr/include/c++/4.6/bits/stl_tree.h:797
  • 11 std::_Rb_tree<void*, std::pair<void* const, unsigned int>, std::_Select1st<std::pair<void* const, unsigned int> >, std::less<void*>, std::allocator<std::pair<void* const, unsigned int> > >::erase (this=0x35dd440, __x=) at /usr/include/c++/4.6/bits/stl_tree.h:1515
  • 12 0x0000000000f907ad in erase (__x=@0x7fffffffdd88: 0x4199460, this=) at /usr/include/c++/4.6/bits/stl_map.h:649
  • 13 decref (reference=0x4199460) at /home/dan/blender-build/trunk/intern/audaspace/intern/AUD_Reference.h:92
  • 14 AUD_Reference<AUD_IDevice>::~AUD_Reference (this=0x35dd3b0, __in_chrg=) at /home/dan/blender-build/trunk/intern/audaspace/intern/AUD_Reference.h:176
  • 15 0x00007ffff44cc921 in __run_exit_handlers (status=0, listp=0x7ffff4847688, run_list_atexit=true) at exit.c:78
  • 16 0x00007ffff44cc9a5 in __GI_exit (status=) at exit.c:100
  • 17 0x0000000000891c4b in set_engine (argc=, argv=0x109d, data=0x6) at /home/dan/blender-build/trunk/source/creator/creator.c:572
  • 18 0x0000000000e1eb8a in BLI_argsParse (ba=0x401dfb8, pass=4, default_cb=, default_data=0x3d34918) at /home/dan/blender-build/trunk/source/blender/blenlib/intern/BLI_args.c:279
  • 19 0x0000000000891776 in main (argc=3, argv=0x7fffffffdfb8) at /home/dan/blender-build/trunk/source/creator/creator.c:1343
    %%%
%%%I setup a debug build and poked around a bit in code. Judging by the backtrace and the code, my theory is that set_engine simply calls "exit(0)" which then triggers the exit handlers, which in turn expect to decrement the references for some AUD pointers which haven't been setup yet in this type of minimal startup. </guess> - 0 0x00007ffff44c7445 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 - 1 0x00007ffff44cabab in __GI_abort () at abort.c:91 - 2 0x00007ffff4504e2e in __libc_message (do_abort=2, fmt=0x7ffff460d0d0 "***glibc detected*** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:201 - 3 0x00007ffff450f626 in malloc_printerr (action=3, str=0x7ffff460d2c0 "double free or corruption (fasttop)", ptr=<optimized out>) at malloc.c:5007 - 4 0x0000000000f90631 in deallocate (__p=<optimized out>, this=<optimized out>) at /usr/include/c++/4.6/ext/new_allocator.h:98 - 5 _M_put_node (__p=<optimized out>, this=<optimized out>) at /usr/include/c++/4.6/bits/stl_tree.h:373 - 6 _M_destroy_node (__p=<optimized out>, this=<optimized out>) at /usr/include/c++/4.6/bits/stl_tree.h:395 - 7 _M_erase_aux (this=0x35dd440, __position=...) at /usr/include/c++/4.6/bits/stl_tree.h:1490 - 8 erase (__position=..., this=0x35dd440) at /usr/include/c++/4.6/bits/stl_tree.h:780 - 9 _M_erase_aux (__last=..., __first=..., this=0x35dd440) at /usr/include/c++/4.6/bits/stl_tree.h:1504 - 10 erase (__last=..., __first=..., this=0x35dd440) at /usr/include/c++/4.6/bits/stl_tree.h:797 - 11 std::_Rb_tree<void*, std::pair<void* const, unsigned int>, std::_Select1st<std::pair<void* const, unsigned int> >, std::less<void*>, std::allocator<std::pair<void* const, unsigned int> > >::erase (this=0x35dd440, __x=<optimized out>) at /usr/include/c++/4.6/bits/stl_tree.h:1515 - 12 0x0000000000f907ad in erase (__x=@0x7fffffffdd88: 0x4199460, this=<optimized out>) at /usr/include/c++/4.6/bits/stl_map.h:649 - 13 decref (reference=0x4199460) at /home/dan/blender-build/trunk/intern/audaspace/intern/AUD_Reference.h:92 - 14 AUD_Reference<AUD_IDevice>::~AUD_Reference (this=0x35dd3b0, __in_chrg=<optimized out>) at /home/dan/blender-build/trunk/intern/audaspace/intern/AUD_Reference.h:176 - 15 0x00007ffff44cc921 in __run_exit_handlers (status=0, listp=0x7ffff4847688, run_list_atexit=true) at exit.c:78 - 16 0x00007ffff44cc9a5 in __GI_exit (status=<optimized out>) at exit.c:100 - 17 0x0000000000891c4b in set_engine (argc=<optimized out>, argv=0x109d, data=0x6) at /home/dan/blender-build/trunk/source/creator/creator.c:572 - 18 0x0000000000e1eb8a in BLI_argsParse (ba=0x401dfb8, pass=4, default_cb=<optimized out>, default_data=0x3d34918) at /home/dan/blender-build/trunk/source/blender/blenlib/intern/BLI_args.c:279 - 19 0x0000000000891776 in main (argc=3, argv=0x7fffffffdfb8) at /home/dan/blender-build/trunk/source/creator/creator.c:1343 %%%

%%%Calling sound_exit() before exit(0) in set_engine() form creator.c avoids the issue. But think it's a bit more general issue with referencing audaspace?
Joerg, can you please look into this?%%%

%%%Calling sound_exit() before exit(0) in set_engine() form creator.c avoids the issue. But think it's a bit more general issue with referencing audaspace? Joerg, can you please look into this?%%%
Member

%%%The bug is caused by the global reference counting map being deleted before all other objects gets deleted on exit. Fixed it via at_exit in revision 46662.%%%

%%%The bug is caused by the global reference counting map being deleted before all other objects gets deleted on exit. Fixed it via at_exit in revision 46662.%%%
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#31464
No description provided.