[redland-dev] Model serialization bug
Christopher Schmidt
crschmidt at crschmidt.net
Tue Jan 4 07:06:07 PST 2005
When running the following script:
import RDF
p = RDF.Parser()
m = RDF.Model()
p.parse_into_model(m, RDF.Uri("http://crschmidt.net/foaf.rdf"))
print m
I get a malloc/free error:
rdf_uri.c:201: (librdf_new_uri_from_uri) assertion failed: object
pointer of type librdf_uri is NULL.
*** glibc detected *** double free or corruption (fasttop): 0x081ceb80 ***
Aborted
Useful backtrace appears to be:
#8 0x40766fa7 in raptor_free_statement (statement=0x7ff9)
at raptor_general.c:303
#9 0x40769f36 in raptor_free_sequence (seq=0xbfffe1a8)
at raptor_sequence.c:100
#10 0x407782ef in raptor_rss10_serialize_terminate (serializer=0x0)
at raptor_rss.c:1461
#11 0x40761c96 in raptor_free_serializer (rdf_serializer=0x81cd038)
at raptor_serialize.c:537
#12 0x40483a9a in librdf_serializer_raptor_terminate (context=0x0)
at rdf_serializer_raptor.c:86
#13 0x40483413 in librdf_free_serializer (serializer=0x81c89e8)
at rdf_serializer.c:288
#14 0x40477b11 in librdf_model_to_counted_string (model=0x8154600, uri=0x0,
name=0x6 <Address 0x6 out of bounds>, mime_type=0x40046ff4 "x?",
type_uri=0x0, string_length_p=0x0) at rdf_model.c:1506
#15 0x40477b5e in librdf_model_to_string (model=0x0, uri=0x0, name=0x0,
mime_type=0x0, type_uri=0x0) at rdf_model.c:1529
#16 0x40027594 in _wrap_librdf_model_to_string (self=0x0, args=0x0)
at Redland_wrap.c:2388
This is with Raptor 1.4.3 and the latest Redland release.
valgrind output does seem to confirm an invalid free: valgrind output from
--tool=memcheck is at http://crschmidt.net/tmp/valgrind.out
Again, if there's anything I can do to be more useful, let me know.
--
Christopher Schmidt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.gnomehack.com/pipermail/redland-dev/attachments/20050104/50bb4b31/attachment.pgp
More information about the redland-dev
mailing list