From 6176bbde9ff66102f399894ca4636cf510cd062a Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sat, 11 May 2013 22:35:33 +0000
Subject: [PATCH] Added comment: SSH crash for Deuce to look into.

---
 src/sbbs3/main.cpp | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp
index f3ab3e88db..366c6d2fd4 100644
--- a/src/sbbs3/main.cpp
+++ b/src/sbbs3/main.cpp
@@ -2124,7 +2124,21 @@ void output_thread(void* arg)
 #ifdef USE_CRYPTLIB
 		if(sbbs->ssh_mode) {
 			int err;
-			pthread_mutex_lock(&sbbs->ssh_mutex);
+			pthread_mutex_lock(&sbbs->ssh_mutex);	/* exception here May-11-2013:
+
+ 	sbbs.dll!pthread_mutex_lock(_RTL_CRITICAL_SECTION * mutex=0x070b3a74)  Line 147 + 0xc bytes	C
+>	sbbs.dll!output_thread(void * arg=0x070add80)  Line 2127 + 0x11 bytes	C++
+ 	sbbs.dll!_callthreadstart()  Line 259 + 0xf bytes	C
+ 	sbbs.dll!_threadstart(void * ptd=0x03daaa18)  Line 243	C
+
+-		&sbbs->ssh_mutex	0x070b3a74 {DebugInfo=0x00000000 LockCount=-4 RecursionCount=0 ...}	_RTL_CRITICAL_SECTION *
++		DebugInfo	0x00000000 {Type=??? CreatorBackTraceIndex=??? CriticalSection=??? ...}	_RTL_CRITICAL_SECTION_DEBUG *
+		LockCount	-4	long
+		RecursionCount	0	long
+		OwningThread	0x00000000	void *
+		LockSemaphore	0x00002028	void *
+		SpinCount	0	unsigned long
+*/
 			if(!cryptStatusOK((err=cryptPushData(sbbs->ssh_session, (char*)buf+bufbot, buftop-bufbot, &i)))) {
 				/* Handle the SSH error here... */
 				lprintf(LOG_WARNING,"%s !ERROR %d sending on Cryptlib session", node, err);
-- 
GitLab