Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2006-11-12 10:18:51


Bugs item #1595079, was opened at 2006-11-12 17:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1595079&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: Roy (r_emek)
Assigned to: John Maddock (johnmaddock)
Summary: regex_replace is not thread safe when format = $N

Initial Comment:
When used in a multi-threaded environment,
regex_replace produces wrong results when the 'fmt'
parameter is $<digit> (i.e., $1, $2, etc.).

If, for example, the correct results of the replacement
operation is 1234, and fmt is '$0', we'll eventually
get one of the following:
 - 12340
 - $0

(The last digit of the erroneous result is usually the
digit number from the format).

I'm attaching a sample program that demonstrates the
problem.

We've seen this problem on Linux (RedHat 9, gcc version
3.2.2 20030222) and on several other platforms.

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

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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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