bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #22369] goops: segmentation fault in scm_add_slot


From: anonymous
Subject: [bug #22369] goops: segmentation fault in scm_add_slot
Date: Wed, 20 Feb 2008 12:51:24 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

URL:
  <http://savannah.gnu.org/bugs/?22369>

                 Summary: goops: segmentation fault in scm_add_slot 
                 Project: Guile
            Submitted by: None
            Submitted on: Wednesday 02/20/2008 at 12:51 UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

There is a bug in goops.c:2873 in function scm_add_slot() that causes a
reproducible segmentation fault.

SCM gns = scm_list_n (name, SCM_BOOL_F, get, set, n, scm_from_int (1));

This call to scm_list_n is missing a terminating SCM_UNDEFINED and thus will
crash the program at runtime.
A patch to fix this behavior is attached.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wednesday 02/20/2008 at 12:51 UTC  Name:
guile-1.8.3_fix_scm_add_slot.diff  Size: 644B   By: None
Took me two days debugging my own code before I realized that it was not even
my fault.. :(
<http://savannah.gnu.org/bugs/download.php?file_id=15082>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?22369>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]