GNS3 / vpcs

Simple Virtual PC Simulator
BSD 2-Clause "Simplified" License
101 stars 39 forks source link

VPCS crashing under GNS3 v2.2.26 / VPCS v0.8.2 / MacOS v11.6 #36

Closed nanocat-net closed 9 months ago

nanocat-net commented 3 years ago

I'm using VPCS with my small networking class, because they're very lightweight and don't require the GNS3 VM to be installed.

I have 4 VPCS devices in the GNS3 project, connected to a GNS3 Switch. I am able to start the VPCS successfully, and perhaps I'm even able to run a couple of commands - I was able to configure the IP address for example - and then the VPCS will suddenly quit without warning.

The VPCS prints "Good-bye" and then closes the connection. GNS3 shows that the VPCS is still running.

When I telnet to the still-running VPCS, I get the same result:

~ ➜ telnet 127.0.0.1 5003
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Good-bye
Connection closed by foreign host.
~ ➜

Here's a full session showing a crash. The crash happened upon me pressing the up arrow key to recall the previous command. This time, the host doesn't tell me Good-bye, it just closes my connection.

~ ➜ telnet 127.0.0.1 5004
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

sales02>
sales02>
sales02> ip address 192.168.10.11/24 192.168.20.1
Invalid address

sales02> ip 192.168.10.11/24 192.168.20.1
not same subnet

sales02> ip 192.168.10.11/24 192.168.10.1
Checking for duplicate address...
sales02 : 192.168.10.11 255.255.255.0 gateway 192.168.10.1

sales02> ping 192.168.10.10

host (192.168.10.10) not reachable

sales02> Connection closed by foreign host.
~ took 41s ➜
~ ➜
~ ➜
~ ➜ telnet 127.0.0.1 5004
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
~ ➜

When I launch a VPCS manually from the command line using /Applications/GNS3.app/Contents/MacOS/vpcs -p 10001, it doesn't crash after telnetting to localhost:10001 and messing with it for some time.

nanocat-net commented 9 months ago

Stale

Raizo62 commented 9 months ago

Now VPCS doesn't crash anymore, right?

nanocat-net commented 9 months ago

I've no idea, I'm not a developer on this project, just a user, but since my Issue was open for getting on to 3 years with no activity, I thought it was time to clear it out. Do you want me to open it up again? Say the word and I will click the button :)

Raizo62 commented 9 months ago

We fixed a crash issue on MAC in August. I was afraid that the problem was still present. You can leave the status as closed :-)

nanocat-net commented 9 months ago

Could you post a link to the fix? Just in case this issue comes up in search results :)

Raizo62 commented 9 months ago

The fix is here : https://github.com/GNS3/vpcs/issues/45