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.

Glut Lib and header are not same version? but it compiles o.k.
Stack size. Did increase the stack size, does not help.