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

Strange error message on Windows if GDB server is not started locally #113

Closed
ErichStyger opened this issue Apr 13, 2016 · 3 comments
Closed
Assignees

Comments

@ErichStyger
Copy link

In case the 'start the J-Link GDB server locally is not checked, and if there is no GDB server running, there is a there is a strange error message:

Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:2331
Error message from debugger back end:
localhost:2331: The system tried to join a drive to a directory on a joined drive.
Failed to execute MI command:
-target-select remote localhost:2331
Error message from debugger back end:
localhost:2331: The system tried to join a drive to a directory on a joined drive.

localhost:2331: The system tried to join a drive to a directory on a joined drive.

That message shows up at least on Windows (7 in my case).
Would be good if the error message could be improved, otherwise users have no clue what is the problem.
Something like "cannot connect to GDB server. Check that the GDB server is running or enable starting the GDB server locally in the debug configuration".

See https://mcuoneclipse.com/2016/04/13/fix-for-gdb-and-the-system-tried-to-join-a-drive-to-a-directory-on-a-joined-drive/

@ilg-ul ilg-ul added the bug label Apr 13, 2016
@ilg-ul ilg-ul self-assigned this Apr 13, 2016
@ilg-ul
Copy link
Contributor

ilg-ul commented Apr 13, 2016

The message does not come from the plug-ins (even my bad English is not bad enough to imagine such an explanation!), but to me it looks like an error somewhere, so I'll investigate the cause, and try to fix it.

@TommyMurphyTM1234
Copy link

I tried to post this on Erich's blog but it didn't seem to make it... I'll try again here:

I have also seen this message and it doesn't make sense. But I noticed this:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

ERROR_JOIN_TO_JOIN
138 (0x8A)
The system tried to join a drive to a directory on a joined drive.

This error seems to crop up when the debug component sitting between GDB and the target (e.g. OpenOCD, J-Link GDB Server etc.) is misconfigured or - as above - simply not told to run.

Judging by this:

http://stackoverflow.com/questions/29747304/how-to-troubleshoot-an-error-138-error-join-to-join

the error may actually be coming from GDB and not any Eclipse component?

The error certainly doesn't make obvious sense in this context but perhaps some of this info will help to track down why it happens whatever about addressing it - especially if it's ultimately a GDB issue?

Hope this helps.

@jonahgraham
Copy link
Contributor

Thank you @ErichStyger for having filed this, plus for writing the blog post.

I came across this in a different area (developing cdt-gdb-adapter) - it seems this message comes from trying to connect to a port that isn't listening at the same time as having certain VPN + firewall settings.

So AFAICT it is not really a GDB issue either, except for the error message that is presented in the end.

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

No branches or pull requests

4 participants