Crash-handler crashes. #51054

Closed
opened 2017-03-26 19:36:08 +02:00 by Ray molenkamp · 6 comments
Member

As found in https://developer.blender.org/D2133#60457 when a crash occurs after the window manager has exited our crash handler does a null deref and ....crashes..

https://git.blender.org/gitweb/gitweb.cgi/blender.git/blob/HEAD:/source/creator/creator_signals.c#l135

the problem is this bit of code, G.Main is null at this point and should not have been de-referenced.

Besides the flaky crash in D2133 i sadly have no repro case for this.

As found in https://developer.blender.org/D2133#60457 when a crash occurs after the window manager has exited our crash handler does a null deref and ....crashes.. https://git.blender.org/gitweb/gitweb.cgi/blender.git/blob/HEAD:/source/creator/creator_signals.c#l135 the problem is this bit of code, G.Main is null at this point and should not have been de-referenced. Besides the flaky crash in [D2133](https://archive.blender.org/developer/D2133) i sadly have no repro case for this.
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo

This issue was referenced by eca8bae671

This issue was referenced by eca8bae6718d2cba788713bfb677f92f2fa3ca4e
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Julian Eisel self-assigned this 2020-01-15 18:13:15 +01:00
Member

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Member

Looked into this with @ZedDB - there's already logic to handle unset global values, which we now also run when globals are already NULLed. Kudos to him!
Thanks also for the report!

(Note if someone wants to reproduce this, you can force a crash through a NULL-deref or so in WM_exit() after the WM_exit_ex() call.)

Looked into this with @ZedDB - there's already logic to handle unset global values, which we now also run when globals are already NULLed. Kudos to him! Thanks also for the report! (Note if someone wants to reproduce this, you can force a crash through a NULL-deref or so in `WM_exit()` after the `WM_exit_ex()` call.)
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blender/blender#51054
No description provided.