This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Possible BUG and a fix] Re[2]: Setup.Exe causes Application Error at 0x78001750


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@gmx.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]