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

Crash when host out of memory #43

Open
larsbrinkhoff opened this issue Oct 11, 2019 · 1 comment
Open

Crash when host out of memory #43

larsbrinkhoff opened this issue Oct 11, 2019 · 1 comment
Labels

Comments

@larsbrinkhoff
Copy link
Member

larsbrinkhoff commented Oct 11, 2019

@Pul-Ess discovered that KLH10 will crash if the host machine is out of memory and allocation of a shared memory segment fails.

Specifically, inside dvrpxx.c rp_clear will fail if rp->rp_sdprp is NULL.

@larsbrinkhoff
Copy link
Member Author

Original bug report:

KLH10> go
Starting KN10 at loc 0144550...

Salvager 260

Program received signal SIGSEGV, Segmentation fault.
                                                    0x00000000004243da in rp_clear (rp=rp@entry=0x649760 <dvrp>) at ../../src/dvrpxx.c:1190
1190        rp->rp_sdprp->dprp_err = 0; /* For now, so rp_ssta doesn't spill beans */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant