On Sat, Jun 18, 2022 at 11:18 AM Abel Abraham Camarillo Ojeda <
[email protected]> wrote:

>
>
> On Sat, Jun 18, 2022 at 11:02 AM Abel Abraham Camarillo Ojeda <
> [email protected]> wrote:
>
>> On Sat, Jun 18, 2022 at 11:01 AM Abel Abraham Camarillo Ojeda <
>> [email protected]> 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?
>

Now from debug package:

(gdb) run .
Starting program: /usr/local/bin/rawtherapee .

(rawtherapee:22771): Gtk-CRITICAL **: 12:33:49.390:
gtk_box_gadget_distribute: assertion 'size >= 0' failed in
gtkmm__GtkNotebook
rawtherapee(22771) in free(): chunk is already free 0x55ff37ad40
[New thread 204100]
[New thread 147617]
[New thread 269746]
[New thread 338871]
[New thread 529641]

Thread 2 received signal SIGABRT, Aborted.
[Switching to thread 204100]
thrkill () at /tmp/-:3
3       /tmp/-: No such file or directory.
(gdb) bt
#0  thrkill () at /tmp/-:3
#1  0x000000553ab1e7ce in _libc_abort () at
/usr/src/lib/libc/stdlib/abort.c:51
#2  0x000000553ab08907 in wrterror (d=0x551ef01a20, msg=0x553aaa1ee6 "chunk
is already free %p") at /usr/src/lib/libc/stdlib/malloc.c:321
#3  0x000000553ab09eb7 in find_chunknum (d=0x551ef01a20, info=0x55ff3aaea0,
check=<error reading variable: Cannot access memory at address 0x0>,
    ptr=<optimized out>) at /usr/src/lib/libc/stdlib/malloc.c:1153
#4  free_bytes (d=0x551ef01a20, r=<optimized out>, ptr=<optimized out>) at
/usr/src/lib/libc/stdlib/malloc.c:1173
#5  ofree (argpool=0x559a71f5a0, p=0x0, clear=<optimized out>,
check=<optimized out>, argsz=<optimized out>)
    at /usr/src/lib/libc/stdlib/malloc.c:1552
#6  0x000000553ab094a3 in free (ptr=0x55ff359b40) at
/usr/src/lib/libc/stdlib/malloc.c:1581
#7  0x000000553ab4336a in _libc_setlocale (category=4, locname=0x53109bf7fb
"C") at /usr/src/lib/libc/locale/setlocale.c:177
#8  0x0000005310b44f05 in CacheImageData::load (this=0x559a71f6f8,
fname=...)
    at
/usr/ports/pobj/rawtherapee-5.8/rawtherapee-5.8/rtgui/cacheimagedata.cc:68
#9  0x0000005310b482bb in CacheManager::getEntry (this=0x5311318788
<CacheManager::getInstance()::instance>, fname=...)
    at
/usr/ports/pobj/rawtherapee-5.8/rawtherapee-5.8/rtgui/cachemanager.cc:106
#10 0x0000005310d86eb6 in PreviewLoader::Impl::processNextJob
(this=0x55b85a0d80)
    at
/usr/ports/pobj/rawtherapee-5.8/rawtherapee-5.8/rtgui/previewloader.cc:130
#11 0x00000055d919b5a2 in (anonymous
namespace)::call_thread_entry_slot(void*, void*) () from
/usr/local/lib/libglibmm-2.4.so.15.4
#12 0x00000055795d6c69 in g_thread_pool_thread_proxy () from
/usr/local/lib/libglib-2.0.so.4201.8
#13 0x00000055795d5715 in g_thread_proxy () from
/usr/local/lib/libglib-2.0.so.4201.8
#14 0x0000005559d03f01 in _rthread_start (v=<optimized out>) at
/usr/src/lib/librthread/rthread.c:96
#15 0x000000553ab1daea in __tfork_thread () at
/usr/src/lib/libc/arch/amd64/sys/tfork_thread.S:84
(gdb)

Reply via email to