From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: CDDP 40 - TICE Newsgroups: gmane.lisp.guile.user Subject: Re: C++ application linked with guile dos not quite Date: 19 Jun 2002 15:19:00 +0200 Sender: guile-user-admin@gnu.org Message-ID: <1024492741.20140.120.camel@tice> References: <1024320297.17552.141.camel@tice> <1024388708.23129.28.camel@tice> <15631.14600.194325.589914@minos.phy.bnl.gov> <87u1o08plp.fsf@zagadka.ping.de> <1024473732.20137.40.camel@tice> <87k7ovh658.fsf@zagadka.ping.de> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1024492593 30543 127.0.0.1 (19 Jun 2002 13:16:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Jun 2002 13:16:33 +0000 (UTC) Cc: Brett Viren , Guile user Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17KfK4-0007wV-00 for ; Wed, 19 Jun 2002 15:16:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17KfIk-00049y-00; Wed, 19 Jun 2002 09:15:10 -0400 Original-Received: from smtp-out-4.wanadoo.fr ([193.252.19.23] helo=mel-rto4.wanadoo.fr) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17KfGf-00043f-00 for ; Wed, 19 Jun 2002 09:13:01 -0400 Original-Received: from mel-rta10.wanadoo.fr (193.252.19.193) by mel-rto4.wanadoo.fr (6.5.007) id 3D09BE8D002F32FB; Wed, 19 Jun 2002 15:12:11 +0200 Original-Received: from localhost.localdomain (80.14.155.118) by mel-rta10.wanadoo.fr (6.5.007) id 3CFB2CF9009FF399; Wed, 19 Jun 2002 15:12:11 +0200 Original-To: Marius Vollmer In-Reply-To: <87k7ovh658.fsf@zagadka.ping.de> X-Mailer: Ximian Evolution 1.0.5 Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.user:619 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:619 Le mer 19/06/2002 =E0 13:14, Marius Vollmer a =E9crit : > CDDP 40 - TICE writes: >=20 > > Ok, here is the exact situation: > >=20 > >=20 > > void=20 > > main_prog(int argc, char* argv[]) > > { > > [..] > > gtk_main(); > > g_print("Do we quit gtk_main?\n"); > > } > >=20 > > int main(int argc, char* argv[]) > > { > > gh_enter(argc, argv, main_prog); > > g_print ("Can we quit?"); > > return 0; > > } > >=20 > >=20 > > "Do we quit gtk_main' is printed but not "Can we quit?" > > But I guess "Can we quit" has not to be printed. >=20 > Is "Do we quit gtk_main" printed also when drgenius fails to exit? > Or is it printed only when drgenius does exit successfully? "Do we quit gtk_main" is alway printed! > Try to run drgenius in the debugger and when it should exit but > doesn't, hit C-C and look at the backtrace. >=20 > When that doesn't give enough ideas, set a breakpoint on the function > that should normally trigger the exit. I found another place where it hangs, I never notice it. It apppear also when the user close a figure without leaving drgenius. I have been able to trace back: Program received signal SIGINT, Interrupt. [Switching to Thread 1024 (LWP 27923)] 0x40802b90 in poll () from /lib/libc.so.6 (gdb) backt #0 0x40802b90 in poll () from /lib/libc.so.6 #1 0x40622f09 in g_main_is_running () from /usr/lib/libglib-1.2.so.0 #2 0x406228bd in g_get_current_time () from /usr/lib/libglib-1.2.so.0 #3 0x40622c6c in g_main_run () from /usr/lib/libglib-1.2.so.0 #4 0x4035c7f7 in gtk_main () from /usr/lib/libgtk-1.2.so.0 #5 0x0805ae30 in main_prog (argc=3D1, argv=3D0xbffffc64) at drgenius_main.c:124 #6 0x406632d1 in gh_call3 () from /usr/lib/libguile.so.9 #7 0x40666a38 in scm_boot_guile () from /usr/lib/libguile.so.9 #8 0x4068aa13 in scm_internal_lazy_catch () from /usr/lib/libguile.so.9 #9 0x406669e6 in scm_boot_guile () from /usr/lib/libguile.so.9 #10 0x406666e4 in scm_boot_guile () from /usr/lib/libguile.so.9 #11 0x40663304 in gh_enter () from /usr/lib/libguile.so.9 #12 0x0805ae5d in main (argc=3D1, argv=3D0xbffffc64) at drgenius_main.c:130 Does not help much. I try to suspect I have some memory leaks that show up in the context of guile. I will try to trace memory leak. Hilaire --=20 Ing=E9nierie =C9ducative CDDP des Landes _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user