-
Notifications
You must be signed in to change notification settings - Fork 211
Open
Description
- Problem Description
During the execution of gquery, the program terminates abnormally due to an unhandled std::runtime_error exception, resulting in a SIGABRT signal.
- Prerequisites
bin/gbuild -db lubm -f ./data/lubm/lubm.nt
Test case:
- Reproduction Steps && Error Log
ting668@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 lubm -q ./poc/poc_01.sql
Starting program: /home/ting668/gStore/bin/gquery -db lubm -q ./poc/poc_01.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 2962)]
[New Thread 0x7ffff33fe640 (LWP 2963)]
[New Thread 0x7ffff2bfd640 (LWP 2964)]
[New Thread 0x7ffff23fc640 (LWP 2965)]
[New Thread 0x7ffff1bfb640 (LWP 2966)]
[New Thread 0x7ffff13fa640 (LWP 2967)]
[New Thread 0x7ffff05ff640 (LWP 2968)]
[New Thread 0x7fffef7ff640 (LWP 2969)]
[New Thread 0x7fffee7ff640 (LWP 2970)]
[New Thread 0x7fffeddfe640 (LWP 2971)]
[New Thread 0x7fffec1ff640 (LWP 2972)]
[Thread 0x7ffff05ff640 (LWP 2968) exited]
[New Thread 0x7fffea3ff640 (LWP 2973)]
[Thread 0x7ffff1bfb640 (LWP 2966) exited]
[Thread 0x7fffee7ff640 (LWP 2970) exited]
[Thread 0x7ffff13fa640 (LWP 2967) exited]
[New Thread 0x7fffe93fe640 (LWP 2974)]
[Thread 0x7fffef7ff640 (LWP 2969) exited]
[Thread 0x7fffeddfe640 (LWP 2971) exited]
[Thread 0x7fffec1ff640 (LWP 2972) exited]
[Thread 0x7fffe93fe640 (LWP 2974) exited]
[Thread 0x7fffea3ff640 (LWP 2973) exited]
[==================================================] Set pre map, pre num = 5
[==================================================] Load cache done!
[New Thread 0x7fffea3ff640 (LWP 2975)]
[New Thread 0x7fffec1ff640 (LWP 2976)]
[New Thread 0x7fffee7ff640 (LWP 2977)]
[New Thread 0x7ffff05ff640 (LWP 2978)]
[New Thread 0x7ffff1bfb640 (LWP 2979)]
[New Thread 0x7ffff13fa640 (LWP 2980)]
[New Thread 0x7fffef7ff640 (LWP 2981)]
[New Thread 0x7fffe93fe640 (LWP 2982)]
[New Thread 0x7fffe8bfd640 (LWP 2983)]
[Thread 0x7fffee7ff640 (LWP 2977) exited]
[Thread 0x7ffff05ff640 (LWP 2978) exited]
[Thread 0x7ffff13fa640 (LWP 2980) exited]
[Thread 0x7fffe8bfd640 (LWP 2983) exited]
[Thread 0x7ffff1bfb640 (LWP 2979) exited]
[Thread 0x7fffec1ff640 (LWP 2976) exited]
[Thread 0x7fffef7ff640 (LWP 2981) exited]
[Thread 0x7fffe93fe640 (LWP 2982) exited] ] Set pre map, pre num = 3517
[Thread 0x7fffea3ff640 (LWP 2975) exited]
[==================================================] Set pre map, pre num = 3517
[==================================================] Load cache done!
2025-10-10 13:57:19.408 ERROR 140737324933760 [ Database.cpp:1917] --- catch run_time error exception
2025-10-10 13:57:19.409 ERROR 140737324933760 [ Database.cpp:1918] --- wstring_convert::from_bytes
terminate called after throwing an instance of 'std::runtime_error'
what(): wstring_convert::from_bytes
Thread 1 "gquery" received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140737324933760) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737324933760) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140737324933760) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140737324933760, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff6c42476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007ffff6c287f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007ffff70a2b9e in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007ffff70ae20c in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007ffff70ae277 in std::terminate() () from /lib/x86_64-linux-gnu/libstdc++.so.6
#8 0x00007ffff70ae4d8 in __cxa_throw () from /lib/x86_64-linux-gnu/libstdc++.so.6
#9 0x000055555574fffe in Database::query (this=0x7fffffffd848, _query="s\355lect ?s ?p ?o where \n{ \n\t?s ?p ?o . \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:1919
#10 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