Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2007-01-14 10:01:42


Support Requests item #1635211, was opened at 2007-01-14 07:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=207586&aid=1635211&group_id=7586

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: regex
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: John Maddock (johnmaddock)
Summary: Crash on RH machine with gcc < 3.4

Initial Comment:
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

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=207586&aid=1635211&group_id=7586

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk