From owner-freebsd-ports@FreeBSD.ORG Sun Feb 9 22:32:34 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 229ADBC5; Sun, 9 Feb 2014 22:32:34 +0000 (UTC) Received: from mail-wg0-x22d.google.com (mail-wg0-x22d.google.com [IPv6:2a00:1450:400c:c00::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7B09A1E0F; Sun, 9 Feb 2014 22:32:33 +0000 (UTC) Received: by mail-wg0-f45.google.com with SMTP id n12so3755564wgh.24 for ; Sun, 09 Feb 2014 14:32:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=Qli5F/bQizl3RcQEHoZWMIcuIPkfZB7zXA3L5z9VP9g=; b=Jusx0MNlF/4BRZEn1gktVs/OtlpiecE1qoI5qt5cYIfziZZVZ9k5NVSudzZX6cC59W T1HOCeQbzFODd4iPYQsjw1QpH7KVuDuAHteTzuCWARr8d110iPVPrCXRTJXfiZgBKR6G OBjmPVUJHcGcycS+c7PFn1UucBbBFbyqRh3SClAaYyelXX6O07KR7chIA1tZjO/p01RO pzI11hFHWuPjBpDWEEx6CHg2zBkreLOFddXPuF6UaUU69vefS+td7avyeG4RXxIRf2Mv zuv1oammi4vd99uHN0VPIjgRZy6DxM1d/ouuAxi916BgEF/h9U4D/Usodl4/WITX7Er6 DcPQ== X-Received: by 10.194.190.8 with SMTP id gm8mr8954428wjc.36.1391985151650; Sun, 09 Feb 2014 14:32:31 -0800 (PST) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPSA id pm2sm32873121wic.0.2014.02.09.14.32.30 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 09 Feb 2014 14:32:30 -0800 (PST) Sender: Baptiste Daroussin Date: Sun, 9 Feb 2014 23:32:28 +0100 From: Baptiste Daroussin To: Waitman Gobble Subject: Re: graphics/rawtherapee: r342622 crashes on HEAD Message-ID: <20140209223228.GR80056@ithaqua.etoilebsd.net> References: <706bd12f0dfa77b042ec36685b08c572.squirrel@mx.waitman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="soWJpSPh+l8Y6Fy7" Content-Disposition: inline In-Reply-To: <706bd12f0dfa77b042ec36685b08c572.squirrel@mx.waitman.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: ports-list freebsd , Matthias Andree 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: Sun, 09 Feb 2014 22:32:34 -0000 --soWJpSPh+l8Y6Fy7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 09, 2014 at 06:30:02AM -0800, Waitman Gobble wrote: >=20 >=20 > On Sun, February 9, 2014 4:54 am, Waitman Gobble wrote: > > >=20 > > On Wed, February 5, 2014 10:03 pm, Rainer Hurling wrote: > > > >> Am 05.02.2014 22:20 (UTC+1) schrieb Baptiste Daroussin: > >> > >> > >>> On Wed, Feb 05, 2014 at 09:19:51PM +0100, Matthias Andree wrote: > >>> > >>> > >>>> Am 05.02.2014 21:08, schrieb Dimitry Andric: > >>>> > >>>> > >>>> > >>>>>> #17 0x00000000484c0ee0 in std::__1::locale::id::__next_id () > >>>>>> from /usr/local/lib/libc++.so.1 > >>>>>> > >>>>>> > >>>>> > >>>>> Hmm, is this a ports version of libc++? I was not aware Baptiste > >>>>> had already committed this? :) > >>>> > >>>> Yes, it is (as a build requisite, but apparently remained installed > >>>> on the destination machine), because we need to match the > >>>> libraries that the requisites use (Glibmm for one). > >>>> > >>>> I have given up on compiling RawTherapee with clang++ for now, and > >>>> use GCC 4.8 on all systems. RawTherapee is somewhat demanding, > >>>> especially at higher optimization level, and kills the 10.0-RELEASE > >>>> base clang and Port GCC 4.6 and 4.7, all with internal compiler > >>>> errors. Since GCC 4.8 worked for me, I did not bother to send > >>>> Gerald > >>>> the details. > >>>> > >>>> We may want to retry with clang if we've got the next clang > >>>> version. Feel free to use Rawtherapee as compiler system test ;) > >>>> > >>>> > >>>> > >>> > >>> try with something like this in libmap.conf libc++.so.1 > >>> /usr/local/lib/libc++.so.1 > >>> If that fixes the problem, then a rpath with /usr/local/lib should be > >>> set while building the port > >> > >> Hmm, I am not very familiar with libmapping. After adding it to > >> /etc/libmap.conf I get > >> > >> > >> > >> #rawtherapee > >> Shared object "/usr/local/lib/libc++.so.1" not found, required by > >> "rawtherapee" > >> > >> > >> > >> Thanks for the tip, > >> Rainer > >> > >> > >> > >>> > >>> regards, Bapt > >>> > >>> > >> _______________________________________________ > >> freebsd-ports@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-ports > >> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.or= g" > >> > >> > >> > > > > > > Here are a few points regarding rawtherapee on 11.0-CURRENT. > > > > > > 1) it builds fine using clang (removing all the gcc4.8 from makefile). > > but still crashes the same. > > > > 2) the parse errors such as > > /usr/local/share/rawtherapee/themes/25-Gray-Gray.gtkrc:96: error: > > unexpected identifier `colorize_scrollbar', expected character `}' > > > > can be eliminated by installing ports/x11-themes/clearlooks-phenix-them= e, > > this is the clearlooks theme ported to gtk3 > > > > 3) I believe i'be narrowed the crash down to Glib::ustring::format. I've > > experimented with various examples and they all crash. Currently explor= ing > > this problem to see what's up.. anyone have some clue? > > > > here is a sample: > > > > #include > > #include > > #include > > > > > > int main() { > > > > double value =3D 22.0 / 7.0; std::cout << value << std::endl; > > Glib::ustring test =3D > > Glib::ustring::format(std::fixed,std::setprecision(2),value); > > std::cout << test << std::endl; > > > > > > } > > > > > > > > $ clang++ -o testglib `pkg-config --cflags --libs glibmm-2.4` > > testglib.cpp $ ./testglib > > 3.14286 > > Abort trap (core dumped) > > > > > > > > $ /usr/local/bin/gdb testglib > > 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 copyi= ng" > > 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/home/waitman/testglib...done. > > (gdb) run > > Starting program: /usr/home/waitman/testglib > > [New LWP 100327] > > 3.14286 > > [New Thread 803006400 (LWP 100327)] > > > > > > Program received signal SIGABRT, Aborted. > > [Switching to Thread 803006400 (LWP 100327)] > > 0x0000000801e313ba in kill () from /lib/libc.so.7 > > (gdb) bt > > #0 0x0000000801e313ba in kill () from /lib/libc.so.7 > > #1 0x0000000801e30069 in abort () from /lib/libc.so.7 > > #2 0x00000008016ce7da in ?? () from /lib/libcxxrt.so.1 > > #3 0x000000080085de68 in Glib::ConvertError::throw_func(_GError*) () > > from /usr/local/lib/libglibmm-2.4.so.1 #4 0x000000080086ed2f in > > Glib::Error::throw_exception(_GError*) () > > from /usr/local/lib/libglibmm-2.4.so.1 #5 0x000000080087bcc2 in > > Glib::ustring::FormatStream::to_string() const () > > from /usr/local/lib/libglibmm-2.4.so.1 #6 0x0000000000401de0 in > > Glib::ustring::format > (std::__1::ios_base&), std::__1::__iom_t5, double>(std::__1::ios_base& ( > > const&)(std::__1::ios_base&), std::__1::__iom_t5 const&, double const&)= ( > > a1=3D 0x401e50: {std::__1::ios_base &(std::__1::ios_base &)} 0x401e50 > > , a2=3D..., a3=3D 0x7fffffffd860: > > 3.1428571428571428) > > at /usr/local/include/glibmm-2.4/glibmm/ustring.h:1158 #7 > > 0x0000000000401696 in main () at testglib.cpp:9 > > (gdb) > > > > > > > > > > $ uname -a > > FreeBSD akira.waitman.net 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r261643: > > Sat Feb 8 22:11:05 PST 2014 > > root akira waitman net:/usr/obj/usr/src/sys/AKIRA amd64 > > > > $ ldd testglib > > testglib: > > libglibmm-2.4.so.1 =3D> /usr/local/lib/libglibmm-2.4.so.1 (0x80081e000) > > libgobject-2.0.so.0 =3D> /usr/local/lib/libgobject-2.0.so.0 (0x800a9d00= 0) > > libglib-2.0.so.0 =3D> /usr/local/lib/libglib-2.0.so.0 (0x800cea000) > > libintl.so.9 =3D> /usr/local/lib/libintl.so.9 (0x800ff2000) libsigc-2.0= =2Eso.0 > > =3D> /usr/local/lib/libsigc-2.0.so.0 (0x8011fb000) > > libc++.so.1 =3D> /usr/lib/libc++.so.1 (0x801400000) libcxxrt.so.1 =3D> > > /lib/libcxxrt.so.1 (0x8016be000) > > libm.so.5 =3D> /lib/libm.so.5 (0x8018d8000) libgcc_s.so.1 =3D> > > /lib/libgcc_s.so.1 (0x801b00000) > > libc.so.7 =3D> /lib/libc.so.7 (0x801d0d000) libffi.so.6 =3D> > > /usr/local/lib/libffi.so.6 (0x80208a000) > > libgmodule-2.0.so.0 =3D> /usr/local/lib/libgmodule-2.0.so.0 (0x80229100= 0) > > libpcre.so.3 =3D> /usr/local/lib/libpcre.so.3 (0x802494000) libthr.so.3= =3D> > > /lib/libthr.so.3 (0x8026fb000) > > > > > > > > Thank you, > > > > > > > > > > -- > > Waitman Gobble > > San Jose California USA > > +1.510-830-7975 > > _______________________________________________ > > freebsd-ports@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > > > > >=20 > update, if i wrap the segfaulting 101 line in a try block, in rtimage.cc > (which has the format code that bombs out), i get a Glib::Error::what() of >=20 > "Conversion from character set 'UTF-8' to 'WCHAR_T'" >=20 > so I think this is a hint about the culprit.. >=20 > ideas? >=20 > --=20 > Waitman Gobble > San Jose California USA > +1.510-830-7975 >=20 >=20 > --=20 > Waitman Gobble > San Jose California USA > (510) 830-7975 > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" Sounds like base iconv ;) regards, Bapt --soWJpSPh+l8Y6Fy7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (FreeBSD) iEYEARECAAYFAlL4AfwACgkQ8kTtMUmk6EzJxgCfZ09jFwgePhKPTd/OiU9lE2OD BtkAoLx9C3vYJt4r+xquI+bbih2fwVlR =hiyr -----END PGP SIGNATURE----- --soWJpSPh+l8Y6Fy7--