Recursion

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Recursion

Paul Davidson
Having problem with app.  It is rule based, and operates with recursion.
Events, such as HTTP requests, timers etc, are processed in separate
threads such that rule engine can handle more than one request at a
time.

When a rule cascade recurses for 10th time, a thread dies.  But only
first time.  Triggering the same rule cascade any time after that works
perfectly - up to depths of 150+

Mac OS/Darwin.
No objects are created or destroyed during rule cascade.
Not dependent on size of rules
FPC 1.9x to 2.x.x

Any hints at all?  Been tracking this bug for months :|

P Davidson


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Recursion

Jan Ruzicka
Any luck with gdb?
Would you have a minimal source code example?
Jan

On Jul 17, 2005, at 17:19, Paul Davidson wrote:

> Having problem with app.  It is rule based, and operates with
> recursion.
> Events, such as HTTP requests, timers etc, are processed in separate
> threads such that rule engine can handle more than one request at a
> time.
>
> When a rule cascade recurses for 10th time, a thread dies.  But only
> first time.  Triggering the same rule cascade any time after that
> works perfectly - up to depths of 150+
>
> Mac OS/Darwin.
> No objects are created or destroyed during rule cascade.
> Not dependent on size of rules
> FPC 1.9x to 2.x.x
>
> Any hints at all?  Been tracking this bug for months :|
>
> P Davidson
>
>
> _______________________________________________
> fpc-pascal maillist  -  [hidden email]
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Recursion

Florian Klämpfl
In reply to this post by Paul Davidson
Paul Davidson wrote:

> Having problem with app.  It is rule based, and operates with recursion.
> Events, such as HTTP requests, timers etc, are processed in separate
> threads such that rule engine can handle more than one request at a time.
>
> When a rule cascade recurses for 10th time, a thread dies.  But only
> first time.  Triggering the same rule cascade any time after that works
> perfectly - up to depths of 150+
>
> Mac OS/Darwin.

Does it work on linux?

> No objects are created or destroyed during rule cascade.
> Not dependent on size of rules
> FPC 1.9x to 2.x.x
>
> Any hints at all?  Been tracking this bug for months :|
>
> P Davidson
>
>
> _______________________________________________
> fpc-pascal maillist  -  [hidden email]
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal