Opened 16 years ago

Closed 15 years ago

#812 closed Support Requests (worksforme)

Crash on RH machine with gcc < 3.4 — at Version 1

Reported by: nobody Owned by: John Maddock
Milestone: Component: regex
Version: None Severity: Problem
Keywords: Cc:

Description (last modified by John Maddock)

The following code crshes with Seg.Fault while running on RH machine (kernel 7.1, compiler gcc-3.3.2)

#include <boost/regex.hpp>
#include <string>
#include <stdlib.h>

int main()
{
    boost::regex expression("abc");
    boost::match_results<std::string::const_iterator> what;
    boost::match_flag_type flags = boost::match_default; 
    std::string str("abcabc");
    
    if (regex_search(
        str, 
        what, 
        expression, 
        flags) == true)
    {
            printf ("FOUND\n");
    }

return 0;
}

Is it a known issue?

Thanks,
Genia

Change History (1)

comment:1 by John Maddock, 15 years ago

Description: modified (diff)
Resolution: Noneworksforme
Severity: Problem
Status: assignedclosed

With apologies for the delay, I've finally got around to dealing with some of the backlog of issues.

I can't reproduce this, is this still a problem?

Note: See TracTickets for help on using tickets.