Opened 7 weeks ago

#1506 new defect

data ingestion with directql has a segfault

Reported by: bbell Owned by: bbell
Priority: major Milestone: Future
Component: undecided Version: development
Keywords: directql, ingest, segfault Cc: dmisev
Complexity: Medium


In, in the doStuff() function, there seems to be some issues with the way in which the char* pointer named fileContents is handled.

Ideally, the use of smart pointers (e.g. shared_ptr and unique_ptr) could be implemented in this section of code. A simpler, albeit more rudimentary, fix could be to copy the way that memory allocation is handled in's doStuff() function; however, it is important to keep in mind that these functions work differently!

trace for the problem:

rasql -q 'create collection test_tmp GreySet?' --user <> --passwd <>
valgrind directql -q 'insert into test_tmp values decode($1)' -f mr_1.png --user <> --passwd <>

you should get 5-6 errors here, but resolving the problem in should fix all but 1-2 of them.

Change History (0)

Note: See TracTickets for help on using tickets.