[Top][All Lists]

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

[bug #30528] Segfault in linevector_free()

From: Petr Pisar
Subject: [bug #30528] Segfault in linevector_free()
Date: Fri, 23 Jul 2010 11:55:48 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv: Gecko/20100622 Fedora/3.6.4-1.fc13 Firefox/3.6.4


                 Summary: Segfault in linevector_free()
                 Project: Concurrent Versions System
            Submitted by: petrp
            Submitted on: Fri 23 Jul 2010 11:55:48 AM GMT
                Category: Bug Report
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
           Fixed Release: None
   Fixed Feature Release: None



Package: cvs-1.11.23-8.fc13
Architecture: x86_64
OS Release: Fedora release 13 (Goddard)

cvs update: Updating common/v
P common/v/latch_test_ctrl.v
cvs update: checksum failure after patch to common/v/latch_test_ctrl.v; will
P common/v/test_ctrl.v
cvs update: checksum failure after patch to common/v/test_ctrl.v; will
P common/v/test_ctrl_n.v
Segmentation fault (core dumped)    

According back trace, it crashed in linevector_free() called from
apply_rcs_changes() operating on local temporary lines structure while
dereferrencing vec->vector[ln]:

/* Free storage associated with linevector.  */
static void
linevector_free (vec)
    struct linevector *vec;
    unsigned int ln;

    if (vec->vector != NULL)
        for (ln = 0; ln < vec->nlines; ++ln)
→           if (vec->vector[ln] && --vec->vector[ln]->refcount == 0)
                free (vec->vector[ln]);

        free (vec->vector);

This bug has been reported to Fedora bug tracking system originally:


File Attachments:

Date: Fri 23 Jul 2010 11:55:48 AM GMT  Name: backtrace  Size: 10kB   By:
Back trace


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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