afrantzis / bless

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

Marking a selection of text makes the program crash #51

Open norrig opened 2 years ago

norrig commented 2 years ago

Not sure where I should post this (couldn't find a dedicated bug-report area), but here goes: I'm trying to select a decent amount of data from this file but the program crashes every time. Notice I haven't copied anything, it crashes while I'm marking the data.
For reference, doing the same with the same file in wxHexEditor works fine.

Video showing what I'm doing: https://i.imgur.com/HmPkdGt.mp4

Specs: Debian 5.10.46-4kali1 Running in VMware with plenty of resources. Host OS is running win10, i7-7700k, 16gb ram.

The file I'm trying to copy from: dolls

Crash trace:

=================================================================
        Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
        Native stacktrace:
=================================================================
        0x564fd86c8f05 - mono : (null)
        0x564fd86c92ac - mono : (null)
        0x564fd8674a4a - mono : (null)
        0x564fd86c84df - mono : (null)
        0x7f8e98cc7200 - /lib/x86_64-linux-gnu/libpthread.so.0 : (null)
        0x7f8e98afc8a1 - /lib/x86_64-linux-gnu/libc.so.6 : gsignal
        0x7f8e98ae6546 - /lib/x86_64-linux-gnu/libc.so.6 : abort
        0x7f8e98b3deb8 - /lib/x86_64-linux-gnu/libc.so.6 : (null)
        0x7f8e98b4591a - /lib/x86_64-linux-gnu/libc.so.6 : (null)
        0x7f8e98b46cf4 - /lib/x86_64-linux-gnu/libc.so.6 : (null)
        0x7f8e98b4a9b4 - /lib/x86_64-linux-gnu/libc.so.6 : cfree
        0x40fcc363 - Unknown

=================================================================
        Telemetry Dumper:
=================================================================
Pkilling 0x7f8e6effd640 from 0x7f8e986b7640
Pkilling 0x7f8e6dffb640 from 0x7f8e986b7640
Pkilling 0x7f8e8c4e2640 from 0x7f8e986b7640
Pkilling 0x7f8e98abb740 from 0x7f8e986b7640
Pkilling 0x7f8e6d7fa640 from 0x7f8e986b7640
Pkilling 0x7f8e8f0e8640 from 0x7f8e986b7640
Pkilling 0x7f8e8c2e1640 from 0x7f8e986b7640
Entering thread summarizer pause from 0x7f8e986b7640
Finished thread summarizer pause from 0x7f8e986b7640.

Waiting for dumping threads to resume

=================================================================
        External Debugger Dump:
=================================================================
[New LWP 3829]
[New LWP 3830]
[New LWP 3843]
[New LWP 3844]
[New LWP 3852]
[New LWP 3861]
[New LWP 3862]
[New LWP 3863]
[New LWP 3864]
[New LWP 3868]
[New LWP 3869]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f8e98bb287f in poll () from /lib/x86_64-linux-gnu/libc.so.6
  Id   Target Id                                          Frame 
* 1    Thread 0x7f8e98abb740 (LWP 3828) "mono"            0x00007f8e98bb287f in poll () from /lib/x86_64-linux-gnu/libc.so.6
  2    Thread 0x7f8e97fff640 (LWP 3829) "SGen worker"     0x00007f8e98cc90fa in __futex_abstimed_wait_common64 () from /lib/x86_64-linux-gnu/libpthread.so.0
  3    Thread 0x7f8e986b7640 (LWP 3830) "Finalizer"       0x00007f8e98b8aa67 in wait4 () from /lib/x86_64-linux-gnu/libc.so.6
  4    Thread 0x7f8e8e073640 (LWP 3843) "gmain"           0x00007f8e98bb287f in poll () from /lib/x86_64-linux-gnu/libc.so.6
  5    Thread 0x7f8e8e8e7640 (LWP 3844) "gdbus"           0x00007f8e98bb287f in poll () from /lib/x86_64-linux-gnu/libc.so.6
  6    Thread 0x7f8e7cce3640 (LWP 3852) "pool-bless"      0x00007f8e98bb7f79 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
  7    Thread 0x7f8e6d7fa640 (LWP 3861) "Timer-Scheduler" 0x00007f8e98cc90fa in __futex_abstimed_wait_common64 () from /lib/x86_64-linux-gnu/libpthread.so.0
  8    Thread 0x7f8e6dffb640 (LWP 3862) "Timer-Scheduler" 0x00007f8e98cc90fa in __futex_abstimed_wait_common64 () from /lib/x86_64-linux-gnu/libpthread.so.0
  9    Thread 0x7f8e8c4e2640 (LWP 3863) "Thread Pool Wor" 0x00007f8e98cc90fa in __futex_abstimed_wait_common64 () from /lib/x86_64-linux-gnu/libpthread.so.0
  10   Thread 0x7f8e8c2e1640 (LWP 3864) "Thread Pool Wor" 0x00007f8e98cc90fa in __futex_abstimed_wait_common64 () from /lib/x86_64-linux-gnu/libpthread.so.0
  11   Thread 0x7f8e7e4e6640 (LWP 3868) "Thread Pool Wor" 0x00007f8e98cc90fa in __futex_abstimed_wait_common64 () from /lib/x86_64-linux-gnu/libpthread.so.0
  12   Thread 0x7f8e7dce5640 (LWP 3869) "Thread Pool Wor" 0x00007f8e98cc90fa in __futex_abstimed_wait_common64 () from /lib/x86_64-linux-gnu/libpthread.so.0

Thread 12 (Thread 0x7f8e7dce5640 (LWP 3869) "Thread Pool Wor"):
#0  0x00007f8e98cc90fa in __futex_abstimed_wait_common64 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f8e98cc5663 in __new_sem_wait_slow64.constprop.0 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x0000564fd88dbbde in ?? ()
#3  0x0000564fd8873397 in ?? ()
#4  0x00007f8e98cbcd80 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007f8e98bbe76f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 11 (Thread 0x7f8e7e4e6640 (LWP 3868) "Thread Pool Wor"):
#0  0x00007f8e98cc90fa in __futex_abstimed_wait_common64 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f8e98cc5663 in __new_sem_wait_slow64.constprop.0 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x0000564fd88dbbde in ?? ()
#3  0x0000564fd8873397 in ?? ()
#4  0x00007f8e98cbcd80 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007f8e98bbe76f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 10 (Thread 0x7f8e8c2e1640 (LWP 3864) "Thread Pool Wor"):
#0  0x00007f8e98cc90fa in __futex_abstimed_wait_common64 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f8e98cc5663 in __new_sem_wait_slow64.constprop.0 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x0000564fd88dbbde in ?? ()
#3  0x0000564fd8873397 in ?? ()
#4  0x00007f8e98cbcd80 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007f8e98bbe76f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 9 (Thread 0x7f8e8c4e2640 (LWP 3863) "Thread Pool Wor"):
#0  0x00007f8e98cc90fa in __futex_abstimed_wait_common64 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f8e98cc5663 in __new_sem_wait_slow64.constprop.0 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x0000564fd88dbbde in ?? ()
#3  0x0000564fd8873397 in ?? ()
#4  0x00007f8e98cbcd80 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007f8e98bbe76f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 8 (Thread 0x7f8e6dffb640 (LWP 3862) "Timer-Scheduler"):
#0  0x00007f8e98cc90fa in __futex_abstimed_wait_common64 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f8e98cc2f44 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x0000564fd893453a in ?? ()
#3  0x0000564fd893fc51 in ?? ()
#4  0x0000564fd88dc8e3 in ?? ()
#5  0x0000564fd8873397 in ?? ()
#6  0x00007f8e98cbcd80 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007f8e98bbe76f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 7 (Thread 0x7f8e6d7fa640 (LWP 3861) "Timer-Scheduler"):
#0  0x00007f8e98cc90fa in __futex_abstimed_wait_common64 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f8e98cc2c30 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x0000564fd893459d in ?? ()
#3  0x0000564fd8893a9a in ?? ()
#4  0x0000564fd8895258 in ?? ()
#5  0x0000564fd8895d38 in ?? ()
#6  0x0000564fd8874b1a in ?? ()
#7  0x0000564fd8801fc8 in ?? ()
#8  0x0000000040fc3b6f in ?? ()
#9  0x00007f8e9830abe8 in ?? ()
#10 0x00007f8e9830ace0 in ?? ()
#11 0x00007f8e9830ab18 in ?? ()
#12 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f8e7cce3640 (LWP 3852) "pool-bless"):
#0  0x00007f8e98bb7f79 in syscall () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f8e94b498f2 in g_cond_wait_until () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8e94ac5611 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8e94ac5c32 in g_async_queue_timeout_pop () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f8e94b20bd9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f8e94b2026d in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f8e98cbcd80 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007f8e98bbe76f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 5 (Thread 0x7f8e8e8e7640 (LWP 3844) "gdbus"):
#0  0x00007f8e98bb287f in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f8e94af6a9e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8e94af6dfb in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8e94db7c36 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f8e94b2026d in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f8e98cbcd80 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f8e98bbe76f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 4 (Thread 0x7f8e8e073640 (LWP 3843) "gmain"):
#0  0x00007f8e98bb287f in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f8e94af6a9e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8e94af6bbf in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8e94af6c11 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f8e94b2026d in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f8e98cbcd80 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f8e98bbe76f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 3 (Thread 0x7f8e986b7640 (LWP 3830) "Finalizer"):
#0  0x00007f8e98b8aa67 in wait4 () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x0000564fd86c910f in ?? ()
#2  0x0000564fd86c92ac in ?? ()
#3  0x0000564fd8674a4a in ?? ()
#4  0x0000564fd86c84df in ?? ()
#5  <signal handler called>
#6  0x00007f8e98afc8a1 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007f8e98ae6546 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x00007f8e98b3deb8 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#9  0x00007f8e98b4591a in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#10 0x00007f8e98b46cf4 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#11 0x00007f8e98b4a9b4 in free () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000040fcc363 in ?? ()
#13 0x0000564fd9f93750 in ?? ()
#14 0x00007f8e986b6c40 in ?? ()
#15 0x0000564fd96c9450 in ?? ()
#16 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f8e97fff640 (LWP 3829) "SGen worker"):
#0  0x00007f8e98cc90fa in __futex_abstimed_wait_common64 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f8e98cc2c30 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x0000564fd892669b in ?? ()
#3  0x00007f8e98cbcd80 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4  0x00007f8e98bbe76f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7f8e98abb740 (LWP 3828) "mono"):
#0  0x00007f8e98bb287f in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f8e94af6a9e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8e94af6dfb in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8e9533fb2a in gtk_main () from /lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#4  0x0000000040fb1860 in ?? ()
#5  0x0000000000000000 in ?? ()
[Inferior 1 (process 3828) detached]

=================================================================
        Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x7f8e98afc8a1):0x7f8e98afc891  d2 4c 89 ce bf 02 00 00 00 b8 0e 00 00 00 0f 05  .L..............
0x7f8e98afc8a1  48 8b 84 24 08 01 00 00 64 48 2b 04 25 28 00 00  H..$....dH+.%(..
0x7f8e98afc8b1  00 75 20 44 89 c0 48 81 c4 18 01 00 00 c3 90 48  .u D..H........H
0x7f8e98afc8c1  8b 15 89 15 19 00 f7 d8 41 b8 ff ff ff ff 64 89  ........A.....d.

=================================================================
        Managed Stacktrace:
=================================================================
          at <unknown> <0xffffffff>
          at GLib.SList:g_free <0x000a2>
          at GLib.ListBase:Empty <0x001a4>
          at GLib.ListBase:Dispose <0x0002b>
          at GLib.ListBase:Finalize <0x00035>
          at System.Object:runtime_invoke_virtual_void__this__ <0x0008c>
=================================================================
Aborted
mhanor commented 2 years ago

I'm seeing the same SIGABRT when selecting the text GNU in /bin/bash, on Debian Bookwork, while using bless. bless_SIGABRT.txt