[fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Bruce Tulloch
After a random but very long period of time (i.e. very many successful calls) I get a SEGV in the built-in function fpc_AnsiStr_Decr_Ref. GDB reports the argument to fpc_AnsiStr_Decr_Ref (the string who's reference is to be decremented) is nil (i.e. 0x0). Prima facie, that's the reason for the

[fpc-pascal] Re: FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Bruce Tulloch
I should clarify, foo is a virtual method of an object, not a regular function. -b On Wed, May 8, 2013 at 4:13 PM, Bruce Tulloch pas...@causal.com wrote: After a random but very long period of time (i.e. very many successful calls) I get a SEGV in the built-in function fpc_AnsiStr_Decr_Ref.

Re: [fpc-pascal] Re: Is THostResolver creating a thread?

2013-05-08 Thread Michael Van Canneyt
On Wed, 8 May 2013, silvioprog wrote: Oops, 2013/5/8 silvioprog silviop...@gmail.com [...] uses   resolve, winsock; procedure TForm1.Button1Click(Sender: TObject); var   FHostEntry: PHostEnt; begin   FHostEntry := gethostbyname('www.google.com.br'); end; ...

Re: [fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Michael Van Canneyt
On Wed, 8 May 2013, Bruce Tulloch wrote:  After a random but very long period of time (i.e. very many successful calls) I get a SEGV in the built-in function fpc_AnsiStr_Decr_Ref. GDB reports the argument to fpc_AnsiStr_Decr_Ref (the string who's reference is to be decremented) is nil

RE: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Fred van Stappen
Hello. I want add access to AT-SPI interface. http://en.wikipedia.org/wiki/Assistive_Technology_Service_Provider_Interface Does it exist a pascal header for that ? Does anybody know how to do it, via fpc, not lcl ? Thanks. Toc, toc, toc, is there anybody here ? Nobody have some experience with

RE: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Michael Van Canneyt
On Wed, 8 May 2013, Fred van Stappen wrote: Hello. I want add access to AT-SPI interface. http://en.wikipedia.org/wiki/Assistive_Technology_Service_Provider_Interface Does it exist a pascal header for that ? Does anybody know how to do it, via fpc, not lcl ? Thanks. Toc, toc, toc, is there

Re: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Michael Schnell
On 05/08/2013 10:07 AM, Fred van Stappen wrote: Toc, toc, toc, is there anybody here ? You hitchhiked a running forum thread. Nobody likes to answer on such indecent posts. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Sven Barth
Am 08.05.2013 10:07, schrieb Fred van Stappen: Hello. I want add access to AT-SPI interface. http://en.wikipedia.org/wiki/Assistive_Technology_Service_Provider_Interface http://en.wikipedia.org/wiki/Assistive_Technology_Service_Provider_Interface Does it exist a pascal header for that ? Does

Re: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Sven Barth
Am 08.05.2013 10:16, schrieb Michael Schnell: On 05/08/2013 10:07 AM, Fred van Stappen wrote: Toc, toc, toc, is there anybody here ? You hitchhiked a running forum thread. Nobody likes to answer on such indecent posts. Except to tell the writer about his/her indecency :) Regards, Sven

Re: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Michael Schnell
On 05/08/2013 10:17 AM, Sven Barth wrote: Except to tell the writer about his/her indecency :) ... if (s)he insists :-) -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

RE: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Fred van Stappen
Except to tell the writer about his/her indecency :) Yep, sorry but with my indecent PS:..., already 5 answers !... So the question must be : PS : Why must i be indecent to have some answers... Thanks and sorry to disturb you.

Re: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Sven Barth
Am 08.05.2013 10:34, schrieb Fred van Stappen: The point is nevertheless that you answered to an existing thread with a completely new/unrelated question. OK, my fault, i wanted to answer to my own tread an that answer appears like a new one ( i used ( RE: ... ) in place of (Re: ...). ).

RE: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Fred van Stappen
The C headers are documented here (I don't know where they are located though): https://developer.gnome.org/at-spi-cspi/stable/ Also useable might be this: http://accessibility.kde.org/developer/atk.php#coreclasses Many thanks Sven, gonna study it...

[fpc-pascal] Strange error message

2013-05-08 Thread Darius Blaszyk
I'm working on a glut app but I keep on getting the message: Error: Can't assign local procedure/function to procedure variable The error is at this line: glutDisplayFunc(@redrawfunc); And the callback (which is declared in the same .inc file) is declared as: procedure redrawfunc; cdecl; I

Re: [fpc-pascal] Strange error message

2013-05-08 Thread Sven Barth
Am 08.05.2013 11:20, schrieb Darius Blaszyk: I'm working on a glut app but I keep on getting the message: Error: Can't assign local procedure/function to procedure variable The error is at this line: glutDisplayFunc(@redrawfunc); And the callback (which is declared in the same .inc file) is

Re: [fpc-pascal] Strange error message

2013-05-08 Thread Darius Blaszyk
Am 08.05.2013 11:20, schrieb Darius Blaszyk: I'm working on a glut app but I keep on getting the message: Error: Can't assign local procedure/function to procedure variable The error is at this line: glutDisplayFunc(@redrawfunc); And the callback (which is declared in the same .inc

Re: [fpc-pascal] Strange error message

2013-05-08 Thread Sven Barth
Am 08.05.2013 11:40, schrieb Darius Blaszyk: Am 08.05.2013 11:20, schrieb Darius Blaszyk: I'm working on a glut app but I keep on getting the message: Error: Can't assign local procedure/function to procedure variable The error is at this line: glutDisplayFunc(@redrawfunc); And the callback

Re: [fpc-pascal] Strange error message

2013-05-08 Thread Darius Blaszyk
Am 08.05.2013 11:40, schrieb Darius Blaszyk: Am 08.05.2013 11:20, schrieb Darius Blaszyk: I'm working on a glut app but I keep on getting the message: Error: Can't assign local procedure/function to procedure variable The error is at this line: glutDisplayFunc(@redrawfunc); And the

Re: [fpc-pascal] Strange error message

2013-05-08 Thread Sven Barth
Am 08.05.2013 12:37, schrieb Darius Blaszyk: Am 08.05.2013 11:40, schrieb Darius Blaszyk: Am 08.05.2013 11:20, schrieb Darius Blaszyk: I'm working on a glut app but I keep on getting the message: Error: Can't assign local procedure/function to procedure variable

Re: [fpc-pascal] Cross-building on from Linux/i386 to Linux/x86-64

2013-05-08 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: I also don't know where the -Xd comes from in the above compiler invocation. If you added that yourself, remove it again. I inherited it from the buildcrosssnapshot script found in fpcbuild-2.6.2.zip, and never even thought about its effect.

Re: [fpc-pascal] Cross-building on from Linux/i386 to Linux/x86-64

2013-05-08 Thread Jonas Maebe
On 08 May 2013, at 14:01, Marco van de Voort wrote: In our previous episode, Jonas Maebe said: I also don't know where the -Xd comes from in the above compiler invocation. If you added that yourself, remove it again. I inherited it from the buildcrosssnapshot script found in

Re: [fpc-pascal] Cross-building on from Linux/i386 to Linux/x86-64

2013-05-08 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: That script probably hasn't been used for ages. It's probably best to remove it in order to prevent confusion like you are encountering. Please don't, since that just makes it hard to add anything. I don't understand what you mean by this. How

Re: [fpc-pascal] Cross-building on from Linux/i386 to Linux/x86-64

2013-05-08 Thread Jonas Maebe
On 08 May 2013, at 14:57, Marco van de Voort wrote: In our previous episode, Jonas Maebe said: That script probably hasn't been used for ages. It's probably best to remove it in order to prevent confusion like you are encountering. Please don't, since that just makes it hard to add

Re: [fpc-pascal] Re: Is THostResolver creating a thread?

2013-05-08 Thread silvioprog
2013/5/8 Michael Van Canneyt mich...@freepascal.org On Wed, 8 May 2013, silvioprog wrote: Oops, 2013/5/8 silvioprog silviop...@gmail.com [...] uses resolve, winsock; procedure TForm1.Button1Click(Sender: TObject); var FHostEntry: PHostEnt; begin FHostEntry :=

Re: [fpc-pascal] Cross-building on from Linux/i386 to Linux/x86-64

2013-05-08 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: svn) and probably hasn't worked correctly in 10 years or so (if it ever worked really correctly, given that adding -Xd to OPT never never was correct). It was the best that could be done then. The best that could have been done was to add

Re: [fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Jonas Maebe
On 08 May 2013, at 08:13, Bruce Tulloch wrote: After a random but very long period of time (i.e. very many successful calls) I get a SEGV in the built-in function fpc_AnsiStr_Decr_Ref. GDB reports the argument to fpc_AnsiStr_Decr_Ref (the string who's reference is to be decremented) is nil

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier FarPointer

2013-05-08 Thread Mark Morgan Lloyd
waldo kitty wrote: You are trying to build with 2.7.1. If you are absolutely sure that the current compiler is built from the exact same version/revision, you can try to use OVERRIDEVERSIONCHECK=1 to override . Stop. perhaps the message is too long and too informative? maybe something

Re: [fpc-pascal] Re: Is THostResolver creating a thread?

2013-05-08 Thread Zaher Dirkey
Maybe it use the thread again, try many requests if there is more threads? On Wed, May 8, 2013 at 4:35 PM, silvioprog silviop...@gmail.com wrote: 2013/5/8 Michael Van Canneyt mich...@freepascal.org On Wed, 8 May 2013, silvioprog wrote: Oops, 2013/5/8 silvioprog silviop...@gmail.com

Re: [fpc-pascal] Re: Is THostResolver creating a thread?

2013-05-08 Thread silvioprog
2013/5/8 Zaher Dirkey parm...@gmail.com Maybe it use the thread again, try many requests if there is more threads? It keep only one thread. :) Sorry Michael, Zaher and friends. A friend tested it in Delphi on Window XP and it's same to Free Pascal. -- Silvio Clécio My public projects -

Re: [fpc-pascal] Cross-building on from Linux/i386 to Linux/x86-64

2013-05-08 Thread patspiper
On 08/05/13 16:45, Marco van de Voort wrote: In our previous episode, Jonas Maebe said: svn) and probably hasn't worked correctly in 10 years or so (if it ever worked really correctly, given that adding -Xd to OPT never never was correct). It was the best that could be done then. The best

Re: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread waldo kitty
On 5/8/2013 04:34, Fred van Stappen wrote: The point is nevertheless that you answered to an existing thread with a completely new/unrelated question. OK, my fault, i wanted to answer to my own tread an that answer appears like a new one ( i used ( RE: ... ) in place of (Re: ...). ). that

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier FarPointer

2013-05-08 Thread waldo kitty
On 5/8/2013 12:22, Mark Morgan Lloyd wrote: waldo kitty wrote: You are trying to build with 2.7.1. If you are absolutely sure that the current compiler is built from the exact same version/revision, you can try to use OVERRIDEVERSIONCHECK=1 to override . Stop. perhaps the message is too

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier FarPointer

2013-05-08 Thread Sven Barth
On 08.05.2013 22:27, waldo kitty wrote: On 5/8/2013 12:22, Mark Morgan Lloyd wrote: waldo kitty wrote: You are trying to build with 2.7.1. If you are absolutely sure that the current compiler is built from the exact same version/revision, you can try to use OVERRIDEVERSIONCHECK=1 to override

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier FarPointer

2013-05-08 Thread waldo kitty
On 5/8/2013 17:50, Sven Barth wrote: On 08.05.2013 22:27, waldo kitty wrote: On 5/8/2013 12:22, Mark Morgan Lloyd wrote: waldo kitty wrote: You are trying to build with 2.7.1. If you are absolutely sure that the current compiler is built from the exact same version/revision, you can try to

Re: [fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Bruce Tulloch
Thanks Jonas, that confirms what I suspected. Next time I trap an instance of this (rare) fault I will inspect exactly which CPU instruction raised the SEGV inside fpc_AnsiStr_Decr_Ref in search of a source of memory corruption. Bruce. On Wed, May 8, 2013 at 11:49 PM, Jonas Maebe

Re: [fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Bruce Tulloch
Michael, thanks for your feedback. One thing that confuses me in light of Jonas' reply, if what you say is correct (that local variables that have just come into scope are not guaranteed to be nil) then assignment of Result := ''; at the first line of foo may arbitrarily SEGV because

Re: [fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Bruce Tulloch
I've not managed to trap it again, but based on the information I have from the last time it occurred I can say the error happened here: --- a/rtl/i386/i386.inc +++ b/rtl/i386/i386.inc @@ -1523,7 +1523,7 @@ movl(%eax),%edx subl$8,%edx // [102] If l^0 then exit;

Re: [fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Bruce Tulloch
So here's some more diagnostic at the point of the SEGV: (gdb) disass Dump of assembler code for function _$SYSTEM$_Ll1637: = 0x0118ace1 +0: cmpl $0x0,(%edx) End of assembler dump. (gdb) i reg eax0xb6c77158 -1228443304 ecx0xb6c76c04 -1228444668 edx

[fpc-pascal] ImageMagick and Static Linking

2013-05-08 Thread Andrew Brunner
Image Magick comes with static libraries and dynamic libraries. Is there any way to make ImageMagick unit support the *.lib files? I'm trying to avoid having to distribute the ImageMagick dlls. Thanks, -- Andrew Brunner Aurawin LLC 15843 Garrison Circle Austin, TX 78717 https://aurawin.com