From owner-freebsd-gnome@FreeBSD.ORG Fri Aug 25 18:04:36 2006 Return-Path: X-Original-To: gnome@freebsd.org Delivered-To: freebsd-gnome@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39A7816A4DA for ; Fri, 25 Aug 2006 18:04:36 +0000 (UTC) (envelope-from novel@smtp.hispeed.ch) Received: from smtp.hispeed.ch (mxout.hispeed.ch [62.2.95.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EAA443D67 for ; Fri, 25 Aug 2006 18:04:35 +0000 (GMT) (envelope-from novel@smtp.hispeed.ch) Received: from novel.fannet.ru (novel.fannet.ru [82.116.56.3]) (authenticated bits=0) by smtp.hispeed.ch (8.12.11.20060308/8.12.6/taifun-1.0) with ESMTP id k7PI4X6d021721; Fri, 25 Aug 2006 20:04:34 +0200 Date: Fri, 25 Aug 2006 22:02:18 +0400 From: Roman Bogorodskiy To: Joe Marcus Clarke Message-ID: <20060825180218.GA21165@novel.fannet.ru> References: <20060820213735.GB1227@underworld.novel.ru> <1156485735.27932.33.camel@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: <1156485735.27932.33.camel@shumai.marcuscom.com> X-PGP: http://people.freebsd.org/~novel/novel.key.asc X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on smtp-01.tornado.cablecom.ch X-Virus-Status: Clean X-DCC-spamcheck-01.tornado.cablecom.ch-Metrics: smtp-01.tornado.cablecom.ch 1377; Body=2 Fuz1=2 Fuz2=2 Cc: gnome@freebsd.org Subject: Re: problems with dbus 0.62 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 18:04:36 -0000 --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Joe Marcus Clarke wrote: > On Sun, 2006-08-20 at 21:37 +0000, Roman Bogorodskiy wrote: > > Hi, > >=20 > > I have a problem with porting bmpx 0.21.0. When I start it, a coredump > > occurs somewhere in dbus. Here's a backtrace: > >=20 > > Program received signal SIGSEGV, Segmentation fault. > > [Switching to Thread 0x805e50400 (LWP 100141)] > > 0x0000000802525009 in array_copy (type=3D34458988128, src=3D0x50) at db= us-gvalue-utils.c:689 > > 689 dbus-gvalue-utils.c: No such file or directory. > > in dbus-gvalue-utils.c > > Current language: auto; currently c > > (gdb) bt > > #0 0x0000000802525009 in array_copy (type=3D34458988128, src=3D0x50) a= t dbus-gvalue-utils.c:689 > > #1 0x0000000802521750 in proxy_collect_value (value=3D0x7fffffffd8a8, = n_collect_values=3D1, collect_values=3D0x7fffffffd830, > > collect_flags=3D0) at dbus-gtype-specialized.c:158 > > #2 0x0000000804ef40fa in g_signal_emit_valist () from /usr/local/lib/l= ibgobject-2.0.so.0 > > #3 0x0000000804ef48a3 in g_signal_emit () from /usr/local/lib/libgobje= ct-2.0.so.0 > > #4 0x000000000060373d in (anonymous namespace)::playlist_callback_trac= klist_items_added (playlist=3D0x806082d00, > > added_rows=3D0x80608c300, n_added_rows=3D0, control=3D0x806083940) = at system_control.cpp:1312 > > #5 0x00000000006c437e in bmpx_VOID__POINTER_INT (closure=3D0x805e97030= , return_value=3D0x0, n_param_values=3D3, > > param_values=3D0x7fffffffded0, invocation_hint=3D0x7fffffffdd50, ma= rshal_data=3D0x0) at bmp-marshalers.c:159 > > #6 0x0000000804edee19 in g_closure_invoke () from /usr/local/lib/libgo= bject-2.0.so.0 > > #7 0x0000000804ef3028 in g_signal_has_handler_pending () from /usr/loc= al/lib/libgobject-2.0.so.0 > > #8 0x0000000804ef44d3 in g_signal_emit_valist () from /usr/local/lib/l= ibgobject-2.0.so.0 > > #9 0x0000000804ef48a3 in g_signal_emit () from /usr/local/lib/libgobje= ct-2.0.so.0 > > #10 0x00000000005b70ee in bmp_playlist_insert_items (playlist=3D0x80608= 2d00, list=3D@0x7fffffffe1d0, index=3D40) > > at playlist.cpp:507 > > #11 0x0000000000603999 in bmp_system_control_add_uri_list (control=3D0x= 806083940, strv=3D0x80609dbb0, position=3D-1, clear=3D0, > > start_playback=3D0, index=3D0, position_out=3D0x7fffffffe31c, error= =3D0x0) at system_control.cpp:1387 > > #12 0x00000000005b5774 in (anonymous namespace)::load_playlist (playlis= t=3D0x806082d00) at playlist.cpp:113 > > #13 0x00000000005b792e in bmp_playlist_load_playlist (playlist=3D0x8060= 82d00) at playlist.cpp:635 > > #14 0x0000000000576038 in main (argc=3D1, argv=3D0x7fffffffe540) at mai= n.cpp:660 > > (gdb) > >=20 > > However, this behaviour cannot be reproduced on linux systems with the = same dbus version. > >=20 > > Some details: > >=20 > > I'm running -CURRENT (two weeks old or so), FreeBSD/amd64, /etc/malloc.= conf -> aj (I have > > exactly the same with /etc/malloc.conf -> AJ). As for bmpx, you could d= ownload it here: > > http://files.beep-media-player.org/releases/0.21/bmpx-0.21.0.tar.bz2. I= t builds fine on > > FreeBSD so it would not be much problem to compile it. >=20 > Seems to me like a bug in bmpx at line 1312. At both lines 1181 and > 12000, the BMP_SYSTEM_CONTROL_SIGNAL_TRACKLIST_ITEMS_ADDED signal is > defined to pass two arguments: an integer array, and an integer. > However, at line 1312, the signal is emitted with no arguments. >=20 > Try changing line 1312 to: >=20 > g_signal_emit (G_OBJECT (control), signals[BMP_SYSTEM_CONTROL_SIGNAL_TRAC= KLIST_ITEMS_ADDED], 0, added_rows, n_added_rows); >=20 > And see if that helps. Yeah, it works! Thanks a lot! --T4sUOijqQbZv57TR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iQCVAwUBRO87KoB0WzgdqspGAQK3+gQAuVpfI3qUKErKQF+zFJLlAf/kIOAPFo98 qq8FBIwDvPgzPNTwAwVciZVhyLTS1dOe+rfxBDV7V9c0BClnQ9psWtGIFDkyfTXE ldgM5i2tIzqmOGGKxrgtspyDaTPdBiQpyEiQTVyle3ejpITZZmDbxYz7M9FbRrzQ jCh3fRusiZ0= =NBAP -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--