-
Notifications
You must be signed in to change notification settings - Fork 211
Open
Description
-
Problem Description
During the execution of gquery with the query file poc_04.sql on the lubm7 database, the program crashes with a segmentation fault (SIGSEGV) in the string index retrieval phase. The crash occurs in a low-level memory copy operation (memmove) while attempting to perform sequence access on string data during the final result construction phase of query evaluation. -
Prerequisites
bin/gbuild -db lubm7 -f ./data/lubm/lubm.nt
Test case:
- Reproduction Steps && Error Log
ing668@nuc:~/gStore$ gdb ./bin/gquery
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04.2) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./bin/gquery...
(gdb) run -db lubm7 -q ./poc/poc_04.sql
Starting program: /home/ting668/gStore/bin/gquery -db lubm7 -q ./poc/poc_04.sql
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff3bff640 (LWP 14641)]
[New Thread 0x7ffff33fe640 (LWP 14642)]
[New Thread 0x7ffff2bfd640 (LWP 14643)]
[New Thread 0x7ffff23fc640 (LWP 14644)]
[New Thread 0x7ffff1bfb640 (LWP 14645)]
[New Thread 0x7ffff13fa640 (LWP 14646)]
[New Thread 0x7ffff03ff640 (LWP 14647)]
[Thread 0x7ffff1bfb640 (LWP 14645) exited]
[New Thread 0x7fffee9ff640 (LWP 14648)]
[Thread 0x7ffff03ff640 (LWP 14647) exited]
[New Thread 0x7fffed3fe640 (LWP 14649)]
[New Thread 0x7fffec9fd640 (LWP 14650)]
[Thread 0x7ffff13fa640 (LWP 14646) exited]
[Thread 0x7fffed3fe640 (LWP 14649) exited]
[Thread 0x7fffee9ff640 (LWP 14648) exited]
[New Thread 0x7fffeb7ff640 (LWP 14651)]
[New Thread 0x7fffeaffe640 (LWP 14652)]
[New Thread 0x7fffea7fd640 (LWP 14653)]
[Thread 0x7fffec9fd640 (LWP 14650) exited]
[Thread 0x7fffeb7ff640 (LWP 14651) exited]
[Thread 0x7fffea7fd640 (LWP 14653) exited]
[==================================================] Set pre map, pre num = 5
[Thread 0x7fffeaffe640 (LWP 14652) exited]
[==================================================] Load cache done!
[New Thread 0x7fffeaffe640 (LWP 14654)]
[New Thread 0x7fffeb7ff640 (LWP 14655)]
[New Thread 0x7fffed3fe640 (LWP 14656)]
[New Thread 0x7ffff03ff640 (LWP 14657)]
[Thread 0x7fffed3fe640 (LWP 14656) exited]
[New Thread 0x7ffff1bfb640 (LWP 14658)]
[New Thread 0x7ffff13fa640 (LWP 14659)]
[Thread 0x7fffeaffe640 (LWP 14654) exited]
[Thread 0x7ffff1bfb640 (LWP 14658) exited]
[New Thread 0x7fffec9fd640 (LWP 14660)]
[Thread 0x7ffff03ff640 (LWP 14657) exited]
[New Thread 0x7fffea7fd640 (LWP 14661)]
[New Thread 0x7fffe99ff640 (LWP 14662)]
[Thread 0x7ffff13fa640 (LWP 14659) exited]
[Thread 0x7fffe99ff640 (LWP 14662) exited]
[==================================================] Set pre map, pre num = 17
[Thread 0x7fffeb7ff640 (LWP 14655) exited]
[Thread 0x7fffec9fd640 (LWP 14660) exited]
[Thread 0x7fffea7fd640 (LWP 14661) exited]
[==================================================] Load cache done!
Thread 1 "gquery" received signal SIGSEGV, Segmentation fault.
__memmove_avx512_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:513
513 ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.
(gdb) bt
#0 __memmove_avx512_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:513
#1 0x0000555555b88e63 in StringIndexFile::trySequenceAccess (this=0x7ffff404fb30, request=std::vector of length 199100, capacity 199100 = {...},
buffer=@0x7fffffffc120: 0x7fffe807f9c0 "/", buffer_size=@0x7fffffffba0c: 2097154, real=true)
at /home/ting668/gStore/src/StringIndex/StringIndex.cpp:225
#2 0x0000555555b8bd80 in StringIndex::trySequenceAccess (this=<optimized out>, requestVectors=0x7fffffffbc20,
buffer=@0x7fffffffc120: 0x7fffe807f9c0 "/", buffer_size=@0x7fffffffba0c: 2097154, real=true)
at /home/ting668/gStore/src/StringIndex/StringIndex.cpp:443
#3 0x0000555555849014 in GeneralEvaluation::getFinalResult (this=0x7fffe807f9c0, ret_result=...)
at /home/ting668/gStore/src/Query/GeneralEvaluation.cpp:3602
#4 0x0000555555744ec4 in Database::query (this=0x7fffffffd848, _query="select ?s ?p?o2 ?p2 ?o2 where \n{ \n\t?s ?p ?o . \n\t?o ?p2 ?o .\n}\n\n",
_result_set=..., _fp=0x7ffff6e1b780 <_IO_2_1_stdout_>, update_flag=true, export_flag=false, txn=std::shared_ptr<Transaction> (empty) = {...})
at /home/ting668/gStore/src/Database/Database.cpp:1978
#5 0x000055555572dabf in main (argc=<optimized out>, argv=<optimized out>) at /home/ting668/gStore/src/Main/gquery.cpp:140
(gdb)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels