Sign in Join

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

Mailing lists / lazarus / 2011-12

Bug on Lazarus Startup

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

William Oliveira Ferreira

somedays ago i?ve wrote a mail about a bug on lazarus startup. I don?t remember the date, the subject or other thing that should help to localize it.

The bug heappens on the Windows 7 32bits computer that i use on my work. When start lazarus (also after a clean uninstall, removing config files from appdata and the C:\lazarus)
On startup it raises this exception:

[Window Title]
Lazarus
[Content]
directory not absolute "\".
Pressione Ok para ignorar e correr o risco de corrup??o de dados. Cancelar para finalizar o programa.
//hit ok to ignore and take the risk of data corruption. //cancel to close the program
[OK] [Cancelar]

I?m using laz version < 32000 so many days because every new laz download takes this error.

I don?t know why i?ve tried to add the freepascal binaries to Path (environment variable) and it starts ok.

So, Why the installer doesn?t auto add the freepascal binaries to path OR does lazarus doesn?t search for this path?
________________________________
William de Oliveira Ferreira
Bacharel em Sistemas de Informa??o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111222/f9b359c2/attachment.html>

Reply by email

Mattias Gaertner
to William Oliveira Ferreira
Show quoted text 19 lines
somedays ago i?ve wrote a mail about a bug on lazarus startup. I don?t remember the date, the subject or other thing that should help to localize it. The bug heappens on the Windows 7 32bits computer that i use on my work. When start lazarus (also after a clean uninstall, removing config files from appdata and the C:\lazarus) On startup it raises this exception: [Window Title] Lazarus [Content] directory not absolute "\". Pressione Ok para ignorar e correr o risco de corrup??o de dados. Cancelar para finalizar o programa. //hit ok to ignore and take the risk of data corruption. //cancel to close the program [OK] [Cancelar]

Can you create a backtrace?
See
http://wiki.lazarus.freepascal.org/Creating_a_Backtrace_with_GDB

Show quoted text 5 lines
I?m using laz version < 32000 so many days because every new laz download takes this error. I don?t know why i?ve tried to add the freepascal binaries to Path (environment variable) and it starts ok.

Yes, the IDE searches in the 'PATH' environment variable and some common paths.

So, Why the installer doesn?t auto add the freepascal binaries to path OR does lazarus doesn?t search for this path?

Search for what path?

Mattias

Reply by email

William Oliveira Ferreira
to Mattias Gaertner
So, Why the installer doesn?t auto add the freepascal binaries to path OR does lazarus doesn?t search for this path?

Search for what path?

The FreePascal binaries path that cames with Lazarus, 'cos lazarus works only when it finds freepascal files...

The backtrace:
______

Microsoft Windows [vers?o 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Todos os direitos reservados.

C:\Users\informatica>cd
C:\Users\informatica

C:\Users\informatica>cd\

C:\>cd Lazarus

C:\Lazarus>lazarus.exe

C:\Lazarus>gdb lazarus.exe
GNU gdb (GDB) 7.3
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from c:\lazarus\lazarus.exe...done. (gdb) break fpc_raiseexception
Breakpoint 1 at 0x40d006
(gdb) run
Starting program: c:\lazarus\lazarus.exe
[New Thread 2952.0xf9c]
[New Thread 2952.0x1354]

Breakpoint 1, 0x0040d006 in fpc_raiseexception ()
(gdb) backtrace
#0 0x0040d006 in fpc_raiseexception ()
#1 0x0064bf23 in RAISEDIRNOTABSOLUTE (parentfp=0xba2f60c) at directorycacher.pas:694
#2 0x0064bdc8 in TCTDIRECTORYCACHE__CREATE (THEDIRECTORY=0xfe79018 '\', THEPOOL=0xcbf40, vmt=0xeeb1cc, this=<error reading variable>) at directorycacher.pas:701
#3 0x0064d8c2 in TCTDIRECTORYCACHEPOOL__GETCACHE (DIRECTORY=0xfe78f78 '\\', CREATEIFNOTEXISTS=true, DOREFERENCE=false, this=<error reading variable>)
at directorycacher.pas:1408
#4 0x0064df58 in TCTDIRECTORYCACHEPOOL__FINDDISKFILENAME ( FILENAME=0xff504a0 '\\dados', SEARCHCASEINSENSITIVE=false, this=<error reading variable>, result=0xff502c0 '\\dados') at directorycacher.pas:1616
#5 0x0064d8ad in TCTDIRECTORYCACHEPOOL__GETCACHE ( DIRECTORY=0xff503e0 '\\dados\', CREATEIFNOTEXISTS=true, DOREFERENCE=false, this=<error reading variable>)
at directorycacher.pas:1407
#6 0x0064df58 in TCTDIRECTORYCACHEPOOL__FINDDISKFILENAME ( FILENAME=0xff50420 '\\dados\informatica', SEARCHCASEINSENSITIVE=false, this=<error reading variable>, result=0xff50400 '\\dados\informatica') at directorycacher.pas:1616
#7 0x0064d8ad in TCTDIRECTORYCACHEPOOL__GETCACHE ( DIRECTORY=0xff21078 '\\dados\informatica\', CREATEIFNOTEXISTS=true, DOREFERENCE=false, this=<error reading variable>)
at directorycacher.pas:1407
#8 0x0064df58 in TCTDIRECTORYCACHEPOOL__FINDDISKFILENAME ( FILENAME=0xff210d8 '\\dados\informatica\Documentos', SEARCHCASEINSENSITIVE=false, this=<error reading variable>, result=0xff21048 '\\dados\informatica\Documentos') at directorycacher.pas:1616
#9 0x0064d8ad in TCTDIRECTORYCACHEPOOL__GETCACHE ( DIRECTORY=0xff21138 '\\dados\informatica\Documentos\', CREATEIFNOTEXISTS=true, DOREFERENCE=false, this=<error reading variable>)
at directorycacher.pas:1407
#10 0x0064df58 in TCTDIRECTORYCACHEPOOL__FINDDISKFILENAME ( FILENAME=0x10102ec8 '\\dados\informatica\Documentos\Borland Studio Projects'
, SEARCHCASEINSENSITIVE=false, this=<error reading variable>, result=0x10102f18 '\\dados\informatica\Documentos\Borland Studio Projects')
at directorycacher.pas:1616
#11 0x0064d8ad in TCTDIRECTORYCACHEPOOL__GETCACHE ( DIRECTORY=0x10102dd8 '\\dados\informatica\Documentos\Borland Studio Projects
\', CREATEIFNOTEXISTS=true, DOREFERENCE=false, this=<error reading variable>)
at directorycacher.pas:1407
#12 0x0064df58 in TCTDIRECTORYCACHEPOOL__FINDDISKFILENAME ( FILENAME=0x10102d38 '\\dados\informatica\Documentos\Borland Studio Projects\
Bpl', SEARCHCASEINSENSITIVE=false, this=<error reading variable>, result=0x10102d88 '\\dados\informatica\Documentos\Borland Studio Projects\Bp
l') at directorycacher.pas:1616
#13 0x0064d8ad in TCTDIRECTORYCACHEPOOL__GETCACHE ( DIRECTORY=0xff31e78 '\\dados\informatica\Documentos\Borland Studio Projects\
Bpl\', CREATEIFNOTEXISTS=true, DOREFERENCE=false,
this=<error reading variable>) at directorycacher.pas:1407 #14 0x0064daf2 in TCTDIRECTORYCACHEPOOL__FILEEXISTS ( FILENAME=0x18a898 '\\dados\informatica\Documentos\Borland Studio Projects\Bp
l\ppc386.exe', this=<error reading variable>) at directorycacher.pas:1457 #15 0x00667362 in FILEEXISTSCACHED (
AFILENAME=0x18a7d8 '\\dados\informatica\Documentos\Borland Studio Projects\B
pl\ppc386.exe') at lazfilecache.pas:132
#16 0x00664740 in SEARCHFILEINDIR (FILENAME=0xff3b790 'ppc386.exe', BASEDIRECTORY=0x1000bef8 '\\dados\informatica\Documentos\Borland Studio Proj
ects\Bpl\', SEARCHCASE=CTSFCDEFAULT,
result=0x18a7d8 '\\dados\informatica\Documentos\Borland Studio Projects\Bpl\
ppc386.exe') at fileprocs.pas:1456
#17 0x00664cc4 in SEARCHFILEINPATH (FILENAME=0xff3b790 'ppc386.exe', BASEPATH=0xff4b620 'C:\Lazarus',
SEARCHPATH=0xe686de8
'C:\Windows\Microsoft.NET\Framework\v1.1.4322\;C:\Progr am Files\Borland\BDS\4.0\Bin;C:\Program Files\Common Files\Microsoft Shared\Wind
ows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C'..., DELIMITER=0xee1b94 ';', SEARCHCASE=CTSFCDEFAULT,
result=0x18a7d8 '\\dados\informatica\Documentos\Borland Studio Projects\Bpl\
ppc386.exe') at fileprocs.pas:1540
#18 0x00643541 in TFPCTARGETCONFIGCACHE__FINDREALCOMPILERINPATH ( ATARGETCPU=0xff387f0 'i386', RESOLVELINKS=true,
this=<error reading variable>,
result=0x18a7d8 '\\dados\informatica\Documentos\Borland Studio Projects\Bpl\
ppc386.exe') at definetemplates.pas:7202
#19 0x0064256b in TFPCTARGETCONFIGCACHE__NEEDSUPDATE ( this=<error reading variable>) at definetemplates.pas:7057 #20 0x00891b7b in CHECKCOMPILERQUALITY (
AFILENAME=0xcf848 'C:\Lazarus\fpc\2.5.1\bin\i386-win32\fpc.exe', NOTE=0x0,
TESTSRCFILENAME=0xff31dd8
'C:\Users\informatica\AppData\Local\lazarus\compil ertest.pas') at initialsetupdlgs.pas:394
#21 0x004713bb in TMAINIDE__INITCODETOOLBOSS (this=<error reading variable>) at main.pp:14565
#22 0x004422d1 in TMAINIDE__CREATE (THEOWNER=0x124970, vmt=0xd005c0, this=<error reading variable>) at main.pp:1390
#23 0x004031db in main () at lazarus.pp:107
(gdb)

________________________________
William de Oliveira Ferreira
Bacharel em Sistemas de Informa??o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111223/d8fb7c7d/attachment-0001.html>

Reply by email

Mattias Gaertner
to William Oliveira Ferreira
Show quoted text 8 lines
> So, Why the installer doesn?t auto add the freepascal binaries to path OR > does lazarus doesn?t search for this path? Search for what path? The FreePascal binaries path that cames with Lazarus, 'cos lazarus works only when it finds freepascal files...

As far as I know the windows installer stores the path.

Show quoted text 33 lines
The backtrace: [...] C:\Lazarus>gdb lazarus.exe GNU gdb (GDB) 7.3 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html > This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "mingw32". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from c:\lazarus\lazarus.exe...done. (gdb) break fpc_raiseexception Breakpoint 1 at 0x40d006 (gdb) run Starting program: c:\lazarus\lazarus.exe [New Thread 2952.0xf9c] [New Thread 2952.0x1354] Breakpoint 1, 0x0040d006 in fpc_raiseexception () (gdb) backtrace #0 0x0040d006 in fpc_raiseexception () #1 0x0064bf23 in RAISEDIRNOTABSOLUTE (parentfp=0xba2f60c) at directorycacher.pas:694 #2 0x0064bdc8 in TCTDIRECTORYCACHE__CREATE (THEDIRECTORY=0xfe79018 '\', THEPOOL=0xcbf40, vmt=0xeeb1cc, this=<error reading variable>) at directorycacher.pas:701 #3 0x0064d8c2 in TCTDIRECTORYCACHEPOOL__GETCACHE (DIRECTORY=0xfe78f78 '\\', CREATEIFNOTEXISTS=true, DOREFERENCE=false, this=<error reading variable>) at directorycacher.pas:1408

Thanks. I added a check for UNC paths. Please try with revision 34374.

Mattias

Reply by email

William Oliveira Ferreira
to Mattias Gaertner

ok, tomorow morning i'll test it...

thanks....

________________________________
William de Oliveira Ferreira
Bacharel em Sistemas de Informa??o

2011/12/23 Mattias Gaertner

Show quoted text 63 lines
On Fri, 23 Dec 2011 15:36:38 -0200 William Oliveira Ferreira wrote: > > So, Why the installer doesn?t auto add the freepascal binaries to path OR > > does lazarus doesn?t search for this path? > > Search for what path? > > > The FreePascal binaries path that cames with Lazarus, 'cos lazarus works > only when it finds freepascal files... As far as I know the windows installer stores the path. > The backtrace: >[...] > C:\Lazarus>gdb lazarus.exe > GNU gdb (GDB) 7.3 > Copyright (C) 2011 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later < http://gnu.org/licenses/gpl.html > > > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "mingw32". > For bug reporting instructions, please see: > <http://www.gnu.org/software/gdb/bugs/>... > Reading symbols from c:\lazarus\lazarus.exe...done. > (gdb) break fpc_raiseexception > Breakpoint 1 at 0x40d006 > (gdb) run > Starting program: c:\lazarus\lazarus.exe > [New Thread 2952.0xf9c] > [New Thread 2952.0x1354] > > Breakpoint 1, 0x0040d006 in fpc_raiseexception () > (gdb) backtrace > #0 0x0040d006 in fpc_raiseexception () > #1 0x0064bf23 in RAISEDIRNOTABSOLUTE (parentfp=0xba2f60c) > at directorycacher.pas:694 > #2 0x0064bdc8 in TCTDIRECTORYCACHE__CREATE (THEDIRECTORY=0xfe79018 '\', > THEPOOL=0xcbf40, vmt=0xeeb1cc, this=<error reading variable>) > at directorycacher.pas:701 > #3 0x0064d8c2 in TCTDIRECTORYCACHEPOOL__GETCACHE (DIRECTORY=0xfe78f78 '\\', > CREATEIFNOTEXISTS=true, DOREFERENCE=false, this=<error reading > variable>) > at directorycacher.pas:1408 Thanks. I added a check for UNC paths. Please try with revision 34374. 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/20111223/c1d08dba/attachment.html>

Reply by email