[NeXus-code-tickets] [NeXusCode] #217: NXgetgroupinfo uses too much stack space
NeXus Data Format Library and Applications
noreply at nexusformat.org
Fri Jan 29 17:15:38 GMT 2010
#217: NXgetgroupinfo uses too much stack space
-----------------------------+----------------------------------------------
Reporter: Freddie Akeroyd | Owner: Freddie Akeroyd
Type: defect | Status: new
Priority: major | Milestone:
Component: napi | Version: trunk
Keywords: |
-----------------------------+----------------------------------------------
Reported by Mark Rivers
I have discovered a possibly related problem with stack overflow when
calling Nexus API from a multi-threaded C program. I found that the
function NXgetgroupinfo uses a very large amout of stack. I would get
stack overflow when my thread had less than 40000 bytes of stack, it
worked OK with 80000 bytes. The stack overflow only happened for me on
Windows with the MS VC++ compiler, it did not happen on Linux, or Windows
with the gcc compiler. But I suspect that NXgetgroupinfo is doing some
recursion that can use a large amount of stack depending on the structure
of the HDF file.
--
Ticket URL: <http://trac.nexusformat.org/code/ticket/217>
NeXus Data Format Library and Applications <http://www.nexusformat.org/>
NeXus Data Format Library and Applications
More information about the NeXus-code-tickets
mailing list