Re: [Valgrind-users] [drd] race condition in std::istringstream / std::getline

2010-05-28 Thread Jorge Moraleda
On Thu, May 27, 2010 at 3:42 AM, Bart Van Assche bvanass...@acm.org wrote: On Thu, May 27, 2010 at 4:29 AM, Jorge Moraleda jorge.moral...@gmail.com wrote: Dear all, Am I doing something wrong, or is is there a race condition somewhere in std::istringstream and/or std::getline? (Bart,

Re: [Valgrind-users] [drd] race condition in std::istringstream / std::getline

2010-05-27 Thread Bjoern Doebel
2010/5/27 Jorge Moraleda jorge.moral...@gmail.com: Dear all, Am I doing something wrong, or is is there a race condition somewhere in std::istringstream and/or std::getline? (Bart, Konstantin, this ended up being the error that I've been trying to track down for a while and that I thought

Re: [Valgrind-users] [drd] race condition in std::istringstream / std::getline

2010-05-27 Thread Bart Van Assche
On Thu, May 27, 2010 at 4:29 AM, Jorge Moraleda jorge.moral...@gmail.com wrote: Dear all, Am I doing something wrong, or is is there a race condition somewhere in std::istringstream and/or std::getline? (Bart, Konstantin, this ended up being the error that I've been trying to track down

Re: [Valgrind-users] [drd] race condition in std::istringstream / std::getline

2010-05-27 Thread Gaetano Mendola
On Thu, May 27, 2010 at 8:17 AM, Bjoern Doebel bjoern.doe...@googlemail.com wrote: With a bit guesswork: reading from a file in general (and thus also from std input) is undefined behavior as input will only be delivered to one thread and you won't be able to control which one. That's wrong,