BTW, even with a non-dbgutil build this crashes.
It's probably the root case as the one Miklos reported on IRC i.e.
Tools -> Macros -> Organize Macros -> LibreOffice Basic -> Edit, Alt-F4 to close.
Adding Miklos. This is basically the same crasher he reported on IRC.
So, I've been able at least to figure out how to prevent the crash, though I didn't look close enough to see why it was previously causing crash.
Kohei Yoshida committed a patch related to this issue.
It has been pushed to "master":
fdo#56617: Fix crash on closing beanshell dialog and the macro window.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.