I tried to run the latest fpdoc against tiOPF documentation. I get the following error.…
Graeme Geldenhuys wrote 25 lines
I am glad I am not alone. I mailed Michael several backtraces from gdb already.
Vincent

Mailing lists / fpc-devel / 2008-06
13 messages · 3 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
I tried to run the latest fpdoc against tiOPF documentation. I get the following error.…
I am glad I am not alone. I mailed Michael several backtraces from gdb already.
Vincent
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/
I am glad I am not alone. I mailed Michael several backtraces from gdb already. Vincent
Vincent Snijders wroteI 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/
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/
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
I recompiled fpdoc with debug information. It gave me a bit more detail, but not much to…
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.
I get the error with building the rtl docs using the makefile: Program received signal…
And I don't :(
Michael.
Well, Vincent Snijders also reported an error when building the RTL docs, but I cannot…
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/
I tried to run the latest fpdoc against tiOPF documentation. I get the following error.…
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.
Why does it work with x86_64?
Vincent
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.
Ah, I should have compiled with Range Checks :-)
Vincent
I was able to reproduce the error. But only with the I386 compiler, not with the AMD64…
2008/6/2 Michael Van Canneyt :
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/