-
Notifications
You must be signed in to change notification settings - Fork 26
Segfault with TPC-DS query #6
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
Comments
Hi @RyanMarcus ! Thanks for your bug report. You could catch a core dump and provide stack trace of failed postgres backend https://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Linux/BSD#Getting_a_trace_from_a_randomly_crashing_backend . Anyway I'll try to reproduce your case to deal with it. |
Ok, I've got the coredump. I had to turn my I compiled Postgres using
I see that while I built PG with debug symbols, it doesn't look like I build the Also, I am used to GDB backtraces including source file names and line numbers... any idea why I'm not seeing those here? Do I need additional compile options? Let me know if it would be useful to pack up my postgres executable and the coredump for you to examine. |
Here is a backtrace after rebuilding the extension.
|
Thanks for the share of stacktrace.
You could rewrite CFLAGS as follows
In your presented stacktrace it's apparent that the problem lies on the side of client who calls |
Thanks for looking into this! When I next get time, I'll attempt to prepare a VM that I can send to you so you can reproduce it for yourself. I will also try those additional options, and I'll reproduce the problem several times to ensure the traces are similar. Would a valgrind log be useful? If so, I can do that too. |
I would like you share the initial sql script to prepare DB to execute your failed query. It would take too much time if I try to prepare DB from specification TPC-DS myself.
It's not necessary yet. Thanks for the offer to do it. |
@RyanMarcus should be fixed in latest release, thank you for this bug report. |
We found another problems here, so I reopened the issue. |
It seems that all bugs related to this issue have been fixed a while ago. Finally, we have recently merged a PR #17, which integrated pg_query_state testing under TPC-DS load, so I am closing this issue. @RyanMarcus, thanks again for your report! Feel free to rise new issues if needed :) |
I apologize in advance for this messy bug report.
Executing the following SQL query, an instance of a TPC-DS template, occasionally causes a segmentation fault in PG10.3 when
pg_query_state
is called. Here is the query:I apologize for the length... I am not sure what elements of the query causes the failure.
Here are the steps to reproduce:
select * from pg_query_state($PID);
while the query is running. After 1-5 tries, Postgres has a segfault.Is there a way I can build PG to provide more useful info about what is going on? Are there log files I can provide?
The text was updated successfully, but these errors were encountered: