-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reproduction commands for leads to segfault or assertion failure, likely invalid memory access #179
Comments
Some quick investigation, what caught my eye:
|
Hi @dentiny, this is my bad and I should have told you. Whenever you build the extension from source, any queries that contain PGQ syntax (e.g. The reason is somewhat complex but I'll try to explain it anyway. We build the extension on a fork of DuckDB, this is already different from most other extensions, which build on the main DuckDB. This fork of ours includes changes to the parser and transformer to include the PGQ syntax and be able to transform the result into an Abstract Syntax Tree (AST). Therefore, our parser + transformer is a superset of the DuckDB parser and PGQ.
This is not an issue when users load the extension and there's no need for them to write a I have also forgotten to use this |
Thanks for the explanation @Dtenwolde ! Now I understand -- I was actually curious and surprised why we modify duckdb source code. Ah I should play with the test first, a second look at the test, sqls with property-graph involved does start with duckpgq-extension/test/sql/altering_table.test Lines 34 to 47 in fb38a09
I open a PR to add some documentation on "build from scratch part", let me know if you think it's ok :) |
What happens?
I'm checking on issue #176.
With reproduce command (see below), duckdb either segfaults or assertion failure.
I have tried to build and execute for different platforms.
On ubuntu 22.04, it fails a duckdb internal assertion.
Error message:
With
gdb
attach breakpoint, the stacktrace looks like, which doesn't make sense to me, since it's completely duckdb internals.I also tried on macos, it shows heap overflow.
The ASAN output is
I build duckdb-pgq myself from scratch, with command
make debug
.To Reproduce
OS:
aarch64 for mac, x84_64 for ubuntu
duckdb-pgq commit:
fb38a09
DuckDB Version:
0c82f0ed582ed2737216539845028826badb4bda
DuckDB Client:
self built
Full Name:
Hao
Affiliation:
N/A
How did you load the extension?
Built from source
Did you include all relevant data sets for reproducing the issue?
Not applicable - the reproduction does not require a data set
Did you include all code required to reproduce the issue?
Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?
The text was updated successfully, but these errors were encountered: