Pinta crashes with ubuntu 20.04

Bug #1892567 reported by Vincent DESOUTTER
This bug report is a duplicate of:  Bug #1877235: Pinta crashes due to a bug in Mono. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
New
Undecided
Unassigned

Bug Description

Hello,

When lauching pinta and trying to select a part of an image, pinta crsahes:

Here is the stacktrace:

free(): invalid pointer

=================================================================
 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:
=================================================================
 0x56127390feb5 - /usr/bin/mono : (null)
 0x561273910250 - /usr/bin/mono : (null)
 0x5612738bd129 - /usr/bin/mono : (null)
 0x56127390f467 - /usr/bin/mono : (null)
 0x7fab8345e3c0 - /lib/x86_64-linux-gnu/libpthread.so.0 : (null)
 0x7fab8328218b - /lib/x86_64-linux-gnu/libc.so.6 : gsignal
 0x7fab83261859 - /lib/x86_64-linux-gnu/libc.so.6 : abort
 0x7fab832cc3ee - /lib/x86_64-linux-gnu/libc.so.6 : (null)
 0x7fab832d447c - /lib/x86_64-linux-gnu/libc.so.6 : (null)
 0x7fab832d5cac - /lib/x86_64-linux-gnu/libc.so.6 : (null)
 0x40eb7f33 - Unknown

=================================================================
 Telemetry Dumper:
=================================================================
Pkilling 0x7fab83237780 from 0x7fab822ff700
Entering thread summarizer pause from 0x7fab822ff700
Finished thread summarizer pause from 0x7fab822ff700.

Waiting for dumping threads to resume

=================================================================
 External Debugger Dump:
=================================================================
[New LWP 9065]
[New LWP 9066]
[New LWP 9067]
[New LWP 9068]
[New LWP 9074]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fab8335196f in __GI___poll (fds=0x5612760acd30, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
29 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
  Id Target Id Frame
* 1 Thread 0x7fab83237780 (LWP 9064) "mono" 0x00007fab8335196f in __GI___poll (fds=0x5612760acd30, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  2 Thread 0x7fab81bff700 (LWP 9065) "SGen worker" futex_wait_cancelable (private=<optimised out>, expected=0, futex_word=0x561273d01e08) at ../sysdeps/nptl/futex-internal.h:183
  3 Thread 0x7fab822ff700 (LWP 9066) "Finalizer" 0x00007fab83321c6f in __GI___wait4 (pid=9090, stat_loc=0x7fab822fd654, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
  4 Thread 0x7fab7d6ef700 (LWP 9067) "gmain" 0x00007fab8335196f in __GI___poll (fds=0x561275ebb110, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  5 Thread 0x7fab7ceee700 (LWP 9068) "gdbus" 0x00007fab8335196f in __GI___poll (fds=0x7fab74006590, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  6 Thread 0x7fab668cf700 (LWP 9074) "pool-Pinta" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38

Thread 6 (Thread 0x7fab668cf700 (LWP 9074)):
#0 syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1 0x00007fab7e6365a6 in g_cond_wait_until () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007fab7e5b9561 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007fab7e5b9b86 in g_async_queue_timeout_pop () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007fab7e613279 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007fab7e612931 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6 0x00007fab83452609 in start_thread (arg=<optimised out>) at pthread_create.c:477
#7 0x00007fab8335e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fab7ceee700 (LWP 9068)):
#0 0x00007fab8335196f in __GI___poll (fds=0x7fab74006590, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007fab7e5e91ae in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007fab7e5e9533 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007fab7e8a6eda in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#4 0x00007fab7e612931 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007fab83452609 in start_thread (arg=<optimised out>) at pthread_create.c:477
#6 0x00007fab8335e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fab7d6ef700 (LWP 9067)):
#0 0x00007fab8335196f in __GI___poll (fds=0x561275ebb110, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007fab7e5e91ae in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007fab7e5e92e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007fab7e5e9331 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007fab7e612931 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007fab83452609 in start_thread (arg=<optimised out>) at pthread_create.c:477
#6 0x00007fab8335e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fab822ff700 (LWP 9066)):
#0 0x00007fab83321c6f in __GI___wait4 (pid=9090, stat_loc=0x7fab822fd654, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
#1 0x00005612739100bf in ?? ()
#2 0x0000561273910250 in ?? ()
#3 0x00005612738bd129 in ?? ()
#4 0x000056127390f467 in ?? ()
#5 <signal handler called>
#6 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#7 0x00007fab83261859 in __GI_abort () at abort.c:79
#8 0x00007fab832cc3ee in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fab833f6285 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#9 0x00007fab832d447c in malloc_printerr (str=str@entry=0x7fab833f44ae "free(): invalid pointer") at malloc.c:5347
#10 0x00007fab832d5cac in _int_free (av=<optimised out>, p=<optimised out>, have_lock=0) at malloc.c:4173
#11 0x0000000040eb7f33 in ?? ()
#12 0x0000561276418930 in ?? ()
#13 0x00007fab822feca0 in ?? ()
#14 0x0000561275ba1460 in ?? ()
#15 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fab81bff700 (LWP 9065)):
#0 futex_wait_cancelable (private=<optimised out>, expected=0, futex_word=0x561273d01e08) at ../sysdeps/nptl/futex-internal.h:183
#1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x561273d01e20, cond=0x561273d01de0) at pthread_cond_wait.c:508
#2 __pthread_cond_wait (cond=0x561273d01de0, mutex=0x561273d01e20) at pthread_cond_wait.c:638
#3 0x0000561273b64dc6 in ?? ()
#4 0x00007fab83452609 in start_thread (arg=<optimised out>) at pthread_create.c:477
#5 0x00007fab8335e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fab83237780 (LWP 9064)):
#0 0x00007fab8335196f in __GI___poll (fds=0x5612760acd30, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007fab7e5e91ae in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007fab7e5e9533 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007fab7ee31092 in gtk_main () from /lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#4 0x0000000040e93880 in ?? ()
#5 0x0000561275bf2810 in ?? ()
#6 0x0000561275ba5418 in ?? ()
#7 0x00007fab81c00aa8 in ?? ()
#8 0x00007fab81c03c30 in ?? ()
#9 0x00007fab81c03c80 in ?? ()
#10 0x0000561275bbd780 in ?? ()
#11 0x00007ffeb5315d40 in ?? ()
#12 0x00007ffeb5315be0 in ?? ()
#13 0x0000000000000000 in ?? ()
[Inferior 1 (process 9064) detached]

=================================================================
 Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x7fab8328218b):0x7fab8328217b d2 4c 89 ce bf 02 00 00 00 b8 0e 00 00 00 0f 05 .L..............
0x7fab8328218b 48 8b 84 24 08 01 00 00 64 48 33 04 25 28 00 00 H..$....dH3.%(..
0x7fab8328219b 00 75 26 44 89 c0 48 81 c4 18 01 00 00 c3 0f 1f .u&D..H.........
0x7fab832821ab 80 00 00 00 00 48 8b 15 b9 4c 1a 00 f7 d8 41 b8 .....H...L....A.

=================================================================
 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 (core dumped)

I am selecting a part of an image that I want to split.

Rgds
Vincent

Revision history for this message
grofaty (grofaty) wrote :

1. What is your Pinta version? In Pinta menu Help | About.

2. How did you install Pinta?
a) Ubuntu repository
b) Pinta's stable PPA
c) Pinta's daily PPA
d) Pinta snap package
e) Pinta flatpack package
f) compiled from source
e) something else?

3. What is your Mono version?
From terminal: mono --version

4. Please provide exact step-by-step instructions how to reproduce a problem.

Recommendations:
1. If your Pinta version is 1.6, you are using 5 years old version that is pretty buggy and crashy and no longer supported by Pinta maintainers. Many crash like bugs fixed in Pinta 1.7. Please upgrade to Pinta 1.7. See: https://www.pinta-project.com/releases/
2. If you installed Pinta 1.7 from stable/daily Ubuntu PPA, then please make sure you have also installed Mono 6.10 from Mono Stable PPA: https://www.mono-project.com/download/stable/
3. I am using Pinta 1.7 on Ubuntu 20.04 without any problem. I am using snap version of Pinta where everything is packaged inside snap package that behaves like sandbox where every software, library etc. Pinta requires is already packaged inside snap sandbox:
Install: sudo snap install pinta-james-carroll
Run: pinta-james-carroll.pinta

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.