From owner-freebsd-ports@FreeBSD.ORG Wed Feb 5 21:01:21 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B1DA746A; Wed, 5 Feb 2014 21:01:21 +0000 (UTC) Received: from amailer.gwdg.de (amailer.gwdg.de [134.76.10.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7355118F6; Wed, 5 Feb 2014 21:01:21 +0000 (UTC) Received: from p5b159215.dip0.t-ipconnect.de ([91.21.146.21] helo=krabat.raven.hur) by mailer.gwdg.de with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1WB9ax-0000dv-KU; Wed, 05 Feb 2014 22:01:19 +0100 Message-ID: <52F2A69F.80702@gwdg.de> Date: Wed, 05 Feb 2014 22:01:19 +0100 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Matthias Andree , freebsd-ports@freebsd.org Subject: Re: graphics/rawtherapee: r342622 crashes on HEAD References: <52F2952E.3090509@gwdg.de> <52F2991E.4080304@FreeBSD.org> In-Reply-To: <52F2991E.4080304@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Feb 2014 21:01:21 -0000 Hi Matthias, thanks for answering. Am 05.02.2014 21:03, schrieb Matthias Andree: > Am 05.02.2014 20:46, schrieb Rainer Hurling: >> Many thanks for the update of graphics/rawtherapee, r342622. This >> program is really important for photographers. >> >> It builds and installs just fine on recent HEAD amd64, but unfortunately >> it crashes immediately, when started. > > Rainer, > > I don't see the crash on FreeBSD 10.0-RELEASE amd64 and 9.2-RELEASE > amd64 - those are versions I tried and where I could successfully open a > Sony ARW file and click a few UI items. Note sure what 11 changed that > it would break. > >> I tried to build rawtherapee and some of its dependencies with >> WITH_DEBUG=yes and then to have a look with gdb, but with only little >> luck. Obviously there is a problem with DWARF(?) and many libs without >> debug symbols? > > It's rather that the base /usr/bin/gdb cannot deal with the newer debug > symbol formats... > >> # gdb rawtherapee >> [..SNIP..] >> This GDB was configured as "amd64-marcel-freebsd"...Dwarf Error: wrong >> version in compilation unit header (is 4, should be 2) [in module >> /usr/local/bin/rawtherapee] >> [..SNIP..] > > ...do you have more luck with gdb built from the ports collection > (devel/gdb), which is version 7.6.2, as opposed to the base system gdb > 6.1.1? Okay, here it comes. RawTherapee from before, with newer gdb: #gdb762 rawtherapee GNU gdb (GDB) 7.6.2 [GDB v7.6.2 for FreeBSD] Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-portbld-freebsd11.0". For bug reporting instructions, please see: ... Reading symbols from /usr/local/bin/rawtherapee...done. (gdb) r Starting program: /usr/local/bin/rawtherapee [New LWP 100312] [New Thread 4ec06400 (LWP 100312)] Terminating due to uncaught exception 0x4fe78700 of type Glib::ConvertError Program received signal SIGABRT, Aborted. [Switching to Thread 4ec06400 (LWP 100312)] 0x0000000048b847ba in thr_kill () from /lib/libc.so.7 (gdb) bt full #0 0x0000000048b847ba in thr_kill () from /lib/libc.so.7 No symbol table info available. #1 0x0000000048c3b029 in abort () from /lib/libc.so.7 No symbol table info available. #2 0x00000000484d37da in ?? () from /lib/libcxxrt.so.1 No symbol table info available. #3 0x00000000423aa8f8 in Glib::ConvertError::throw_func(_GError*) () from /usr/local/lib/libglibmm-2.4.so.1 No symbol table info available. #4 0x00000000423baa0f in Glib::Error::throw_exception(_GError*) () from /usr/local/lib/libglibmm-2.4.so.1 No symbol table info available. #5 0x00000000423c60b4 in Glib::operator<<(std::__1::basic_ostream >&, Glib::ustring const&) () from /usr/local/lib/libglibmm-2.4.so.1 No symbol table info available. #6 0x000000000064fce7 in Glib::ustring::FormatStream::stream (this=0x7fffffffbae0, value=...) at /usr/local/include/glibmm-2.4/glibmm/ustring.h:1057 No locals. #7 0x000000000064f765 in Glib::ustring::format (a1=..., a2=...) at /usr/local/include/glibmm-2.4/glibmm/ustring.h:1145 buf = {stream_ = { >> = { >> = { = {}, __tie_ = 0x0, __fill_ = -1}, _vptr.basic_ostream = 0xf853b8 , std::__1::allocator >+24>}, __sb_ = { >> = { _vptr.basic_streambuf = 0xf85490 , std::__1::allocator >+16>, __loc_ = {static none = 0, static collate = 1, static ctype = 2, static monetary = 8, static numeric = 16, static time = 32, static messages = 4, static all = 63, __locale_ = 0x484c0ee0}, __binp_ = 0x0, __ninp_ = 0x0, __einp_ = 0x0, __bout_ = 0x7fffffffbb2c L"", __nout_ = 0x7fffffffbb2c L"", __eout_ = 0x7fffffffbb3c L""}, __str_ = {> = {}, __r_ = {, std::__1::allocator >::__rep, std::__1::allocator, 2u>> = {> = {}, __first_ = {{__l = {__cap_ = 8, __size_ = 0, __data_ = 0x0}, __s = {{__size_ = 8 '\b', __lx = 8 L'\b\000\000\000'}, __data_ = L'\000' }, __r = {__words = {8, 0, 0}}}}}, }, static npos = 18446744073709551615}, __hm_ = 0x7fffffffbb2c L"", __mode_ = 16}}} #8 0x000000000064c798 in RTImage::setPaths (opt=...) at /usr/ports/graphics/rawtherapee/work/rawtherapee-4.0.12/rtgui/rtimage.cc:101 configFilename = {static npos = 18446744073709551615, string_ = {> = {}, __r_ = {, std::__1::allocator >::__rep, std::__1::allocator, 2u>> = {> = {}, __first_ = {{__l = {__cap_ = 0, __size_ = 0, __data_ = 0x0}, __s = {{__size_ = 0 '\000', __lx = 0 '\000'}, __data_ = '\000' }, __r = {__words = {0, 0, 0}}}}}, }, static npos = 18446744073709551615}} keyFile = { = {gobject_ = 0x4ec15d80, owns_gobject_ = true}, } hasKeyFile = true #9 0x0000000000696aaf in main (argc=1, argv=0x7fffffffd6d0) at /usr/ports/graphics/rawtherapee/work/rawtherapee-4.0.12/rtgui/main.cc:239 m = icon_path = {static npos = 18446744073709551615, string_ = {> = {}, __r_ = {, std::__1::allocator >::__rep, std::__1::allocator, 2u>> = {> = {}, __first_ = {{__l = {__cap_ = 49, __size_ = 35, __data_ = 0x4fe3d220 "/usr/local/share/rawtherapee/images"}, __s = {{__size_ = 49 '1', __lx = 49 '1'}, __data_ = "\000\000\000\000\000\000\000#\000\000\000\000\000\000\000 \322\343O\000\000\000"}, __r = {__words = {49, 35, 1340330528}}}}}, }, static npos = 18446744073709551615}} rtWindow = 0x1 defaultIconTheme = {pCppObject_ = 0x4fde90a0} settings = {pCppObject_ = 0x0} > > Also, if you recompile rawtherapee without the highly aggressive > compiler flags, does that help? This version was compiled without the option OPTIMIZED_CFLAGS. Is this enough? Rainer > > I saw warnings about undefined behaviour in aggressive loop > optimization, not sure if those are the culprit. If they are, we might > need to tune down optimization a bit. > > Thanks. > > Cheers, > Matthias