Previous: Linux-Specific Considerations, Up: Platform-Specific Information for the Run-Time Libraries
On AIX, the resolver library initializes some internal structure on
the first call to get*by*
functions, which are used to implement
GNAT.Sockets.Get_Host_By_Name
and
GNAT.Sockets.Get_Host_By_Addrss
.
If such initialization occurs within an Ada task, and the stack size for
the task is the default size, a stack overflow may occur.
To avoid this overflow, the user should either ensure that the first call
to GNAT.Sockets.Get_Host_By_Name
or
GNAT.Sockets.Get_Host_By_Addrss
occurs in the environment task, or use pragma Storage_Size
to
specify a sufficiently large size for the stack of the task that contains
this call.