[redland-dev] Error on Initializing Redland Libraries

Lauri Aalto laalto at gmail.com
Sun Apr 19 19:25:57 CEST 2009


Hi,

I couldn't reproduce this issue with the library versions you're
using. Does "make check" work for you, since practically all redland
tests use this librdf_new_world() - librdf_world_open() pattern.

One quick way to debug it further is to edit raptor_free_sequence() in
raptor_sequence.c and change

  RAPTOR_ASSERT_OBJECT_POINTER_RETURN(seq, raptor_sequence);

to something like

  if (!seq)
    RAPTOR_FATAL1("null argument passed to raptor_free_sequence()");

RAPTOR_FATAL1() macro prints the message given and then abort()s.

Then run your program in a debugger, putting a breakpoint to abort().
Now you can backtrack the call stack to see where the NULL sequence
was originally coming from.

(librdf_fatal() that is used for logging the rasqal init failed
message also calls abort() but the call stack is not as useful at that
point.)

Lauri

On Fri, Apr 17, 2009 at 4:05 PM, Michael Szalay
<michael.szalay at gmail.com> wrote:
> Hi all
>
> I'm new to the librdf libraries.
> In my program, I try to initialize a triple store like this:
>
>   rdf_world = librdf_new_world();
>
>    //set logger
>    librdf_world_set_logger(rdf_world, NULL, (void *) log);
>
>    //open
>    librdf_world_open(rdf_world);
>    log4c_category_log(get_category(), LOG4C_PRIORITY_INFO, "Configured
> world.");
>
> I get the following error when I call librdf_world_open:
>
> raptor_sequence.c:125: (raptor_free_sequence) assertion failed: object
> pointer of type raptor_sequence is NULL.
> [stdout] INFO     tripleStore.server - TripleStore said:
> rdf_query_rasqal.c:1207:librdf_query_rasqal_constructor: fatal error:
> failed to initialize rasqal
> librdf fatal - rdf_query_rasqal.c:1207:librdf_query_rasqal_constructor:
> fatal error: failed to initialize rasqal
>
> I'm using raptor-1.4.18, rasqal-0.9.16, redland-1.0.8.
>
> Any help whats going wrong here?
>
> Thanks Michael
>
> _______________________________________________
> redland-dev mailing list
> redland-dev at lists.librdf.org
> http://lists.librdf.org/mailman/listinfo/redland-dev
>


More information about the redland-dev mailing list