-
Notifications
You must be signed in to change notification settings - Fork 25
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
Windows fatal exceptions 0xC0000409
and 0xE06D7363
with [email protected]
via SafeQL
#81
Comments
0xC0000409
and 0xE06D7363
with SafeQL 0xC0000409
and 0xE06D7363
with [email protected]
via SafeQL
Is there a way to reproduce this error in a Github Action? I don't use windows, only use it in CI/CD & Github Actions |
I guess that the first issue should also appear on Windows CI on GitHub Actions, using the code provided by @ProchaLu in ts-safeql/safeql#243 and import postgres from 'postgres';
const sql = postgres();
export async function getUsers1() {
// 💥 Missing comma after `users.id` causes libpg-query crash
return await sql<Users[]>`
SELECT
users.id
users.name
FROM
users
`;
} Here's an example of running SafeQL in a GitHub Actions workflow for Windows (includes database setup, ESLint + SafeQL setup):
Although, the tricky part may be that on Windows, running $ pnpm eslint . --max-warnings 0
(node:11440) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
$ echo $?
127 In the VS Code ESLint extension, it shows this error code But since this error will not be surfaced, it's possible that the GitHub Actions workflow for Windows would need to test the exit code to make sure that there is no crash. |
@Newbie012 any clue why (as described above) running Is this a bug in SafeQL that |
Windows users of
[email protected]
via SafeQL have reported crashes:Error code
0xC0000409
(STATUS_STACK_BUFFER_OVERRUN
)Error code
0xC0000409
(aka error code3221226505
) (akaSTATUS_STACK_BUFFER_OVERRUN
) occurred when linting SQL with errors in it (missing commas and parentheses):[email protected]
: SafeQL crashes with error code 127, error code 3221226505 ts-safeql/safeql#243 (comment)Researching a bit led me to this:
How do you diagnose the exception code 0xc0000409 on Windows? | Stack Overflow
Error code
0xE06D7363
Error code
0xE06D7363
(aka error code3765269347
) occurred when linting Prisma SQL code (code currently unknown):Research led to this:
C++ Loadlibrary() error 3765269347
I am wondering whether this is a general problem or deficiency with how
libpg-query
is built on Windows, or whether it's an issue with how SafeQL is interacting withlibpg-query
?Last
libpg-query
Windows PRs:cc @pyramation @aquariuslt @Newbie012
The text was updated successfully, but these errors were encountered: