AMD Pro Driver crashes on ASAN build when switching to edit mode #77752

Closed
opened 2020-06-11 11:55:39 +02:00 by Jeroen Bakker · 5 comments
Member

System Information
Operating system: Linux-5.3.0-53-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: Radeon RX Vega ATI Technologies Inc. 4.5.13594 Core Profile Context 20.10

Blender Version
Broken: version: 2.90.0 Alpha, branch: Unknown, commit date: Unknown, hash: 95aa8ffed56e7bd1784bab64e82c82c4e855ae48
Worked: before cb8d8335b2

Short description of error
AMD Pro Driver crashes when build with ASAN

Exact steps for others to reproduce the error

  • Compile with ASAN
  • Start blender ASAN_OPTIONS=alloc_dealloc_mismatch=0 blender
  • Select cube
  • Go to edit mode
==15867==ERROR: AddressSanitizer: strcpy-param-overlap: memory ranges [0x7ffc56f3e76c,0x7ffc56f3e770) and [0x7ffc56f3e76c, 0x7ffc56f3e770) overlap
    - 0 0x7fcd4a585299  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x66299)
    - 1 0x7fcd1a11f4e3  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x11034e3)
    - 2 0x7fcd1a14ea35  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x1132a35)
    - 3 0x7fcd19848354  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x82c354)
    - 4 0x7fcd198a73a6  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x88b3a6)
    - 5 0x7fcd1a12a9af  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x110e9af)
    - 6 0x7fcd1a873fef  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x1857fef)
    - 7 0x7fcd1a885646  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x1869646)
    - 8 0x7fcd1a888187  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x186c187)
    - 9 0x7fcd1a88f26e  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x187326e)
    - 10 0x7fcd1a25d444  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x1241444)
    - 11 0x7fcd1a7516f6  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x17356f6)
    - 12 0x7fcd1a752b42  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x1736b42)
    - 13 0x7fcd1a760490  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x1744490)
    - 14 0x7fcd1a01287d  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0xff687d)
    - 15 0x7fcd1a5922eb  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x15762eb)
    - 16 0x7fcd19ce67f1  (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0xcca7f1)
    - 17 0x11b5da55 in GPU_batch_draw_advanced /home/jeroen/blender-git/blender/source/blender/gpu/intern/gpu_batch.c:770
    - 18 0x46743a7 in draw_geometry_execute /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:712
    - 19 0x46743a7 in draw_select_buffer /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:895
    - 20 0x46743a7 in draw_call_single_do /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:1003
    - 21 0x46781d4 in draw_shgroup /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:1192
    - 22 0x46792b2 in drw_draw_pass_ex /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:1303
    - 23 0x46796c7 in DRW_draw_pass /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:1344
    - 24 0x4793583 in OVERLAY_extra_draw /home/jeroen/blender-git/blender/source/blender/draw/engines/overlay/overlay_extra.c:1560
    - 25 0x4778fee in OVERLAY_draw_scene /home/jeroen/blender-git/blender/source/blender/draw/engines/overlay/overlay_engine.c:487
    - 26 0x4648e1d in drw_engines_draw_scene /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager.c:1045
    - 27 0x4650460 in DRW_draw_select_loop /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager.c:2194
    - 28 0x6dfd346 in view3d_opengl_select /home/jeroen/blender-git/blender/source/blender/editors/space_view3d/view3d_view.c:1156
    - 29 0x6dbbf81 in mixed_bones_object_selectbuffer /home/jeroen/blender-git/blender/source/blender/editors/space_view3d/view3d_select.c:1732
    - 30 0x6dbcb01 in mixed_bones_object_selectbuffer_extended /home/jeroen/blender-git/blender/source/blender/editors/space_view3d/view3d_select.c:1831
    - 31 0x6dbf1a6 in ed_object_select_pick /home/jeroen/blender-git/blender/source/blender/editors/space_view3d/view3d_select.c:2116
    - 32 0x6dc21e8 in view3d_select_exec /home/jeroen/blender-git/blender/source/blender/editors/space_view3d/view3d_select.c:2477
    - 33 0x6dc2437 in view3d_select_invoke /home/jeroen/blender-git/blender/source/blender/editors/space_view3d/view3d_select.c:2516
    - 34 0x3bfac49 in wm_operator_invoke /home/jeroen/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:1284
    - 35 0x3c011b8 in wm_handler_operator_call /home/jeroen/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:2116
    - 36 0x3c03d49 in wm_handlers_do_keymap_with_keymap_handler /home/jeroen/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:2426
    - 37 0x3c06a41 in wm_handlers_do_intern /home/jeroen/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:2727
    - 38 0x3c09291 in wm_handlers_do /home/jeroen/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:2939
    - 39 0x3c0c2a3 in wm_event_do_handlers /home/jeroen/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:3357
    - 40 0x3be5a74 in WM_main /home/jeroen/blender-git/blender/source/blender/windowmanager/intern/wm.c:475
    - 41 0x2c14bf8 in main /home/jeroen/blender-git/blender/source/creator/creator.c:528
    - 42 0x7fcd48905b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    - 43 0x2c14099 in _start (/home/jeroen/blender-git/build_linux/bin/blender+0x2c14099)

It seems like reuse of same memory space by different parts.
Checking on this issue is a bit hard.

cb8d8335b2 introduced ASAN error on starting blender. But that was fixed later by 3923062d13. on this commit the switching to edit mode isn't working. The commit 19413c4a82 (one before cb8d8335b2) can still go into edit mode.

So it is unclear what commit broke it.

**System Information** Operating system: Linux-5.3.0-53-generic-x86_64-with-debian-buster-sid 64 Bits Graphics card: Radeon RX Vega ATI Technologies Inc. 4.5.13594 Core Profile Context 20.10 **Blender Version** Broken: version: 2.90.0 Alpha, branch: Unknown, commit date: Unknown, hash: `95aa8ffed56e7bd1784bab64e82c82c4e855ae48` Worked: before cb8d8335b21cded9da30ff100bcb62b878d5a880 **Short description of error** AMD Pro Driver crashes when build with ASAN **Exact steps for others to reproduce the error** * Compile with ASAN * Start blender `ASAN_OPTIONS=alloc_dealloc_mismatch=0 blender` * Select cube * Go to edit mode ``` ==15867==ERROR: AddressSanitizer: strcpy-param-overlap: memory ranges [0x7ffc56f3e76c,0x7ffc56f3e770) and [0x7ffc56f3e76c, 0x7ffc56f3e770) overlap - 0 0x7fcd4a585299 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x66299) - 1 0x7fcd1a11f4e3 (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x11034e3) - 2 0x7fcd1a14ea35 (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x1132a35) - 3 0x7fcd19848354 (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x82c354) - 4 0x7fcd198a73a6 (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x88b3a6) - 5 0x7fcd1a12a9af (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x110e9af) - 6 0x7fcd1a873fef (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x1857fef) - 7 0x7fcd1a885646 (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x1869646) - 8 0x7fcd1a888187 (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x186c187) - 9 0x7fcd1a88f26e (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x187326e) - 10 0x7fcd1a25d444 (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x1241444) - 11 0x7fcd1a7516f6 (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x17356f6) - 12 0x7fcd1a752b42 (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x1736b42) - 13 0x7fcd1a760490 (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x1744490) - 14 0x7fcd1a01287d (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0xff687d) - 15 0x7fcd1a5922eb (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0x15762eb) - 16 0x7fcd19ce67f1 (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so+0xcca7f1) - 17 0x11b5da55 in GPU_batch_draw_advanced /home/jeroen/blender-git/blender/source/blender/gpu/intern/gpu_batch.c:770 - 18 0x46743a7 in draw_geometry_execute /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:712 - 19 0x46743a7 in draw_select_buffer /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:895 - 20 0x46743a7 in draw_call_single_do /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:1003 - 21 0x46781d4 in draw_shgroup /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:1192 - 22 0x46792b2 in drw_draw_pass_ex /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:1303 - 23 0x46796c7 in DRW_draw_pass /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:1344 - 24 0x4793583 in OVERLAY_extra_draw /home/jeroen/blender-git/blender/source/blender/draw/engines/overlay/overlay_extra.c:1560 - 25 0x4778fee in OVERLAY_draw_scene /home/jeroen/blender-git/blender/source/blender/draw/engines/overlay/overlay_engine.c:487 - 26 0x4648e1d in drw_engines_draw_scene /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager.c:1045 - 27 0x4650460 in DRW_draw_select_loop /home/jeroen/blender-git/blender/source/blender/draw/intern/draw_manager.c:2194 - 28 0x6dfd346 in view3d_opengl_select /home/jeroen/blender-git/blender/source/blender/editors/space_view3d/view3d_view.c:1156 - 29 0x6dbbf81 in mixed_bones_object_selectbuffer /home/jeroen/blender-git/blender/source/blender/editors/space_view3d/view3d_select.c:1732 - 30 0x6dbcb01 in mixed_bones_object_selectbuffer_extended /home/jeroen/blender-git/blender/source/blender/editors/space_view3d/view3d_select.c:1831 - 31 0x6dbf1a6 in ed_object_select_pick /home/jeroen/blender-git/blender/source/blender/editors/space_view3d/view3d_select.c:2116 - 32 0x6dc21e8 in view3d_select_exec /home/jeroen/blender-git/blender/source/blender/editors/space_view3d/view3d_select.c:2477 - 33 0x6dc2437 in view3d_select_invoke /home/jeroen/blender-git/blender/source/blender/editors/space_view3d/view3d_select.c:2516 - 34 0x3bfac49 in wm_operator_invoke /home/jeroen/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:1284 - 35 0x3c011b8 in wm_handler_operator_call /home/jeroen/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:2116 - 36 0x3c03d49 in wm_handlers_do_keymap_with_keymap_handler /home/jeroen/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:2426 - 37 0x3c06a41 in wm_handlers_do_intern /home/jeroen/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:2727 - 38 0x3c09291 in wm_handlers_do /home/jeroen/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:2939 - 39 0x3c0c2a3 in wm_event_do_handlers /home/jeroen/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:3357 - 40 0x3be5a74 in WM_main /home/jeroen/blender-git/blender/source/blender/windowmanager/intern/wm.c:475 - 41 0x2c14bf8 in main /home/jeroen/blender-git/blender/source/creator/creator.c:528 - 42 0x7fcd48905b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) - 43 0x2c14099 in _start (/home/jeroen/blender-git/build_linux/bin/blender+0x2c14099) ``` It seems like reuse of same memory space by different parts. Checking on this issue is a bit hard. cb8d8335b2 introduced ASAN error on starting blender. But that was fixed later by 3923062d13. on this commit the switching to edit mode isn't working. The commit 19413c4a82 (one before cb8d8335b2) can still go into edit mode. So it is unclear what commit broke it.
Author
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscriber: @fclem

Added subscriber: @fclem

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Clément Foucault self-assigned this 2020-06-24 22:54:46 +02:00

This happens in many places, I just don't think their driver is asan safe. I believe it's not our task to make their driver not angry.

This happens in many places, I just don't think their driver is asan safe. I believe it's not our task to make their driver not angry.
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
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
2 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#77752
No description provided.