heap-use-after-free in script_load_addons test #83099
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
Interest: X11
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#83099
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?
Blender Version
1318eaf166
Run
ctest -C debug -VV -R script_load_addons
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @ankitm
Heap buffer overflow in script_load_addons testto heap-use-after-free in script_load_addons testAdded subscriber: @LazyDodo
hit this one on windows during testing, natecraddock was able to repro on chat on linux as well. i'm bumping this to high, crashing tests are not something that ought to drag on too long.
Added subscriber: @EAW
Some additional details that may or may not help:
Run
blender_debug_log.cmd
Turn Amaranth on
Go to the compositor workspace
Add an ID Mask node
File "C:\blender-git\build_windows_x64_vc16_Release\bin\2.92\scripts\addons\amaranth\node_editor\id_panel.py", line 84, in draw
if ob and node.use_matching_indices \
That's something else, the crash appears to be caused by the object carver addon there's something wonky with its keymap
Added subscriber: @rjg
The keymap issue appears to be caused by the greasepencil tools. In
register()
it tries to retrieve an existing keymap with the name "3D View", stores a reference to it and doesn't store references to the keymap items it creates and intends to remove later on. Instead inunregister()
it removes all keymap items in the keymap. This may include keymap entries of another add-on, like the object carver.Modifying the code like this, seems to avoid the problem, but I haven't tested it with ASAN yet.
This patch is clean as per ASAN too.
Added subscriber: @Pullup
Tagging in @Pullup, the author of Grease Pencil Tools add-on, since they wrote the code in question.
Just to let them know about the issue as @rjg has claimed the task and mentioned he will submit a diff in chat.
I will submit a patch for review on Monday.
@rjg I'm sorry for messing up with the addon keymap ! Now I see the major flaw you mentioned ! Did you apply your patch or there is something I need to do ?
Sorry everyone !
@Pullup No worries. There's nothing you have to do, I will submit a patch on Monday for review and it should then be committed soon after, once approved.
This issue was referenced by blender/blender-addons@73976fd55a
Changed status from 'Confirmed' to: 'Resolved'