user control over stack size for callback invoking threads

Bug #541225 reported by Jeff Hill
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Won't Fix
Wishlist
mdavidsaver

Bug Description

From: Urakhchin, Aleksandr F.

> I had a method allocating 4M buffer as local variable.
> In this case application crashed. I have a quick question about this
> situation. Is it difficult to control thread stack size
> dynamically?

Additional information:
Well, one option I can imagine would be an environment variable that determines the stack size of CA's callback invoking threads. The negative always with this sort of thing will be increased complexity including a longer user manual to negotiate. A similar issue will of course exist with many other callback invoking threads in other libraries. I suppose that we could implement some new function in libCom that returns the proper system wide stack size default for all callback invoking threads internally based on a new environment variable?

Original Mantis Bug: mantis-174
    http://www.aps.anl.gov/epics/mantis/view_bug_page.php?f_id=174

Revision history for this message
mdavidsaver (mdavidsaver) wrote :

For a special situation like I'd suggest using the epicsThreadPool API to create a private thread pool with the appropriate worker stack sizes. I see no reason to expand the configuration of the CALLBACK processing threads.

Changed in epics-base:
status: New → Won't Fix
assignee: nobody → mdavidsaver (mdavidsaver)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.