From: Bernd Becker Newsgroups: comp.os.msdos.djgpp Subject: Re: problems with YAMD (long) Date: Wed, 30 Aug 2000 01:32:23 +0100 Organization: (Posted via) INKA e.V. http://www.inka.de/ Lines: 46 Message-ID: References: <9003-Sun27Aug2000211255+0300-eliz AT is DOT elta DOT co DOT il> NNTP-Posting-Host: ccclxviii.yapay.inka.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sapa.inka.de 967592034 2666 212.227.15.242 (29 Aug 2000 23:33:54 GMT) X-Complaints-To: newsmaster AT inka DOT de NNTP-Posting-Date: 29 Aug 2000 23:33:54 GMT X-Newsreader: Forte Agent 1.8/32.548 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >> a. the gstring class: it crashes with SIGSEGV while strcpy()'ing the >> argument of the constructor into the classes char * but the log file >> does not contain any entries by YAMD. > >What entries by YAMD did you expect? Well, it crashes at a point that is perfectly normal when compiled with GCC, so I thought it would also make an 'ERROR' entry into its log file or something *shrugs*. >> b. CFG library's test.c : YAMD finds 3 memory leaks, one in LIBC or so >> it seems !! >> >> WARNING: Memory leak >> Address 0x17f000, size 16384 >> Allocated by malloc at >> BEGIN TRACEBACK >> 0x00012e63 __flsbuf+67 > >This is not a memory leak: I thought so, but mentioned it anyways. >> Shutting down Allegro >> Exiting due to signal SIGSEGV >> Page fault at eip=00056e10, error=0004 > >error=0004 means the program tried to read from an address that is >outside allocated limits. > >I'd say, forget the second crash for a while and concentrate on the >first one, it looks like a real bug. When you solve the first >problem, rerun the program and see if there's more. I added the allegro_init() function to an other program with the same result. It got in a loop inside the get_config_string() function and crashed. So it's definitely something inside Allegro and not related to my code. On the other hand someone who uses Linux told me he doesn't have any problems with Allegro/YAMD which either means it's a DOS related problem or my computer doesn't like YAMD very much :-< But I did do some serious debugging (not using YAMD) and found out that I had overlooked something inside the doubly linked list code... *bashes head against wall*... and since then my program doesn't crash any more :-> Thanks for your help, Bernd