Skip to content
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

SIGBUS: access to undefined memory #78

Closed
seanlinsley opened this issue Jan 13, 2023 · 2 comments
Closed

SIGBUS: access to undefined memory #78

seanlinsley opened this issue Jan 13, 2023 · 2 comments

Comments

@seanlinsley
Copy link

When using grow, if the stack is exhausted you run into an unusual error:

signal: 10, SIGBUS: access to undefined memory

Maybe #59 could change the error type? Otherwise it would help to document this.

Some more background info: I'm trying to use grow as a way to support a higher recursion limit in the prost crate without needing upstream changes (so grow is a better fit than maybe_grow) pganalyze/pg_query.rs#17

@nagisa
Copy link
Member

nagisa commented Jan 13, 2023

SIGBUS and SIGSEGV are both common signals raised when an unreadable page is accessed. Which one it’ll be is architecture and probably OS-dependent.

#59 could help, by printing additional messages about stack exhaustion, but I’m pretty confident it would still re-raise SIGBUS if SIGBUS was originally signalled. There's no value in changing the type of the signal. I don't expect adding additional messaging to be of high priority to anybody, and it is also pretty difficult thing to implement correctly, due to it having to run inside a signal handler.

@nagisa
Copy link
Member

nagisa commented Feb 19, 2024

Triage: closing as this is unlikely to be acted upon.

@nagisa nagisa closed this as completed Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants