Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-02

another fatal eror

13 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

FreeMan

I changed new version, how todo: just remove "..ents/fpspreadsheet/*" folder's file to new files. and when try lazbuild, I get this error,

Warning: TPackageLinks.UpdateUserLinks two links for file: /opt/proje_laz/components/fpspreadsheet/laz_fpspreadsheet.lpk A=laz_fpspreadsheet 1.2 B=laz_fpspreadsheet 1.4.2
Warning: TPackageLinks.UpdateUserLinks removing older link laz_fpspreadsheet 1.2
NOTE: unable to read /Users/freeman35/.lazarus/packagefiles.xml Access violation

$0000000100222D41
$00000001000779CC
$0000000100001AA7
$00000001001B71FE
$0000000100002B14
$0000000100007528
ERROR: Unable to load package

and this is in packagefiles.xml:

.....
<Item19>
<Name Value="laz_fpspreadsheet"/>
<Version Major="1" Minor="2"/>
<Filename
Value="/opt/proje_laz/components/fpspreadsheet/laz_fpspreadsheet.lpk"/> <LastUsed Value="2015/02/09 16:30:01"/>
</Item19>
<Item20>
<Name Value="laz_fpspreadsheet"/>
<Version Major="1" Minor="4" Release="2"/>
<Filename
Value="/opt/proje_laz/components/fpspreadsheet/laz_fpspreadsheet.lpk"/> <LastUsed Value="2015/02/09 17:29:23"/>
</Item20>
......

Reply by email

Mattias Gaertner
to FreeMan
Show quoted text 18 lines
I changed new version, how todo: just remove "..ents/fpspreadsheet/*" folder's file to new files. and when try lazbuild, I get this error, Warning: TPackageLinks.UpdateUserLinks two links for file: /opt/proje_laz/components/fpspreadsheet/laz_fpspreadsheet.lpk A=laz_fpspreadsheet 1.2 B=laz_fpspreadsheet 1.4.2 Warning: TPackageLinks.UpdateUserLinks removing older link laz_fpspreadsheet 1.2 NOTE: unable to read /Users/freeman35/.lazarus/packagefiles.xml Access violation $0000000100222D41 $00000001000779CC $0000000100001AA7 $00000001001B71FE $0000000100002B14 $0000000100007528 ERROR: Unable to load package

Darn. I think I found the bug and fixed it.
Please test.

Mattias

Reply by email

FreeMan
to Mattias Gaertner

not fixed,
packagefiles.xml has this lines:
...
<Item19>
<Name Value="laz_fpspreadsheet"/>
<Version Major="1" Minor="2"/>
<Filename
Value="/opt/proje_laz/components/fpspreadsheet/laz_fpspreadsheet.lpk"/> <LastUsed Value="2015/02/09 16:30:01"/>
</Item19>
<Item20>
<Name Value="laz_fpspreadsheet"/>
<Version Major="1" Minor="4" Release="2"/>
<Filename
Value="/opt/proje_laz/components/fpspreadsheet/laz_fpspreadsheet.lpk"/> <LastUsed Value="2015/02/09 19:19:39"/>
</Item20>
....
this is my command line:
./lazbuild --pcp=/Users/freeman35/.lazarus --build-all --quiet --skip-dependencies --build-ide= --ws=qt --cpu=x86_64 --compiler=ppcx64

error:
Warning: TPackageLinks.UpdateUserLinks two links for file: /opt/proje_laz/components/fpspreadsheet/laz_fpspreadsheet.lpk A=laz_fpspreadsheet 1.2 B=laz_fpspreadsheet 1.4.2
Warning: TPackageLinks.UpdateUserLinks removing older link laz_fpspreadsheet 1.2

$0000000100222BC9
ERROR: Unable to load package
Unable to open the package "my_Images".
This package was marked for installation.
lazbuild is non interactive, aborting now.

Warning: TPackageLinks.UpdateUserLinks removing older link laz_fpspreadsheet 1.2
this procedure not save or trigger "save packagefiles.xml" item 19 and 20 still there

Mattias Gaertner wrote 11 lines
> Warning: TPackageLinks.UpdateUserLinks removing older link > >laz_fpspreadsheet 1.2 > >NOTE: unable to read /Users/freeman35/.lazarus/packagefiles.xml Access > >violation > > > > $0000000100222D41 > >ERROR: Unable to load package Darn. I think I found the bug and fixed it. Please test. Mattias

Reply by email

Mattias Gaertner
to FreeMan
Show quoted text 30 lines
not fixed, packagefiles.xml has this lines: ... <Item19> <Name Value="laz_fpspreadsheet"/> <Version Major="1" Minor="2"/> <Filename Value="/opt/proje_laz/components/fpspreadsheet/laz_fpspreadsheet.lpk"/> <LastUsed Value="2015/02/09 16:30:01"/> </Item19> <Item20> <Name Value="laz_fpspreadsheet"/> <Version Major="1" Minor="4" Release="2"/> <Filename Value="/opt/proje_laz/components/fpspreadsheet/laz_fpspreadsheet.lpk"/> <LastUsed Value="2015/02/09 19:19:39"/> </Item20> .... this is my command line: ./lazbuild --pcp=/Users/freeman35/.lazarus --build-all --quiet --skip-dependencies --build-ide= --ws=qt --cpu=x86_64 --compiler=ppcx64 error: Warning: TPackageLinks.UpdateUserLinks two links for file: /opt/proje_laz/components/fpspreadsheet/laz_fpspreadsheet.lpk A=laz_fpspreadsheet 1.2 B=laz_fpspreadsheet 1.4.2 Warning: TPackageLinks.UpdateUserLinks removing older link laz_fpspreadsheet 1.2 $0000000100222BC9

Please start lazbuild in gdb and create a stacktrace.

Mattias

Reply by email

FreeMan
to Mattias Gaertner

How to do this?
typed "gdb lazbuild"
nearly all files:
...
warning:
`/Volumes/ram_disk/opt/lazarus/lcl/units/x86_64-darwin/wstoolwin.o': file time stamp mismatch.
warning:
`/Volumes/ram_disk/opt/lazarus/packager/../units/x86_64-darwin/nogui/packagedefs.o': can't open to read symbols: No such file or directory. warning:
`/Volumes/ram_disk/opt/lazarus/packager/units/x86_64-darwin/lazaruspackageintf.o': file time stamp mismatch.
(no debugging symbols found)...done.
(gdb) bt
No stack.
(gdb)

how to sent parameter ?
gdb lazbuild --pcp=/Users/freeman35/.lazarus --build-all --quiet --skip-dependencies --build-ide= --ws=qt --cpu=x86_64 --compiler=ppcx64 gdb: unrecognized option `--pcp=/Users/freeman35/.lazarus' Use `gdb --help' for a complete list of options.

Mattias Gaertner wrote
Please start lazbuild in gdb and create a stacktrace. Mattias

Reply by email

Mattias Gaertner
to FreeMan
How to do this? typed "gdb lazbuild"

gdb lazbuild
run --pcp=/Users/freeman35/.lazarus --build-all --quiet --skip-dependencies --build-ide= --ws=qt --cpu=x86_64 --compiler=ppcx64

...error...

bt

Mattias

Reply by email

FreeMan
to Mattias Gaertner

I attached results

Mattias Gaertner wrote 21 lines
On Tue, 10 Feb 2015 18:38:46 +0200 FreeMan wrote: > How to do this? > typed "gdb lazbuild" gdb lazbuild run --pcp=/Users/freeman35/.lazarus --build-all --quiet --skip-dependencies --build-ide= --ws=qt --cpu=x86_64 --compiler=ppcx64 ...error... bt Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeman35-lazbuild.zip
Type: application/x-zip-compressed
Size: 938 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150210/0e4b9b27/attachment-0001.bin>

Reply by email

FreeMan
to Mattias Gaertner

I attached results

Mattias Gaertner wrote 13 lines
On Tue, 10 Feb 2015 19:17:06 +0200 FreeMan wrote: > >I attached results Please try this: gdb lazbuild break FPC_RAISEEXCEPTION run <your params> .. bt Mattias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeman35-lazbuild.txt.zip
Type: application/x-zip-compressed
Size: 3922 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150210/8104ef5e/attachment.bin>

Reply by email

Martin Frb
to FreeMan

Open the file again in gdb, but do not run it,

For each of the addresses from the trace do

info line *0x100222C11

should (hopefully return something like)
Line 692 of "../win/sysutils.pp" starts at address 0x428421 <CONVERTERAYEARSTRING+97>
and ends at 0x428431 <CONVERTERAYEARSTRING+113>.

and also do (this time no "*")
info symbol 0x100222C11

which might give an anvwer like
FORMS_TSCREEN_$__MONITORFROMRECT$RECT$TMONITORDEFAULTTO$$TMONITOR + 48 in section .text

Show quoted text 6 lines
$0000000100222C11 $00000001000776AC $0000000100001787 $00000001001B6FBE $00000001000027F4 $0000000100007208
FreeMan wrote 24 lines
I attached results On 10.02.2015 19:33, Mattias Gaertner wrote: > On Tue, 10 Feb 2015 19:17:06 +0200 > FreeMan wrote: > >> >I attached results > Please try this: > > gdb lazbuild > break FPC_RAISEEXCEPTION > run <your params> > .. > bt > > Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150210/2edee213/attachment.html>

Reply by email

FreeMan
to Martin Frb

I added trace result

(gdb) info line *0x100222C11
Line 729 of "lazloggerbase.pas" starts at address 0x100222bd8 <DBGOUT> and ends at 0x100222c35 <DBGOUT+93>.
(gdb) info symbol 0x100222C11
LAZLOGGERBASE$_$TLAZLOGGER_$__$$_DBGOUT$array_of_const + 57 in section .text of /Volumes/ram_disk/opt/lazarus/lazbuild
(gdb) info line *0x1000776AC
Line 1425 of "lclproc.pas" starts at address 0x1000776a0 <DBGOUT> and ends at 0x1000776f3 <DBGOUT+83>.
(gdb) info symbol 0x1000776AC
LCLPROC_$$_DBGOUT$array_of_const + 12 in section .text of /Volumes/ram_disk/opt/lazarus/lazbuild
(gdb) info line *0x100001787
Line 324 of "lazbuild.lpr" starts at address 0x100001717 <ONIDEMESSAGEDIALOG+95>
and ends at 0x100001794 <ONIDEMESSAGEDIALOG+220>.
(gdb) info symbol 0x100001787
P$LAZBUILD$_$TLAZBUILDAPPLICATION_$__$$_ONIDEMESSAGEDIALOG$crc1E2F90B6 + 207 in section .text of /Volumes/ram_disk/opt/lazarus/lazbuild (gdb) info line *0x1001B6FBE
Line 1992 of "../packager/packagesystem.pas" starts at address 0x1001b6fbe <LOADAUTOINSTALLPACKAGES+582>
and ends at 0x1001b6fca
<PACKAGESYSTEM$_$TLAZPACKAGEGRAPH_$__$$_LOADAUTOINSTALLPACKAGES$TSTRINGLIST+594>. (gdb) info symbol 0x1001B6FBE
PACKAGESYSTEM$_$TLAZPACKAGEGRAPH_$__$$_LOADAUTOINSTALLPACKAGES$TSTRINGLIST
+ 582 in section .text of /Volumes/ram_disk/opt/lazarus/lazbuild (gdb) info line *0x1000027F4
Line 556 of "lazbuild.lpr" starts at address 0x1000027f3 <BUILDLAZARUSIDE+1371> and ends at 0x100002804 <BUILDLAZARUSIDE+1388>. (gdb) info symbol 0x1000027F4
P$LAZBUILD$_$TLAZBUILDAPPLICATION_$__$$_BUILDLAZARUSIDE$$BOOLEAN + 1372 in section .text of /Volumes/ram_disk/opt/lazarus/lazbuild (gdb) info line *0x100007208
Line 1422 of "lazbuild.lpr" starts at address 0x100007207 <PARSEPARAMETERS+23> and ends at 0x10000724e <PARSEPARAMETERS+94>. (gdb) info symbol 0x100007208
P$LAZBUILD$_$TLAZBUILDAPPLICATION_$__$$_PARSEPARAMETERS$$BOOLEAN + 24 in section .text of /Volumes/ram_disk/opt/lazarus/lazbuild (gdb)

Martin Frb wrote 17 lines
Open the file again in gdb, but do not run it, For each of the addresses from the trace do info line *0x100222C11 should (hopefully return something like) Line 692 of "../win/sysutils.pp" starts at address 0x428421 <CONVERTERAYEARSTRING+97> and ends at 0x428431 <CONVERTERAYEARSTRING+113>. and also do (this time no "*") info symbol 0x100222C11 which might give an anvwer like FORMS_TSCREEN_$__MONITORFROMRECT$RECT$TMONITORDEFAULTTO$$TMONITOR + 48 in section .text

Reply by email

Martin Frb
to FreeMan
FreeMan wrote 11 lines
I fix my problem. Open IDE and remove some component and rebuild, now I can build via lazbuild. But if you wanna still try find this bug, I backedup packagefiles.xml file. If lazbuild work with this file, error still going on. On 10.02.2015 21:16, Martin Frb wrote: > > Open the file again in gdb, but do not run it, > > For each of the addresses from the trace do

Mattias wil have to look at the trace. I just added the gdb tricks.

There is no actually a crash, but a call to IDEMessageDialog, which includes dumping the trace.

Reply by email