Sign in Join

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

Mailing lists / fpc-devel / 2008-06

Re: fpdoc 2.3.1 errors

13 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Vincent Snijders
to Graeme Geldenhuys: I tried to run the latest fpdoc against tiOPF documentation. I get the following error.…
Graeme Geldenhuys wrote 25 lines
Hi Michael, I tried to run the latest fpdoc against tiOPF documentation. I get the following error. Any way I can generate a more detailed error message for you? ./build_core.sh FPDoc - Free Pascal Documentation Tool Version 2.3.1 [2008/06/02] (c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, Writing 3003 pages... An unhandled exception occurred at $08056FF3 : EAccessViolation : Access violation $08056FF3 $080B0206 $080AB00E $080AB2E5 $080B4E56 $080497BD $080499B3

I am glad I am not alone. I mailed Michael several backtraces from gdb already.

Vincent

Reply by email

Graeme Geldenhuys

Hi Michael,

I tried to run the latest fpdoc against tiOPF documentation. I get the following error. Any way I can generate a more detailed error message for you?

./build_core.sh
FPDoc - Free Pascal Documentation Tool
Version 2.3.1 [2008/06/02]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther,

Writing 3003 pages...
An unhandled exception occurred at $08056FF3 :
EAccessViolation : Access violation
$08056FF3
$080B0206
$080AB00E
$080AB2E5
$080B4E56
$080497BD
$080499B3

I just tried with my copy of fpdoc for version 2.2.1 (21 April update) and it works fine.

./build_core.sh
FPDoc - Free Pascal Documentation Tool
Version 2.2.1 [2008/04/21]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther,

Writing 2975 pages...
Done.

Attached is my 'build_core.sh' file. I also tried it by removing the --import and --content lines, but it makes no difference.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Vincent Snijders: I am glad I am not alone. I mailed Michael several backtraces from gdb already. Vincent
Vincent Snijders wrote
I am glad I am not alone. I mailed Michael several backtraces from gdb already.

I recompiled fpdoc with debug information. It gave me a bit more detail, but not much to go on....

./t1.sh
FPDoc - Free Pascal Documentation Tool
Version 2.3.1 [2008/06/02]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther,

Writing 3003 pages...
An unhandled exception occurred at $080570B3 :
EAccessViolation : Access violation
$080570B3
$080B38DC THTMLWRITER__CREATEPAGEBODY, line 2135 of dw_html.pp $080AE187 THTMLWRITER__CREATEHTMLPAGE, line 644 of dw_html.pp $080AE4B1 THTMLWRITER__WRITEHTMLPAGES, line 693 of dw_html.pp $080B8909 THTMLWRITER__WRITEDOC, line 3278 of dw_html.pp $08049860 CREATEDOCUMENTATION, line 267 of fpdoc.pp $08049A67 main, line 290 of fpdoc.pp

I then tried with only a subset of my units and I started having success. In the end I found there is one unit causing the issue. 'tiutils.pas'. Remove that from the fpdoc parameter list and it works fine.

Maybe some formatting has changed or it uses a feature of fpdoc which is not well tested. I have no idea really. I'll go through the tiutils.xml file to see if I can spot something obvious. I'm also going to generate a new skeleton tiutils.xml with makeskel to see what it does. I'll report back.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys
Graeme Geldenhuys wrote 5 lines
Maybe some formatting has changed or it uses a feature of fpdoc which is not well tested. I have no idea really. I'll go through the tiutils.xml file to see if I can spot something obvious. I'm also going to generate a new skeleton tiutils.xml with makeskel to see what it does. I'll report back.

I couldn't find anything (obvious) wrong with the tiutils.xml file. I also tried with a freshly created tiutils.xml from makeskel and still no luck. :-(

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Vincent Snijders
to Graeme Geldenhuys
Graeme Geldenhuys wrote 10 lines
On 02/06/2008, Graeme Geldenhuys wrote: > Maybe some formatting has changed or it uses a feature of fpdoc which > is not well tested. I have no idea really. I'll go through the > tiutils.xml file to see if I can spot something obvious. I'm also > going to generate a new skeleton tiutils.xml with makeskel to see what > it does. I'll report back. I couldn't find anything (obvious) wrong with the tiutils.xml file. I also tried with a freshly created tiutils.xml from makeskel and still no luck. :-(

I get the error with building the rtl docs using the makefile: Program received signal SIGSEGV, Segmentation fault. 0x080570b3 in fpc_reraise ()
(gdb) bt
#0 0x080570b3 in fpc_reraise ()
#1 0xb6a66af0 in ?? ()
#2 0x080b4372 in THTMLWRITER__CREATEPACKAGEINDEX (this=0xb6b079b0) at dw_html.pp:2308 #3 0x080b38dc in THTMLWRITER__CREATEPAGEBODY (AELEMENT=0xb6a66af0, ASUBPAGEINDEX=8, this=0xb6b079b0) at dw_html.pp:2135
#4 0x080ae187 in THTMLWRITER__CREATEHTMLPAGE (AELEMENT=0xb6a66af0, ASUBPAGEINDEX=8, this=0xb6b079b0) at dw_html.pp:644
#5 0x080ae4b1 in THTMLWRITER__WRITEHTMLPAGES (this=0xb6b079b0) at dw_html.pp:693 #6 0x080b8909 in THTMLWRITER__WRITEDOC (this=0xb6b079b0) at dw_html.pp:3278 #7 0x08049860 in CREATEDOCUMENTATION () at fpdoc.pp:267 #8 0x08049a67 in main () at fpdoc.pp:290

Vincent

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys: I recompiled fpdoc with debug information. It gave me a bit more detail, but not much to…
Graeme Geldenhuys wrote 7 lines
On 02/06/2008, Vincent Snijders wrote: > > I am glad I am not alone. I mailed Michael several backtraces from gdb > already. I recompiled fpdoc with debug information. It gave me a bit more detail, but not much to go on....

Well, Vincent Snijders also reported an error when building the RTL docs, but I cannot reproduce it, nevertheless everything is committed, so I would expect that if we use the same code, the crash should occur both with me and with him.

It's very strange. Can you give me the unit that causes this ? Maybe I can then try to reproduce it, and subsequently fix it.

Michael.

Reply by email

Michael Van Canneyt
to Vincent Snijders: I get the error with building the rtl docs using the makefile: Program received signal…
Vincent Snijders wrote 13 lines
Graeme Geldenhuys schreef: > On 02/06/2008, Graeme Geldenhuys wrote: > > Maybe some formatting has changed or it uses a feature of fpdoc which > > is not well tested. I have no idea really. I'll go through the > > tiutils.xml file to see if I can spot something obvious. I'm also > > going to generate a new skeleton tiutils.xml with makeskel to see what > > it does. I'll report back. > > I couldn't find anything (obvious) wrong with the tiutils.xml file. I > also tried with a freshly created tiutils.xml from makeskel and still > no luck. :-( I get the error with building the rtl docs using the makefile:

And I don't :(

Michael.

Show quoted text 24 lines
Program received signal SIGSEGV, Segmentation fault. 0x080570b3 in fpc_reraise () (gdb) bt #0 0x080570b3 in fpc_reraise () #1 0xb6a66af0 in ?? () #2 0x080b4372 in THTMLWRITER__CREATEPACKAGEINDEX (this=0xb6b079b0) at #dw_html.pp:2308 #3 0x080b38dc in THTMLWRITER__CREATEPAGEBODY (AELEMENT=0xb6a66af0, #ASUBPAGEINDEX=8, this=0xb6b079b0) at dw_html.pp:2135 #4 0x080ae187 in THTMLWRITER__CREATEHTMLPAGE (AELEMENT=0xb6a66af0, ASUBPAGEINDEX=8, this=0xb6b079b0) at dw_html.pp:644 #5 0x080ae4b1 in THTMLWRITER__WRITEHTMLPAGES (this=0xb6b079b0) at #dw_html.pp:693 #6 0x080b8909 in THTMLWRITER__WRITEDOC (this=0xb6b079b0) at dw_html.pp:3278 #7 0x08049860 in CREATEDOCUMENTATION () at fpdoc.pp:267 #8 0x08049a67 in main () at fpdoc.pp:290 Vincent _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt: Well, Vincent Snijders also reported an error when building the RTL docs, but I cannot…
Michael Van Canneyt wrote 5 lines
Well, Vincent Snijders also reported an error when building the RTL docs, but I cannot reproduce it, nevertheless everything is committed, so I would expect that if we use the same code, the crash should occur both with me and with him.

I haven't tried generating the FPC docs itself. I'll give that a go.

It's very strange. Can you give me the unit that causes this ? Maybe I can then try to reproduce it, and subsequently fix it.

I send you the attachment in private.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys: I tried to run the latest fpdoc against tiOPF documentation. I get the following error.…
Graeme Geldenhuys wrote 5 lines
Hi Michael, I tried to run the latest fpdoc against tiOPF documentation. I get the following error. Any way I can generate a more detailed error message for you?

I was able to reproduce the error. But only with the I386 compiler, not with the AMD64 compiler. (I always work with the 64-bit compiler).

The culprit was

  function  _tiFloatToStr(      const AValue : Extended;
                                  const APrecision : integer;
                                  const AFormat : string): string;

Which starts with a _ and not a letter. So all '_' identifiers are now also listed under 'A'.

Took me quite some time to figure this out because of the i386/x86_64 issue :(

Anyway, it is fixed.

Michael.

Reply by email

Vincent Snijders
to Michael Van Canneyt
Michael Van Canneyt wrote 23 lines
On Mon, 2 Jun 2008, Graeme Geldenhuys wrote: > Hi Michael, > > I tried to run the latest fpdoc against tiOPF documentation. I get the > following error. Any way I can generate a more detailed error message > for you? I was able to reproduce the error. But only with the I386 compiler, not with the AMD64 compiler. (I always work with the 64-bit compiler). The culprit was function _tiFloatToStr( const AValue : Extended; const APrecision : integer; const AFormat : string): string; Which starts with a _ and not a letter. So all '_' identifiers are now also listed under 'A'. Took me quite some time to figure this out because of the i386/x86_64 issue :(

Why does it work with x86_64?

Vincent

Reply by email

Michael Van Canneyt
to Vincent Snijders
Vincent Snijders wrote 27 lines
Michael Van Canneyt schreef: > > On Mon, 2 Jun 2008, Graeme Geldenhuys wrote: > > > Hi Michael, > > > > I tried to run the latest fpdoc against tiOPF documentation. I get the > > following error. Any way I can generate a more detailed error message > > for you? > > I was able to reproduce the error. But only with the I386 compiler, not > with the AMD64 compiler. (I always work with the 64-bit compiler). > > The culprit was > > function _tiFloatToStr( const AValue : Extended; > const APrecision : integer; > const AFormat : string): string; > > Which starts with a _ and not a letter. So all '_' identifiers are now > also listed under 'A'. > > Took me quite some time to figure this out because of the i386/x86_64 issue > :( > Why does it work with x86_64?

Hell if I know :(

The problem was

  Lists : Arrar['A'..'Z'] of TstringList;

And at a certain point I accessed it with an index '_'. No telling what happens then :(

Michael.

Michael.

Reply by email

Vincent Snijders
to Michael Van Canneyt
Michael Van Canneyt wrote 12 lines
>> > Why does it work with x86_64? Hell if I know :( The problem was Lists : Arrar['A'..'Z'] of TstringList; And at a certain point I accessed it with an index '_'. No telling what happens then :(

Ah, I should have compiled with Range Checks :-)

Vincent

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt: I was able to reproduce the error. But only with the I386 compiler, not with the AMD64…

2008/6/2 Michael Van Canneyt :

Show quoted text 14 lines
I was able to reproduce the error. But only with the I386 compiler, not with the AMD64 compiler. (I always work with the 64-bit compiler). The culprit was function _tiFloatToStr( const AValue : Extended; const APrecision : integer; const AFormat : string): string; Which starts with a _ and not a letter. So all '_' identifiers are now also listed under 'A'. Took me quite some time to figure this out because of the i386/x86_64 issue :( Anyway, it is fixed.

Strange one, but thank you for you troubles and quick response. I'll test some more seems I now have one more reason to put in a claim for a 64bit work PC. The FPC compiler at included applications just work! :-)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email