From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Marco Maggi" Newsgroups: gmane.lisp.guile.bugs Subject: segfault in GOOPS/C function Date: Wed, 27 Jun 2007 07:40:41 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1182922854 25652 80.91.229.12 (27 Jun 2007 05:40:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2007 05:40:54 +0000 (UTC) To: "bug-guile" Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jun 27 07:40:53 2007 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.50) id 1I3QGq-00047m-L1 for guile-bugs@m.gmane.org; Wed, 27 Jun 2007 07:40:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3QGq-00007h-1E for guile-bugs@m.gmane.org; Wed, 27 Jun 2007 01:40:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3QGl-000070-TG for bug-guile@gnu.org; Wed, 27 Jun 2007 01:40:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I3QGk-00006c-Qe for bug-guile@gnu.org; Wed, 27 Jun 2007 01:40:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3QGk-00006W-Mp for bug-guile@gnu.org; Wed, 27 Jun 2007 01:40:46 -0400 Original-Received: from relay-pt1.poste.it ([62.241.4.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I3QGj-000423-MC for bug-guile@gnu.org; Wed, 27 Jun 2007 01:40:46 -0400 Original-Received: from poste.it (192.168.144.24) by relay-pt1.poste.it (7.3.122) (authenticated as marco.maggi-ipsu@poste.it) id 4681A8D30000410F for bug-guile@gnu.org; Wed, 27 Jun 2007 07:40:41 +0200 X-Sensitivity: 3 X-XaM3-API-Version: 4.3 (R1) (B3pl19) X-SenderIP: 81.211.130.229 X-detected-kernel: Solaris 9 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:3538 Archived-At: On Guile 1.8.1 the following: ;; hurt-me.scm -- (define-module (this) #:use-module (oop goops)) (define-class ()) (define-class ()) (define-method (doit (o ) a b) #f) (define-method (doit (o ) c d) #f) (define args (list (make ) 1 2)) (define p (compute-applicable-methods doit args)) (define the-one-for-b (car p)) (define the-one-for-a (cadr p)) (method-more-specific? the-one-for-b the-one-for-a '()) ;;; end of file segfaults inside METHOD-MORE-SPECIFIC? because, I think, the empty list is not recognised as such. Yeah, maybe the empty list is not what this function expects, but it should not dump on me. [New Thread 16384 (LWP 2231)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 2231)] 0x4006de10 in more_specificp (m1=3D0x0, m2=3D0x0, targs=3D0x0) at ../../libguile/goops.c:1960 1960 for (l =3D SCM_SLOT (targs[i], scm_si_cpl); ; l =3D SCM_CDR(l)) { #0 0x4006de10 in more_specificp (m1=3D0x0, m2=3D0x0, targs=3D0x0) at ../../libguile/goops.c:1960 #1 0x4006e08f in scm_sys_method_more_specific_p (m1=3D0x4033f050, m2=3D0x4033f190, targs=3D0x404) at ../../libguile/goops.c:2342 #2 0x400604de in ceval (x=3D0x40410468, env=3D0x40410218) at ../../libguile/eval.c:4126 #3 0x400629c6 in scm_i_eval_x (exp=3D0x0, env=3D0x404107c8) at inline.h:250 #4 0x4006356e in scm_primitive_eval_x (exp=3D0x404107f8) at ../../libguile/eval.c:5906 #5 0x400770d1 in scm_primitive_load (filename=3D0x403491c0) at ../../libguile/load.c:109 #6 0x400604de in ceval (x=3D0x404, env=3D0x40393c58) at ../../libguile/eval.c:4126 #7 0x4006290a in scm_i_eval (exp=3D0x0, env=3D0x40393c58) at inline.h:250 #8 0x4004fb92 in scm_start_stack (id=3D0x404107c8, exp=3D0x4031e9a8, env=3D0x40393c58) at ../../libguile/debug.c:454 #9 0x4004fc10 in scm_m_start_stack (exp=3D0x404107c8, env=3D0x0) at ../../libguile/debug.c:470 -- Marco Maggi _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile