I use default sd-bus library produce by systemd. I modify example from http://0pointer.net/blog/the-new-sd-bus-api-of-systemd.html I add this lines to create a test property on dbus
/* The vtable of our little object, implements the net.poettering.Calculator interface */
static const sd_bus_vtable calculator_vtable[] = {
SD_BUS_VTABLE_START(0),
SD_BUS_METHOD("Multiply", "xx", "x", method_multiply, SD_BUS_VTABLE_UNPRIVILEGED),
SD_BUS_METHOD("Divide", "xx", "x", method_divide, SD_BUS_VTABLE_UNPRIVILEGED),
SD_BUS_PROPERTY("test", "u", NULL, offsetof(struct object, u), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_VTABLE_END
};
and add object struct
typedef struct object {
uint32_t u;
} object;
After compiling with modifications I have a Segmentation fault Why I have it