Gnat with sqlite Ada bindings - 100% CPU problem
Tue Sep 17 01:45:00 GMT 2013
I'm trying to write an Ada application that uses the Sqlite library.
The application will compile and run until the end of the application
where it will hang, using near 100% CPU.
When I cntrl+c it while running in GDB, it shows:
Program received signal SIGINT, Interrupt.
0x6e015096 in cyggcc_s-1!__deregister_frame_info_bases () from
The same application in C exits just fine.
I generated the Ada bindings using
> gcc -fdump-ada-spec /usr/include/sqlite3.h
and my application is as follows
procedure test is
Db : System.Address;
Name : Interfaces.C.Strings.chars_ptr :=
ret : interfaces.c.int;
ret := sqlite3_h.sqlite3_open (Name, Db'address);
ret := sqlite3_h.sqlite3_close (Db);
> gnatmake ./test.adb -largs -lsqlite3
Running the application will print out "Done" and then hang with 100%
CPU. Not sure if this is a bug with cygwin or gcc.
Any suggestions/help would be greatly appreciated!
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin