Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2007 13:34:30 -0700
From:      Ted Faber <faber@ISI.EDU>
To:        current@freebsd.org
Subject:   glibmm exceptions broken after recent upgrades on CURRENT (debug info included)
Message-ID:  <20070531203430.GC1373@hut.isi.edu>

next in thread | raw e-mail | index | archive | help

--V4b9U9vrdWczvw78
Content-Type: multipart/mixed; boundary="xA/XKXTdy9G3iaIz"
Content-Disposition: inline


--xA/XKXTdy9G3iaIz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I've got a bit of code that uses glibmm (and glib) to do UTF8
formatting.  It seems to have broken after the big compiler/X upgrade.
When Glib::locale_to_utf8 fails, the Glib::ConvertError exception never
seems to find its way to my handler and aborts instead.  The handlers
used to be invoked.

I've attached a short example that exhibits the problem and a dump of
the stack trace from gdb.  All this is a pretty recent -CURRENT and new
ports.  The compilation line is:

g++ `pkg-config --cflags --libs glibmm-2.4` fail.cc

Any insight or redirection toward insight would be great.  I'm happy to
provide any additional debugging information.


--=20
Ted Faber
http://www.isi.edu/~faber           PGP: http://www.isi.edu/~faber/pubkeys.=
asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#=
SIG

--xA/XKXTdy9G3iaIz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=st

(gdb) where
#0  0x4846e547 in kill () from /lib/libc.so.7
#1  0x4846e4e6 in raise () from /lib/libc.so.7
#2  0x4846d02a in abort () from /lib/libc.so.7
#3  0x4810d03a in uw_init_context_1 () from /usr/X11R6/lib/libsigc-2.0.so.0
#4  0x4810d21d in _Unwind_RaiseException ()
   from /usr/X11R6/lib/libsigc-2.0.so.0
#5  0x482f9f1d in __cxa_throw () from /usr/lib/libstdc++.so.6
#6  0x480a3823 in Glib::ConvertError::throw_func ()
   from /usr/X11R6/lib/libglibmm-2.4.so.1
#7  0x480b0366 in Glib::Error::throw_exception ()
   from /usr/X11R6/lib/libglibmm-2.4.so.1
#8  0x480a45e4 in Glib::locale_to_utf8 ()
   from /usr/X11R6/lib/libglibmm-2.4.so.1
#9  0x08048fb6 in main () at fail.cc:20

--xA/XKXTdy9G3iaIz--

--V4b9U9vrdWczvw78
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFGXzFWaUz3f+Zf+XsRAmuuAJ9+DwsnXZdiDfcahXZA0MXG2dLo5ACfYdiZ
u1j5qA+vAHmvC+uIjGeLeV8=
=BN70
-----END PGP SIGNATURE-----

--V4b9U9vrdWczvw78--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070531203430.GC1373>