This is the mail archive of the insight-prs@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

insight/204: SEGV in __libtk80_a_iname


>Number:         204
>Category:       insight
>Synopsis:       SEGV in __libtk80_a_iname
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 10 15:43:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Lloyd J. Lewins
>Release:        cvs Jan 9, 2002
>Organization:
>Environment:
cygwin
>Description:
When debugging main.cc, moving the mouse over the statement:
 thisRoute->analyzeZD();
causes insight to crash with a SEGV.
>How-To-Repeat:
Set a break point on line 57. Run and then place the mouse on line 57.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="main.cc"
Content-Disposition: inline; filename="main.cc"

/*
Submitted by: Lloyd Lewins, llewins@raytheon.com

Cause insight to crash with SEGV
Insight version:
GNU gdb 2003-01-09-cvs
gcc version:
gcc version 2.95.3-5 (cygwin special)
Compiled with -g option.

When debugging main.cc, moving the mouse over the statement:
 thisRoute->analyzeZD();
causes insight to crash with a SEGV.

Set a break point on line 57. Run and then place the mouse on line 57.

The following is the error (captured by running insight within gdb):
Program received signal SIGSEGV, Segmentation fault.
0x6108d57f in _libtk80_a_iname ()

*/
#include <vector>

class route {
public:
    route(void)
    {
    }

    static void analyzeAllZD(void);

    class destination {
    public:
        destination(route* const nextRoute)
            : nextRoute(nextRoute)
        {
        }
    
        route* const nextRoute;
    };
    
    typedef std::vector<destination*> destination_vector;

    void analyzeZD (void);

    destination_vector destinations;
};

void route::analyzeZD(void)
{
}

void route::analyzeAllZD(void)
{
    route* thisRoute = new route();

    thisRoute->analyzeZD();
}

int main(void)
{
    route::analyzeAllZD();
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]