Heap-use-after-free error on exit of debug build (in Audaspace area) #60715
Labels
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#60715
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Debian testing 64bit
Blender Version
Broken: current master, debug build with ASAN enabled.
Short description of error
Every time I close my debug build (gcc 8.2.0, asan enabled), I get a heap-use-after-free error.
Exact steps for others to reproduce the error
Note that is one comment or move above the
NULLDevice::registerPlugin();
line inAUD_initOnce()
, then error is same but on OpanAL plugin or so, so it looks lkie it's the last item in the device mapping that triggers the issue.Have no idea whether there is actually an issue in audaspace itself, or if this is a weird glitch/bug from either the compiler, or std, or… :(
Added subscriber: @mont29
Added subscriber: @neXyon
@neXyon Assigning to you for now, guess you'll be more familiar than me with c++/templates/std weirdness. ;)
I tried reproducing - I enabled WITH_COMPILER_ASAN (and disabled cycles and libmv in order to get it compile on my machine) but I only get memory leaks when I run blender then, not the error you reported. Do you have any hints on how to reproduce it?
I'm running arch linux with gcc 8.2.1.
Hrrrmmm… Well, I do not use WITH_COMPILER_ASAN either, it does not work very well for me… So I rather just edit the
CMAKE_C/CXX_FLAGS_DEBUG
flags in cmake, and add-fsanitize=address
to both.If you still cannot reproduce, then I wouldn’t be surprised if this was an glitch somewhere in the compiler/stdlib area, too… I will try later with gcc9, see if I still have that annoying thing. :)
Just tried with setting it in C/CXX FLAGS but same result as with WITH_COMPILER_ASAN. Please let me know what you get with gcc9. If you still have it there, I fear you'll have to help me debugging this. ;)
Added subscribers: @Sergey, @brecht
Unfortunately gcc9 is not actually installable in debian testing currently (there are some unstable packages, but broken).
On a side note, also getting some memleak report when using Cycles (just rendering default cube), in DeviceInfo area. Looks somewhat similar to Audaspace one to me (memleak from a call to a vector.insert()...)?
@brecht or @Sergey might also be interested?
Changed status from 'Open' to: 'Archived'
Archiving, cannot reproduce that anymore with current own builds… Probably a mysterious glitch in libs/compiler/linker magic.