Boost logo

Boost :

From: (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:

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

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:

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
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at