-
Notifications
You must be signed in to change notification settings - Fork 37
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
YottaDB Darwin Port: passed sockets between jobbed processes don't work #292
Comments
Not sure if it helps but maybe #275 is related. |
Interesting. I want to compile the latest source code for YottaDB on my Linux machine and see if we have the same issue. |
Shouldn't be a surprise, but I at least confirmed it's not an issue on Linux. @nars1, any advice on debugging this? The multiple forks make it difficult. The way I debugged gtmshrsec on Cygwin was to put in sleeps and then run and attach to the process while it's sleeping. |
Found the crash.
Crashes here:
Previous SENDs are apparently successful. |
Okay. After an hour of debugging, it turns out it's crashing at random sends, which means that the grandchild process is crashing at the get-go and the sends that succeed just succeed accidentally. |
I think I finally found the problem. I am doing the stepping of si into assembly so that I can catch it at the right time.
|
More stuff from the same stack. I am puzzled actually by this. None of it makes sense.
|
One last thing, before I go to bed... I have had enough of this... $rax is 0; $al is 0. So the error happens at dereferencing $rax. |
@shabiel : Related to using gdb to debug these multiple process scenarios, the following commands are very useful. Setting them to one of the two possible values listed in each bullet below gives you the flexibility to get gdb to follow the child or the parent after a fork/exec as well as control whether the other one is suspended or detached (executes concurrently). Hope this helps.
|
For example, the M-Web-Server won't work.
It previously worked on the last port to Darwin, in V6.2-002A.
Confirmed on two different Macs.
I will debug as time permits.
The text was updated successfully, but these errors were encountered: