[lazarus] Lazarus crash on Win32

Horacio Jamilis hjamilis at pymesoft.com.ar
Mon Aug 25 12:04:54 EDT 2003


Ok,

What i found:

in astrings.inc - procedure PChar_To_AnsiStr - line 266:

print a -> $8 = (PCHAR) $0

print p -> $6 = (PCHAR) $a918

x/s p -> $a918:    <Address $a918 out of bounds>

print p[0] -> Error: Cannot access memory at address $a918

any hint?

Horacio

----- Original Message ----- 
From: "Micha Nelissen" <M.Nelissen at student.tue.nl>
To: <lazarus at miraclec.com>
Sent: Monday, August 25, 2003 12:29 PM
Subject: Re: [lazarus] Lazarus crash on Win32


> Horacio Jamilis wrote:
> 
> > If you tell me how I will do it.
> > 
> > I am trying.
> > 
> > I compiled with fpc 1.0.10
> > 
> > I hope the next is the stack back trace: (bt)
> > 
> > #0  $006ccc43 in PCHAR_TO_ANSISTR (A=$0, P=$a918) at astrings.inc:266
> > #1  $0068d3bd in PROPENUMPROC (WINDOW=656794, STR=$a918, DATA=-1) at
> > win32callback.inc:66
> 
> Okay, now we getting there. Now when you start gdb type:
> - 'file lazarus.exe'  (you did that, i guess)
> - 'b win32callback.inc:66'
> - 'run'
> - when it stops on win32callback.inc:66, step into the PCHAR_TO_ANSISTR 
> function with 's', then print some variables 'print a', and 'x/s p', 
> which dumps the string at location p.
> 
> HTH,
> 
> Micha.
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives
> 






More information about the Lazarus mailing list