This is the mail archive of the
mailing list for the Cygwin project.
Gnat with sqlite Ada bindings - 100% CPU problem
- From: Patrick Herbst <paherbst at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 16 Sep 2013 21:08:22 -0400
- Subject: Gnat with sqlite Ada bindings - 100% CPU problem
- Authentication-results: sourceware.org; auth=none
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