Re: [LAU] [Jack-Devel] jack2 turned verbose

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-user@...>
Date: Sunday, June 3, 2012 - 8:52 pm

On 06/01/2012 03:48 PM, David Adler wrote:

I've come a cross a jackdbus error which seems related. Basically
jackbus receives a SIGSEGV via the dbus-daemon on account of a bool
value not being 1 or 0.

The crude workaround below does nothing to explain the issue. Using a
struct in this instance is also not possible:

diff -Nurp jack-1.9.8.orig/dbus/jackdbus.c jack-1.9.8/dbus/jackdbus.c
--- jack-1.9.8.orig/dbus/jackdbus.c 2011-12-19 12:54:24.000000000 +0100
+++ jack-1.9.8/dbus/jackdbus.c 2012-06-03 22:06:16.148799580 +0200
@@ -418,6 +418,7 @@ jack_dbus_message_append_variant(
}

/* Append the supplied value. */
+ if (type == DBUS_TYPE_BOOLEAN) *arg = (message_arg_t) ((int*)arg>0);
if (!dbus_message_iter_append_basic (&sub_iter, type, (const void
*) arg))
{
dbus_message_iter_close_container (iter, &sub_iter);

Where arg is a pointer to (dbus/jackdbus.h)
typedef union
{
unsigned char byte;
dbus_bool_t boolean;
dbus_int16_t int16;
dbus_uint16_t uint16;
dbus_int32_t int32;
dbus_uint32_t uint32;
dbus_int64_t int64;
dbus_uint64_t uint64;
double doubl;
const char *string;
} message_arg_t;

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] jack2 turned verbose, David Adler, (Tue May 29, 7:06 am)
Re: [LAU] jack2 turned verbose, mark hadman, (Wed May 30, 11:01 pm)
Re: [LAU] jack2 turned verbose, David Adler, (Wed May 30, 11:58 pm)
Re: [LAU] jack2 turned verbose, Robin Gareus, (Fri Jun 1, 12:52 pm)
Re: [LAU] [Jack-Devel] jack2 turned verbose, David Adler, (Fri Jun 1, 1:49 pm)
Re: [LAU] [Jack-Devel] jack2 turned verbose, Brendan Jones, (Sun Jun 3, 8:52 pm)
Re: [LAU] [Jack-Devel] jack2 turned verbose, Brendan Jones, (Sun Jun 3, 10:55 pm)
Re: [LAU] [Jack-Devel] jack2 turned verbose, Brendan Jones, (Sun Jun 3, 10:14 pm)
Re: [LAU] [Jack-Devel] jack2 turned verbose, David Adler, (Fri Jun 1, 2:30 pm)
Re: [LAU] [Jack-Devel] jack2 turned verbose, Robin Gareus, (Fri Jun 1, 1:59 pm)
Re: [LAU] [Jack-Devel] jack2 turned verbose, Brendan Jones, (Mon Jun 4, 8:06 pm)
Re: [LAU] [Jack-Devel] jack2 turned verbose, Kaspar Bumke, (Sat Jun 23, 8:58 pm)
Re: [LAU] [Jack-Devel] jack2 turned verbose, Kaspar Bumke, (Sat Jun 23, 9:50 pm)
Re: [LAU] [Jack-Devel] jack2 turned verbose, David Adler, (Sun Jun 24, 1:08 am)
Re: [LAU] [Jack-Devel] jack2 turned verbose, David Adler, (Fri Jun 1, 1:58 pm)
Re: [LAU] jack2 turned verbose, mark hadman, (Fri Jun 1, 12:47 am)
Re: [LAU] jack2 turned verbose, Ricardus Vincente, (Wed May 30, 11:04 pm)
Re: [LAU] jack2 turned verbose, david, (Tue May 29, 8:49 am)
Re: [LAU] jack2 turned verbose, David Adler, (Tue May 29, 12:00 pm)
Re: [LAU] jack2 turned verbose, rncbc, (Tue May 29, 2:50 pm)
Re: [LAU] jack2 turned verbose, David Adler, (Tue May 29, 3:24 pm)
Re: [LAU] jack2 turned verbose, Robin Gareus, (Tue May 29, 12:59 pm)
Re: [LAU] jack2 turned verbose, David Adler, (Tue May 29, 1:29 pm)
Re: [LAU] jack2 turned verbose, Jeremy Jongepier, (Tue May 29, 12:06 pm)
Re: [LAU] jack2 turned verbose, David Adler, (Tue May 29, 12:55 pm)