afrantzis / bless

Bless - Gtk# Hex Editor
GNU General Public License v2.0
210 stars 38 forks source link

Crash when switching back to first file tab: free(): invalid pointer #13

Closed cweiske closed 5 years ago

cweiske commented 5 years ago

Bless (latest git) crashed after I opened two files, then switched back to the first to continue inspecting it. Out of nowhere the window was gone after some? seconds.

free(): invalid pointer
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) GLib.SList.g_free (intptr) [0x00002] in <5a439e0caae7469886e7119d9f6bc621>:0
  at GLib.ListBase.Empty () [0x000b5] in <5a439e0caae7469886e7119d9f6bc621>:0
  at GLib.ListBase.Dispose (bool) [0x00000] in <5a439e0caae7469886e7119d9f6bc621>:0
  at GLib.ListBase.Finalize () [0x00000] in <5a439e0caae7469886e7119d9f6bc621>:0
  at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr) [0x0001e] in <d0e12f672b88444ab4b6d9b2ecf20142>:0

bless-crash.log

cweiske commented 5 years ago

This seems to have something to do with selecting bytes. When a second file has been opened, selecting bytes in the first file tab crashes bless reliably.

bless-crash2.log

cweiske commented 5 years ago

I just saw the explanation in https://afrantzis.com/posts/bless-0-6-1/

I am using bless on Debian unstable with

Mono JIT compiler version 5.18.0.240 (Debian 5.18.0.240+dfsg-3 Wed Apr 17 16:37:36 UTC 2019)

This sounds like a newer version than the 4.6.2 mentioned in the blog post.

cweiske commented 5 years ago

The problem does not happen with the mono version from https://www.mono-project.com/download/stable/ (Debian unstable), currently Mono JIT compiler version 5.20.1.19 (tarball Thu Apr 11 09:07:22 UTC 2019)

DarkTrick commented 3 years ago

@cweiske Did you report this bug on Mono?

cweiske commented 3 years ago

no.