delorie.com/archives/browse.cgi | search |
From: | "Mark E." <snowball3 AT bigfoot DOT com> |
To: | djgpp-workers AT delorie DOT com |
Date: | Sun, 20 May 2001 10:02:05 -0400 |
MIME-Version: | 1.0 |
Subject: | Re: realloc enhancement |
Message-ID: | <3B07961D.23839.FDA2F@localhost> |
In-reply-to: | <200105201203.OAA21918@mother.ludd.luth.se> |
References: | <3B0684BB DOT 6107 DOT F8C99 AT localhost> from "Mark E." at May 19, 2001 02:35:39 PM |
X-mailer: | Pegasus Mail for Win32 (v3.12c) |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> How did you trace it down? > I'll try. The problem occured during exit but only when profiling. This meant the problem was triggered in the function called at exit when profiling that writes out gmon.out. So I disabled the code that wrote out gmon.out and the program didn't crash. I then enabled one line, rebuilt libc, rebuilt the trivial program and then ran it. If it didn't crash, I enabled one more line and repeated the process until the crash occured again. Turned out the crash occured in the write call that writes out histogram data. I ran the program in rhide, put a breakpoint on that line, and then traced what happened in write(). Mark
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |