pganalyze / pg_query.rs

Rust library to parse, deparse and normalize SQL queries using the PostgreSQL query parser
MIT License
126 stars 12 forks source link

Investigate SEGV on unknown address #12

Closed seanlinsley closed 1 year ago

seanlinsley commented 2 years ago

The parallel test as currently written opens 10,000 threads that each call out to libpg_query at the same time. This error happens rarely, and so far only on CI.

https://github.com/pganalyze/pg_query.rs/runs/7419661487

LeakSanitizer:DEADLYSIGNAL
==4846==ERROR: LeakSanitizer: SEGV on unknown address 0x7f7999ae3ff8 (pc 0x5607592a63f4 bp 0x7f7595e56e60 sp 0x7f7595e565f0 T16383)
==4846==The signal is caused by a READ memory access.
Screen Shot 2022-07-19 at 6 43 13 PM
seanlinsley commented 2 years ago

Another failed build: https://github.com/pganalyze/pg_query.rs/runs/7530042546?check_suite_focus=true#step:6:321

seanlinsley commented 1 year ago

And another: https://github.com/pganalyze/pg_query.rs/actions/runs/3894507509/jobs/6648591678