Closed changkun closed 5 years ago
Due to investigation, the problem is caused by a shared variable in https://github.com/apache/guacamole-server/blob/6ae6ea587b04506f128185f46094cb3b1e46f182/src/common-ssh/ssh.c#L53. This is where we have double free corruption and memory leak.
The original guacamole does not have this problem is because the variable is accessed in different processes (forked).
The panic happens when sftp server is needed. Considering remove these chunk of code, since SFTP is not needed for this purpose.
The panic also exists in rdp/ssh connection. Also needed to remove.
Describe the bug Occamy cgo wrap randomly panics when frequently connects to it.
To Reproduce
make build && make run
connect to VNC server
Expected behavior No panic
Additional context