Ubus_connect segfults when trying to add it to olsr

I try to add ubus to olsrd:

The code segfaults when I do ubus_connect(NULL). I do not understand what's wrong.