X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Jim Michaels Newsgroups: comp.os.msdos.djgpp Subject: Re: issue with 4.5.3 beta, 4.5.2 beta Date: Sun, 22 May 2011 21:45:37 -0700 (PDT) Organization: http://groups.google.com Lines: 33 Message-ID: <572246ce-db12-406b-a5da-1fa4272e10e9@17g2000prr.googlegroups.com> References: <1b5aeeeb-ffaa-42ce-88c4-ec8773bcceef AT j13g2000pro DOT googlegroups DOT com> NNTP-Posting-Host: 24.22.56.37 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1306125937 6813 127.0.0.1 (23 May 2011 04:45:37 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Mon, 23 May 2011 04:45:37 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: 17g2000prr.googlegroups.com; posting-host=24.22.56.37; posting-account=05hOMwoAAAB6R8xtiQKzEljSMzgOhVF1 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1,gzip(gfe) Bytes: 2612 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On May 22, 9:30=A0pm, Jim Michaels wrote: > I have a program and small library that I recently worked the bugs out > of to my best understanding. > I included a lot of debug output using #if defined(_DEBUG). > that debug ouput is flushed at every instance. > the library output shows with -g compiler switch, but not without. > the main program's debug output always shows. > > can someone explain this? =A0I have the #define on in both the library > file and the main source and the header file. > I think I am running into a compiler bug. > > and this doesn't happen with mingw-w64 (a gnu compiler for windows). I should mention, the program throws a SIGSEGV or SIGILL if I execute the program my normal way (with debug symbols stripped out with -s) and only 1 argument is partially processed and dies as soon as it hits the library. with -g, works perfect. apparently the code output can't make up its mind what error it wants to throw, and it's not being consistent given the same inputs each time. the library as I speak of is not a .a file. it is simply a .cpp and .h file which I use in other programs on multiple compilers and platforms. I have been having no end of trouble with strcpy and strcat. they don't work. I have to use sprintf instead with djgpp (strcpy and strcat work fine on mingw-w64 4.7.0). I might investigate further to see what exactly is going on. something is broken here.