-
Notifications
You must be signed in to change notification settings - Fork 75
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
segfault on board when you're surrounded by hostile ships #212
Comments
@NukedBart can you please provide the backtrace for the segfault? |
will do that soon |
|
Hmm, I wonder why GetRandModule is segfaulting like this. I tried to reproduce it here without success: Its possible this is a race condition? How was your CPU utilisation at the time? This is all GetRandModule does:
@Almamu any thoughts? P.S. I also noticed that mobs don't pod-kill you. This is not correct behavior, I believe they should be doing this, but maybe there is a check for that in place? |
@NukedBart Is there anything else in the reproduction of this issue which I did not do during my test? Are you able to replicate this with a completely fresh Docker install using a blank db? (the reason I request this is that it will rule out many other possible causes of such a problem) Also, which specific commit version of EVEmu is being used here? |
Shouldn't EVEmu be single threaded for all intents and purposes? I don't remember off the top of my head if there's any actual threading interacting with items. Looking at the offending code doesn't look like it's accessing anything that could be modified at the same time (otherwise It would have segfaulted somewhere else, and not on the return imo). My only guess is that MakeRandomInt is returning a range of [0-x], instead of [0-x) (at least that's what I'd expect it to return) which would explain the crash, and I've actually managed to reproduce it in a simple test program, so most likely that's the situation here:
This one might require some extra thought tho, mainly because depending on the situation we might want MakeRandomInt to return [0-x] instead of [0-x). |
Describe the bug
as the title
To Reproduce
Steps to reproduce the behavior:
Expected behavior
board the ship and get destroyed again
System Details (please complete the following information):
The text was updated successfully, but these errors were encountered: