On Tue, Jun 28, 2022 at 11:40 AM Stefan Hagen <sh+openbsd-ports@codevoid.de>
wrote:
> Abel Abraham Camarillo Ojeda wrote (2022-06-20 08:24 CEST):
> > On Sun, Jun 19, 2022 at 5:09 AM Stefan Hagen <
> sh+openbsd-ports@codevoid.de>
> > wrote:
> >
> > > Abel Abraham Camarillo Ojeda wrote (2022-06-19 04:52 CEST):
> > > > On Sat, Jun 18, 2022 at 1:04 PM Omar Polo <op@openbsd.org> wrote:
> > > >
> > > > > Abel Abraham Camarillo Ojeda <acamari@verlet.org> wrote:
> > > > > > > #7 0x00000324aacad36a in _libc_setlocale (category=4,
> > > > > > > locname=0x322035807fb "C") at
> > > /usr/src/lib/libc/locale/setlocale.c:177
> > > > >
> > > > > this seems to be a known issue, see
> > > > > https://github.com/Beep6581/RawTherapee/issues/6452
> > > > >
> > > > > maybe you could try sdk@' diff (linked in the GH issue) and see
> if it
> > > > > fixes the issue for you :)
> > > > >
> > > > >
> > > > >
> > > > sadly I can still reproduce with this patch
> > > > https://codevoid.de/0/p/rawtherapee-rmlocale.diff
> > >
> > > I think you either didn't apply the patch correctly, or didn't install
> > > the fixed executable.
> > >
> > > My patch comments the setlocale call at:
> > >
> > > >
> > >
> /usr/ports/pobj/rawtherapee-5.8/rawtherapee-5.8/rtengine/procparams.cc:3732
> > >
> > > Maybe give it another shot and bump revision?
> > >
> > > Best Regards,
> > > Stefan
> > >
> >
> > You're right, I blindly ran
> >
> > $ make clean; make DEBUG="-g" repackage; make reinstall
> >
> > after applying the patch in /usr/ports/pobj/rawtherapee*, so the make
> clean
> > stage deleted the patched files, haha.
> >
> > I now applied the patch correctly, I can no longer reproduce the issue.
> >
> > upstream seems unresponsive about this, any chance of getting it on
> ports?
>
> The one that rips out all setlocale calls? No.
>
> Here is a better diff, which replaces the setlocale(3) calls with thread
> local (and therefore thread-safe) uselocale(3) calls.
>
> I'm still testing this, because it is not exactly the same as the original.
>
> If it improves the situation on OpenBSD, I'm not opposed to commit these
> patches. Please test and report back.
>
> Best Regards,
> Stefan
>
>
>
Hi,
I confirm that with the patch rawtherapee no longer crashes on the
directory I've observed the problems.
thank you Stefan
No comments:
Post a Comment