Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3C70C1E3.2050908@syntrex.com> Date: Mon, 18 Feb 2002 09:57:07 +0100 From: Pavel Tsekov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: "Dani P." CC: cygwin AT cygwin DOT com Subject: Re: Core dumped just only with strcat! References: <003501c1b6d0$5f9c0dc0$0100a8c0 AT daniel> <003b01c1b6d0$d0959000$0100a8c0 AT daniel> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Just tried it - it doesn't dump core here. Is this snippet taken from a larger source ? If so maybe it would be usefull to paste it all. Maybe the core happens somewhere else... Still you can try to debug this by yourself - compile with -g option and launch gdb. Then come back to the list if you suspect a bug in cygwin and not your code :) Dani P. wrote: > Sorry, in my last posting there's an error in the piece of code: > > >>char request[500]; >>request[0]=3D'\0'; <------ "3D" should not be here >>strcat(request,"SELECT * FROM data"); >> > > I meant that this piece of code dumps a core, not the last posting. > > Thanks, > > Dani > > > ----- Original Message ----- > From: Dani P. > To: > Sent: Saturday, February 16, 2002 10:57 AM > Subject: Core dumped just only with strcat! > > > >>I have installed recently cygwin in order to compile a piece of code >>which compiled an d worked fine in Linux, using Gtk and MySQL libraries. >>It compiles fine, but it dumps a core just only with a "strcat". I do the >>following: >> >>char request[500]; >>request[0]=3D'\0'; >>strcat(request,"SELECT * FROM data"); >> >>And in that last instruction, it dumps a core. >> >>Could you help me? >> >>Thanks, >> >>Dani P. >> >> >>-- >>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/ >> >> >> > > > -- > 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/ > > > > -- 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/