Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 2006 02:02:15 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Roman Bogorodskiy <novel@freebsd.org>
Cc:        gnome@freebsd.org
Subject:   Re: problems with dbus 0.62
Message-ID:  <1156485735.27932.33.camel@shumai.marcuscom.com>
In-Reply-To: <20060820213735.GB1227@underworld.novel.ru>
References:  <20060820213735.GB1227@underworld.novel.ru>

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

--=-bi/jl26XGm0DcvGqTHL3
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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 dbus=
-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) at =
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/lib=
gobject-2.0.so.0
> #3  0x0000000804ef48a3 in g_signal_emit () from /usr/local/lib/libgobject=
-2.0.so.0
> #4  0x000000000060373d in (anonymous namespace)::playlist_callback_trackl=
ist_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, mars=
hal_data=3D0x0) at bmp-marshalers.c:159
> #6  0x0000000804edee19 in g_closure_invoke () from /usr/local/lib/libgobj=
ect-2.0.so.0
> #7  0x0000000804ef3028 in g_signal_has_handler_pending () from /usr/local=
/lib/libgobject-2.0.so.0
> #8  0x0000000804ef44d3 in g_signal_emit_valist () from /usr/local/lib/lib=
gobject-2.0.so.0
> #9  0x0000000804ef48a3 in g_signal_emit () from /usr/local/lib/libgobject=
-2.0.so.0
> #10 0x00000000005b70ee in bmp_playlist_insert_items (playlist=3D0x806082d=
00, list=3D@0x7fffffffe1d0, index=3D40)
>     at playlist.cpp:507
> #11 0x0000000000603999 in bmp_system_control_add_uri_list (control=3D0x80=
6083940, 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 (playlist=
=3D0x806082d00) at playlist.cpp:113
> #13 0x00000000005b792e in bmp_playlist_load_playlist (playlist=3D0x806082=
d00) at playlist.cpp:635
> #14 0x0000000000576038 in main (argc=3D1, argv=3D0x7fffffffe540) at main.=
cpp:660
> (gdb)
>=20
> However, this behaviour cannot be reproduced on linux systems with the sa=
me dbus version.
>=20
> Some details:
>=20
> I'm running -CURRENT (two weeks old or so), FreeBSD/amd64, /etc/malloc.co=
nf -> aj (I have
> exactly the same with /etc/malloc.conf -> AJ). As for bmpx, you could dow=
nload it here:
> http://files.beep-media-player.org/releases/0.21/bmpx-0.21.0.tar.bz2. It =
builds fine on
> FreeBSD so it would not be much problem to compile it.

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.

Try changing line 1312 to:

g_signal_emit (G_OBJECT (control), signals[BMP_SYSTEM_CONTROL_SIGNAL_TRACKL=
IST_ITEMS_ADDED], 0, added_rows, n_added_rows);

And see if that helps.

Joe

>=20
> PS Please CC.
>=20
> Roman Bogorodskiy
--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-bi/jl26XGm0DcvGqTHL3
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

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

iD8DBQBE7pJnb2iPiv4Uz4cRAsWtAJ9fTJ5rd5N3Ctad+69CZ4F8mR8pmwCfeEZu
8a69DvrVDxSE8Tp9vrXnq9M=
=Cjxb
-----END PGP SIGNATURE-----

--=-bi/jl26XGm0DcvGqTHL3--




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