delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/19/10:45:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: Pavel Tsekov <ptsekov AT syntrex DOT com>
Cc: danielpa AT wanadoo DOT es, cygwin AT cygwin DOT com
Subject: Re: Fwd: Re: Core dumped just only with strcat!
References: <2110666337 DOT 20020219124535 AT syntrex DOT com>
From: Andrew Markebo <flognat AT flognat DOT myip DOT org>
Date: 19 Feb 2002 14:39:53 +0100
In-Reply-To: <2110666337.20020219124535@syntrex.com>
Message-ID: <m31yfhlhee.fsf@localhost.localdomain>
Lines: 37
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7
MIME-Version: 1.0

Basically this problem smells like you have managed to mess up the
memory/stack before this, and well, memory problems is often
'detected' by the program crashes on some other location..

So start looking around at the code, what is done before these calls.

        /Andy

(with detected I mean that the user notices that the program crashes
or similar)

/ Pavel Tsekov <ptsekov AT syntrex DOT com> wrote:
| This is a forwarded message
| From: Dani P. <danielpa AT wanadoo DOT es>
| To: "Pavel Tsekov" <ptsekov AT syntrex DOT com>
| X-Sent: 32 years, 7 weeks, 13 hours, 35 minutes, 10 seconds ago
| Subject: Core dumped just only with strcat!
| 
| ===8<==============Original message text===============
| I've trying lots of things and after 1 day with it, I've achieved to work
| part of the code. What I did? I just declared my array before a MYSQL_RES
| variable. I had:
| 
| MYSQL_RES * result;
| char petition[500];
| 
| And I changed to:
| 
| char petition[500];
| MYSQL_RES * result;
| 
| And also I did all the string work before the mysql stuff (connection call,
| query call,...). And, don't ask me why, it worked! (now it crashes in other
| function, in a mysql_query call).

-- 
 The eye of the beholder rests on the beauty!

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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