delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/28/09:49:26

X-Spam-Check-By: sourceware.org
Message-ID: <fb34b27b0705280648p7de36df3oea57c19ebbf5e3c9@mail.gmail.com>
Date: Mon, 28 May 2007 14:48:59 +0100
From: "Mark Fisher" <mark DOT j DOT fisher AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problem running C server with Cygwin
In-Reply-To: <10835433.post@talk.nabble.com>
MIME-Version: 1.0
References: <10835433 DOT post AT talk DOT nabble DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 28/05/07, Nick048 wrote:
> I have written a C Server program and I have compiled this with Cygwin
> without errors.
> Running the exe file with Cygwin, if the client (telnet) send to Server a
> word (in italian language "parola"), in the Cygwin window this message is
> displayed:
> 5 [main] myserver 2736 _cygtls:: handle_exception: Error while dumping state
> (probably corrupted stack)

i don't get this error running the code you linked.
i'm running "gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)"

i did notice a simple bug in your program though, line 141 should be:

      if (NodoTrovato == NULL){

otherwise you never create words in your list.

after that, it ran fine.
(if by fine you wanted each connection to only add one word to your server)

mark

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019