On Sat, Jun 18, 2022 at 11:02 AM Abel Abraham Camarillo Ojeda < acam...@verlet.org> wrote:
> On Sat, Jun 18, 2022 at 11:01 AM Abel Abraham Camarillo Ojeda < > acam...@verlet.org> wrote: > >> Hi ports, >> >> rawtherapee in snapshots fails for me reproducibly but only when not run >> from egdb... >> >> $ pkg_info rawtherapee >> Information for inst:rawtherapee-5.8p1 >> >> merced$ env time -l rawtherapee . >> >> (rawtherapee:71162): Gtk-CRITICAL **: 10:56:00.713: >> gtk_box_gadget_distribute: assertion 'size >= 0' failed in >> gtkmm__GtkNotebook >> >> (rawtherapee:71162): Gtk-CRITICAL **: 10:56:00.737: >> gtk_box_gadget_distribute: assertion 'size >= 0' failed in >> gtkmm__GtkNotebook >> rawtherapee(71162) in free(): chunk is already free 0x907fb48e800 >> Command terminated abnormally. >> 14.45 real 13.37 user 0.46 sys >> 178748 maximum resident set size >> 0 average shared memory size >> 0 average unshared data size >> 0 average unshared stack size >> 42647 minor page faults >> 0 major page faults >> 0 swaps >> 0 block input operations >> 41 block output operations >> 188 messages sent >> 218 messages received >> 0 signals received >> 443 voluntary context switches >> 20773 involuntary context switches >> Abort trap >> >> (the err msg is not always the same but always malloc related) >> >> Maybe egdb changes malloc options or something to be more lax? >> >> I'm a little rusty on ports reporting.... should I build >> debug-rawtherapee ? or maybe just alter some malloc opts via the env >> variable to equal something from egdb and call it a day? >> >> Thanks >> > > It only fails on a certain new pictures dir that I'm trying to work with, > I've been able to work with other picture directories > After more tries it fails in egdb also: (gdb) run . Starting program: /usr/local/bin/rawtherapee . rawtherapee(12921) in free(): bogus pointer (double free?) 0xdfdfdfdfdfdfdfdf [New thread 440689] [New thread 417734] [New thread 582322] [New thread 415105] [New thread 458460] Thread 2 received signal SIGABRT, Aborted. [Switching to thread 440689] thrkill () at /tmp/-:3 3 /tmp/-: No such file or directory. (gdb) bt #0 thrkill () at /tmp/-:3 #1 0x00000324aac887ce in _libc_abort () at /usr/src/lib/libc/stdlib/abort.c:51 #2 0x00000324aac72907 in wrterror (d=0x3244a8aba50, msg=0x324aac0a832 "bogus pointer (double free?) %p") at /usr/src/lib/libc/stdlib/malloc.c:321 #3 0x00000324aac769d6 in findpool (p=0x0, argpool=0x324aac459f8 <_thread_sys_sigprocmask+24>, foundpool=0x324a4c1a678, saved_function=0x324a4c1a680) at /usr/src/lib/libc/stdlib/malloc.c:1440 #4 0x00000324aac73521 in ofree (argpool=0x324a4c1a6e0, p=0xdfdfdfdfdfdfdfdf, clear=0, check=0, argsz=0) at /usr/src/lib/libc/stdlib/malloc.c:1454 #5 0x00000324aac734a3 in free (ptr=0xdfdfdfdfdfdfdfdf) at /usr/src/lib/libc/stdlib/malloc.c:1581 #6 0x00000324aacad855 in freegl (oldgl=0x32430ccbdc0) at /usr/src/lib/libc/locale/setlocale.c:32 #7 0x00000324aacad36a in _libc_setlocale (category=4, locname=0x322035807fb "C") at /usr/src/lib/libc/locale/setlocale.c:177 #8 0x0000032203705ee5 in CacheImageData::load(Glib::ustring const&) () #9 0x000003220370929b in CacheManager::getEntry(Glib::ustring const&) () #10 0x0000032203947e36 in PreviewLoader::Impl::processNextJob() () #11 0x000003244c38c5a2 in (anonymous namespace)::call_thread_entry_slot(void*, void*) () from /usr/local/lib/libglibmm-2.4.so.15.4 #12 0x00000324b960bc69 in g_thread_pool_thread_proxy () from /usr/local/lib/libglib-2.0.so.4201.8 #13 0x00000324b960a715 in g_thread_proxy () from /usr/local/lib/libglib-2.0.so.4201.8 #14 0x00000324cbebdf01 in _rthread_start (v=<optimized out>) at /usr/src/lib/librthread/rthread.c:96 #15 0x00000324aac87aea in __tfork_thread () at /usr/src/lib/libc/arch/amd64/sys/tfork_thread.S:84 (gdb) is this useful?