From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luca Saiu Newsgroups: gmane.lisp.guile.bugs Subject: Re: Likely bug: SMOBs and mark functions [Was: Re: [bug #30480] VM: load looks for files in the wrong directory] Date: Tue, 15 Feb 2011 13:08:21 +0100 Message-ID: <4D5A6CB5.90401@gnu.org> References: <20100719-005153.sv1523.70961@savannah.gnu.org> <20100719-005459.sv1523.65271@savannah.gnu.org> <20100719-005950.sv1523.43708@savannah.gnu.org> <20100724-161608.sv15145.2405@savannah.gnu.org> <20110213-185123.sv20118.98931@savannah.gnu.org> <4D5A6A92.1080702@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1297771694 6714 80.91.229.12 (15 Feb 2011 12:08:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2011 12:08:14 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Feb 15 13:08:10 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PpJhR-0007ez-E9 for guile-bugs@m.gmane.org; Tue, 15 Feb 2011 13:08:09 +0100 Original-Received: from localhost ([127.0.0.1]:37287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpJhQ-0003io-RV for guile-bugs@m.gmane.org; Tue, 15 Feb 2011 07:08:08 -0500 Original-Received: from [140.186.70.92] (port=33948 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpJhL-0003iY-F4 for bug-guile@gnu.org; Tue, 15 Feb 2011 07:08:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpJhK-0002Sw-1T for bug-guile@gnu.org; Tue, 15 Feb 2011 07:08:03 -0500 Original-Received: from mail.lipn.univ-paris13.fr ([194.254.163.24]:51807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpJhJ-0002Sg-Gw for bug-guile@gnu.org; Tue, 15 Feb 2011 07:08:01 -0500 Original-Received: from [10.10.0.234] (optimum.lipn.univ-paris13.fr [10.10.0.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: saiu@lipn.univ-paris13.fr) by mail.lipn.univ-paris13.fr (sendmail 8.9.3/8.9.2) with ESMTP id 0A38B22E06 for ; Tue, 15 Feb 2011 13:07:59 +0100 (CET) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10 In-Reply-To: <4D5A6A92.1080702@gnu.org> X-Enigmail-Version: 1.0.1 OpenPGP: id=26C5D286; url=http://www-lipn.univ-paris13.fr/~saiu/lucasaiu.asc X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 194.254.163.24 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5135 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/15/2011 12:59 PM, Luca Saiu wrote: > The current thread is at (nil); Segmentation fault Don't worry about the "The current thread is at (nil); ". That was the output of my debug printf :-), which I forgot to delete in that one case. Testing again on an unmodified guile: [luca@optimum ~/projects-by-others/guile-from-git-mainline]$ cd doc/example-smob/ [luca@optimum ~/projects-by-others/guile-from-git-mainline/doc/example-smob]$ ls total 24 4 ChangeLog-2008 4 Makefile 4 README 4 image-type.c 4 myguile.c 4 image-type.h [luca@optimum ~/projects-by-others/guile-from-git-mainline/doc/example-smob]$ make cc `guile-config compile` -c -o image-type.o image-type.c cc `guile-config compile` -c -o myguile.o myguile.c cc image-type.o myguile.o `guile-config link` -o myguile [luca@optimum ~/projects-by-others/guile-from-git-mainline/doc/example-smob]$ ./myguile GNU Guile 1.9.15.114-b81eb Copyright (C) 1995-2011 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> make-image $1 = # scheme@(guile-user)> (define i (make-image "Whistler's Mother" 100 100)) scheme@(guile-user)> i $2 = # scheme@(guile-user)> (gc) Segmentation fault [luca@optimum ~/projects-by-others/guile-from-git-mainline/doc/example-smob]$ gdb - --args ./myguile GNU gdb (GDB) 6.8.50.20090628-cvs-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: ... (no debugging symbols found) (gdb) run Starting program: /home/luca/projects-by-others/guile-from-git-mainline/doc/example-smob/myguile [Thread debugging using libthread_db enabled] [New Thread 0x7ffff602d710 (LWP 24847)] [New Thread 0x7ffff582c710 (LWP 24848)] [New Thread 0x7ffff502b710 (LWP 24849)] [New Thread 0x7ffff482a710 (LWP 24850)] [New Thread 0x7ffff4029710 (LWP 24851)] [New Thread 0x7ffff3828710 (LWP 24852)] [New Thread 0x7ffff3027710 (LWP 24853)] [New Thread 0x7ffff1f76710 (LWP 24854)] [New Thread 0x7ffff1775710 (LWP 24855)] [New Thread 0x7ffff0f74710 (LWP 24856)] [New Thread 0x7ffff0773710 (LWP 24857)] [New Thread 0x7fffeff72710 (LWP 24858)] [New Thread 0x7fffef771710 (LWP 24859)] [New Thread 0x7fffeef70710 (LWP 24860)] [New Thread 0x7fffee76f710 (LWP 24861)] GNU Guile 1.9.15.114-b81eb Copyright (C) 1995-2011 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> (define i (make-image "Whistler's Mother" 100 100)) Program received signal SIGPWR, Power fail/restart. Program received signal SIGPWR, Power fail/restart. Program received signal SIGPWR, Power fail/restart. Program received signal SIGPWR, Power fail/restart. Program received signal SIGPWR, Power fail/restart. Program received signal SIGPWR, Power fail/restart. Program received signal SIGPWR, Power fail/restart. Program received signal SIGPWR, Power fail/restart. Program received signal SIGXCPU, CPU time limit exceeded. Program received signal SIGXCPU, CPU time limit exceeded. Program received signal SIGXCPU, CPU time limit exceeded. Program received signal SIGXCPU, CPU time limit exceeded. Program received signal SIGXCPU, CPU time limit exceeded. Program received signal SIGXCPU, CPU time limit exceeded. Program received signal SIGXCPU, CPU time limit exceeded. Program received signal SIGXCPU, CPU time limit exceeded. scheme@(guile-user)> (gc) Program received signal SIGPWR, Power fail/restart. Program received signal SIGPWR, Power fail/restart. Program received signal SIGPWR, Power fail/restart. Program received signal SIGPWR, Power fail/restart. Program received signal SIGPWR, Power fail/restart. Program received signal SIGPWR, Power fail/restart. Program received signal SIGPWR, Power fail/restart. Program received signal SIGPWR, Power fail/restart. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffff502b710 (LWP 24849)] 0x00007ffff7b0bc64 in smob_mark (addr=0x1945fe0, mark_stack_ptr=0x7ffff501b1d0, mark_stack_limit=0x7ffff502aea0, env=) at smob.c:506 506 SCM_I_CURRENT_THREAD->current_mark_stack_ptr = mark_stack_ptr; (gdb) - -- Luca Saiu http://www-lipn.univ-paris13.fr/~saiu GNU epsilon: http://www.gnu.org/software/epsilon Marionnet: http://www.marionnet.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1abLUACgkQvzOavibF0oaijwCgncb/S3fjw28PjgwiC+1LrfmK lYIAnRksHfpTGzuT0g+Xy1qwZopIVzWt =UtD7 -----END PGP SIGNATURE-----