Re: [fpc-pascal] GetThreadId, GetCurrentThreadId and MainThreadId

2009-09-10 Thread Vincent Snijders
Vincent Snijders schreef: Hi, While investigating http://bugs.freepascal.org/view.php?id=14335 I ran into the following peculiarities. Please, comment and tell for which item you want bug reports, if any. I tested on i386-linux. I guess I need to submit three bug reports to get an answer. :-

Re: [fpc-pascal] Problem with string manager

2009-09-10 Thread Joao Morais
On Wed, Sep 9, 2009 at 5:08 PM, Jonas Maebe wrote: > > On 09 Sep 2009, at 21:10, Joao Morais wrote: > >> The following cgi script shows "??" in the browser if cwstring is >> declared, and works as expected if the declaration is removed. Is >> there something I can change in order to work with wide

[fpc-pascal] Re: Linux program sometimes crashes with "EProcess : Failed to create pipes"

2009-09-10 Thread Funky Beast
Burkhard Carstens wrote: > Am Donnerstag, 10. September 2009 11:01 schrieb T. Guilleminot: >> Hi, >> >> Have a Linux program that recently started to crash several times >> with such message : >> An unhandled exception occurred at $080A4CB9 : >> EProcess : Failed to create pipes >> $080A4CB9 >>

Re: [fpc-pascal] Linux program sometimes crashes with "EProcess : Failed to create pipes"

2009-09-10 Thread Burkhard Carstens
Am Donnerstag, 10. September 2009 11:01 schrieb T. Guilleminot: > Hi, > > Have a Linux program that recently started to crash several times > with such message : > An unhandled exception occurred at $080A4CB9 : > EProcess : Failed to create pipes > $080A4CB9 > $080A4D3D > $080526E0 > $08057

Re: [fpc-pascal] Linux program sometimes crashes with "EProcess : Failed to create pipes"

2009-09-10 Thread Jonas Maebe
On 10 Sep 2009, at 11:01, T. Guilleminot wrote: I think I may hit some OS limits or I overload system. Does anyone know how to diagnose this further (why it fails...) You can run strace on it to check whether it closes all file descriptors that are opened. You can also use the "lsof" utilit

[fpc-pascal] Linux program sometimes crashes with "EProcess : Failed to create pipes"

2009-09-10 Thread T. Guilleminot
Hi, Have a Linux program that recently started to crash several times with such message : An unhandled exception occurred at $080A4CB9 : EProcess : Failed to create pipes $080A4CB9 $080A4D3D $080526E0 $08057C11 $08058809 $B7B082B6 $B7B07B88 $B7B0B0EB $B7B0B5BA $B7CF57D9 $0805

Re: [fpc-pascal] mysterious crashing, maybe related to setlength

2009-09-10 Thread Jonas Maebe
On 10 Sep 2009, at 09:49, David Emerson wrote: Just before I posted the other day, I had discovered a buffer overrun via range checking. I took care of it before writing my previous message. Maybe there is another buffer overflow that the range checker is somehow missing? If the overflow happ

Re: [fpc-pascal] mysterious crashing, maybe related to setlength

2009-09-10 Thread David Emerson
Thanks, Jonas! Just before I posted the other day, I had discovered a buffer overrun via range checking. I took care of it before writing my previous message. Maybe there is another buffer overflow that the range checker is somehow missing? There IS a local dynamic array to be finalized, so th