bugGuile - Bugs: bug #22369, goops: segmentation fault in...

 
 

bug #22369: goops: segmentation fault in scm_add_slot

Submitter:  None
Submitted:  Wed 20 Feb 2008 12:51:22 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 21 Feb 2008 08:35:47 AM UTC, comment #1: 

Thanks for finding it out!  It's now fixed in CVS, will be in 1.8.5.

Actually, `scm_add_slot ()' is not used internally, which is the bug wasn't caught earlier.

Too bad we can't use GCC's `sentinel' attribute for that purpose.

Thanks,
Ludovic.

Ludovic Courtès <civodul>
Group administrator
Wed 20 Feb 2008 12:51:22 PM UTC, original submission:  

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #15082:  guile-1.8.3_fix_scm_add_slot.diff added by None (644B - text/plain - Took me two days debugging my own code before I realized that it was not even my fault.. :()

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by civodul (Posted a comment)
  • -email is unavailable- added by shirk (I created this bug (prior to registring with savannah))
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-02-21 civodul Open/ClosedOpen Closed
    2008-02-20 shirk Carbon-Copy- Added -email is unavailable-
    2008-02-20 None Attached File- Added guile-1.8.3_fix_scm_add_slot.diff, #15082

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code