[redland-dev] Getting comprehensible errors
Dave Beckett
dave.beckett at bristol.ac.uk
Thu Jul 7 14:16:21 BST 2005
On Thu, 7 Jul 2005, Kieron Taylor wrote:
> I am finding the errors I receive from Redland to be very inadequate.
>
> eg.
> rdf_uri.c:570: (librdf_uri_equals) assertion failed: object pointer of
> type librdf_uri is NULL.
> rdf_uri.c:570: (librdf_uri_equals) assertion failed: object pointer of
> type librdf_uri is NULL.
> Redland error: The namespace URI for prefix "ns0" is empty.
>
> The problem is that I cannot tell which part of the data and my code is
> making it unhappy. Is there a debug mode that will make this sort of
> problem easier to deal with?
Use a debugger (say gdb) and set a breakpoint at those files, line numbers
given in the message and run your program. Best done with a build with
CFLAGS including -g. There should be a function for assertion failures
that you break on additionally but I haven't added it yet.
Dave
More information about the redland-dev
mailing list