glutMainLoop returns Storage_Error Help

I am porting an Ada glut code from Sun to Redhat Linux. This code runs on the Sun Solaris. I have the latest GLUT installed on RH9 and the program compiled and linked O.K. When I try to run it, Right after the program went into glutMainLoop(), a Storage_Error exception is raised? Anyone has any ideas.

Possibilities:
Glut Lib and header are not same version? but it compiles o.k.
Stack size. Did increase the stack size, does not help.
Thanks
tencul@yahoo.com

Please don’t cross post…

Try to do an strace of the program to see what’s wrong with system calls.