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 Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 23 Mar 2002 01:03:05 +0100 From: Pavel Tsekov X-Mailer: The Bat! (v1.53d) UNREG / CD5BF9353B3B7091 Reply-To: Pavel Tsekov X-Priority: 3 (Normal) Message-ID: <18911584517.20020323010305@gmx.net> To: cygwin-apps AT cygwin DOT com CC: "Seitz, Matt" , "'cygwin AT cygwin DOT com'" , "Robert Collins" Subject: [Possible BUG and a fix] Re[2]: Setup.Exe causes Application Error at 0x78001750 In-Reply-To: <1998921738.20020323001842@gmx.net> References: <2D0AFEFEE711D611923E009027D39F2B052244 AT cdserv DOT meridian-data DOT com> <1998921738 DOT 20020323001842 AT gmx DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ok - more inf... I think I've found the problem... site_list_type::init (...) [snip some code] char *dp = new char[2 * newurl.size() + 3]; while (dot != dots) { if (*dot == '.' || *dot == '/') { char *sp; if (dot[3] == 0) *dp++ = '~'; /* sort .com/.edu/.org together */ for (sp = dot + 1; *sp && *sp != '.' && *sp != '/';) *dp++ = *sp++; *dp++ = ' '; } --dot; } *dp++ = ' '; strcpy (dp, dots); delete[] dots; key = String (dp); LOOK HERE - This is not right - we should delete at the base of the block, not somewhere in the middle of it. delete[] dp; We can do something like that char *dp = .... char *dp_save = dp; .... delete[] dp_save; Saturday, March 23, 2002, 12:18:42 AM, you wrote: PT> Hello, PT> I want to notify all interested people that I've undoubtfully located PT> the function which causes this problem - it's __builtin_vector_delete, PT> and more specifically a call to free() inside its code. PT> As I cant reproduce currently this behaviour on my machine I'm stuck PT> to looking at the sources, still I have a suggestion for those PT> interested in debuggin this - I guess some memory is freed twice ... PT> I'd point the String and the cistring class (used in the progress PT> class) of course I maybe wrong ... I'll keep looking and provide more PT> info PT> Wednesday, March 20, 2002, 8:47:39 PM, you wrote: SM>> Windows NT 4 is reporting an Application Error when I run Setup.Exe. The SM>> error reads: SM>> The instruction at "0x78001750" referenced memory at "0x20b078e9". SM>> The memory could not be "read". SM>> At first the program runs fine. The splash screen identifies it as SM>> "setup.exe version 2.194.2.15". I then go through a number of options SM>> screens which contain the settings from the last time I successfully ran a SM>> previous version of setup.exe: SM>> Install from internet SM>> Root directory: D:\Progra~1\cygwin SM>> Install for: Just Me SM>> Default text type: Unix SM>> Local package directory: D:\Downloads\cygwin.com SM>> Direct connection SM>> At this point, a dialog appears that says: SM>> Downloading... SM>> mirrors.lst SM>> 0% (0k/4k) 0.0 kb/s SM>> And then I get the crash. I have Dr. Watson and User.Dmp logs I can SM>> forward. PT> -- PT> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple PT> Bug reporting: http://cygwin.com/bugs.html PT> Documentation: http://cygwin.com/docs.html PT> FAQ: http://cygwin.com/faq/ -- Best regards, Pavel mailto:ptsekov AT gmx DOT net -- 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/