rdf-raptor icon indicating copy to clipboard operation
rdf-raptor copied to clipboard

SegFault on TTL that has PREFIX lines mixed into "data" lines

Open markwilkinson opened this issue 5 years ago • 1 comments

Hi Gregg

I believe this is an rdf-raptor problem, but I can't quite track it down precisely.

I have Turtle being sent to me by an LDP server. It has a few lines of @PREFIX, then a few lines of data, then a few more lines of @PREFIX and so on. No line of data uses a prefix before it is defined, so the TTL appears to be valid; however, when I parse it using the raptor library, I get a segfault. If I reorder the lines to push the prefixes to the top, the segfault goes away.

My "patch" to get around the problem is not a good idea, since Turtle allows PREFIXes to be redefined at any point in the document, so by pushing them to the top, I am potentially breaking the data.

Suggestions? Am I sending this bug report to the right place?

Cheers!

markwilkinson avatar Jun 14 '19 07:06 markwilkinson