From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13734 invoked by alias); 29 Nov 2002 07:53:52 -0000 Mailing-List: contact guile-gtk-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: guile-gtk-owner@sources.redhat.com Received: (qmail 13727 invoked from network); 29 Nov 2002 07:53:51 -0000 Received: from unknown (HELO ev6.be.wanadoo.com) (195.74.212.41) by sources.redhat.com with SMTP; 29 Nov 2002 07:53:51 -0000 Received: from pablo (dial-59-176.wanadoo.be [212.65.59.176]) by ev6.be.wanadoo.com (8.11.1/8.11.1) with SMTP id gAT7rhq02957; Fri, 29 Nov 2002 08:53:43 +0100 Date: Thu, 28 Nov 2002 23:53:00 -0000 From: Stan Pinte To: Daniel Skarda <0rfelyus@ucw.cz> Cc: neil@ossau.uklinux.net, guile-gtk@sources.redhat.com, guile-user@gnu.org Subject: Re: general debugging question + Segfault in guile-gtk Message-Id: <20021129085421.3d045a8e.alto_stan@wanadoo.be> In-Reply-To: References: <5.1.1.6.0.20021121085949.03260e08@pop.wanadoo.be> <87d6oxfi6t.fsf@zagadka.ping.de> <20021128093703.1fe573c2.alto_stan@wanadoo.be> <20021128184234.5c3bc15b.alto_stan@wanadoo.be> Reply-To: alto_stan@wanadoo.be Organization: Alto Software Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-DCC-wanadoo-be-Metrics: ev6 1023; Body=4 Fuz1=4 Fuz2=4 X-SW-Source: 2002-q4/txt/msg00020.txt.bz2 On Thu, 28 Nov 2002 23:34:59 +0100 Daniel Skarda <0rfelyus@ucw.cz> wrote: > Stan Pinte writes: > > Program received signal SIGSEGV, Segmentation fault. > > [Switching to Thread 1024 (LWP 1112)] > > 0x4039c174 in sgtk_arg_cleanup (a=0xbfffe64c, obj=0x2174) at guile-gtk.c:2026 > > 2026 if (BOXED_INFO (obj)->cleanup) > > (gdb) bt > > #0 0x4039c174 in sgtk_arg_cleanup (a=0xbfffe64c, obj=0x2174) at guile-gtk.c:2026 > > Oops, thats my code, fresh new code.... Mea culpa. > > Aha! 0x2174 is #f (SCM_BOOL_F) (no, I am not a wizard, I am using gdb.... :-) > > GuileGtk converts callbacks parameters to scheme types (according to > information from Gtk). Than it tries to clean-up data - and I forgot that > structures can also be converted to #f (which is not a boxed type). > > if (BOXED_INFO (obj)->cleanup) > > should be replaced by > > if (BOXED_P (obj) && BOXED_INFO(obj)->cleanup) > > Hope that this stops your problems. I am going to commit the fix to CVS ASAP. I verified, and it is ok! Thanks a lot, Stan. > > Thank you for bug report, > 0. > -- Stanislas Pinte Computer Consultant Alto Software 20 Pl St Jacques B-4000 Liège web: http://www.altosw.be email: alto_stan@wanadoo.be