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

 
 

bug #22369: goops: segmentation fault in scm_add_slot

Submitted by:  None
Submitted on:  Wed 20 Feb 2008 12:51:22 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
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
  • -unavailable- added by civodul (Posted a comment)
  • -unavailable- added by shirk (I created this bug (prior to registring with savannah))
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 21 Feb 2008 08:35:47 AM UTCcivodulOpen/ClosedOpen=>Closed
    Wed 20 Feb 2008 01:17:06 PM UTCshirkCarbon-Copy-=>Added -unavailable-
    Wed 20 Feb 2008 12:51:23 PM UTCNoneAttached File-=>Added guile-1.8.3_fix_scm_add_slot.diff, #15082

    Back to the top


    Powered by Savane 3.1-cleanup1