Created attachment 106289 [details] XML output Dear Developers, I've come across a bug with XML output when a program under analysis uses popen. The same happens when I try running valgrind as follows: valgrind ... /bin/bash some_command_file. I've done a quick search on the bug reports with similar problem and found one but it was said there that this bug is already fixed. I've checked with the latest trunk version and it seems that this problem still exists. Attached is the output XML I obtained. Best Regards, Evgeniy Beschastnov
When trying with a small script, it works: valgrind --xml=yes --xml-file=x.xml /bin/bash ./truc where truc contains: echo coucou the resulting x.xml file seems properly formatted. Please give the exact/precise way to reproduce your problem. Preferably a small compilable reproducer and the exact valgrind options are you using. If your program uses popen, it might be that it is forking/execing another program, and that you are using --trace-children=yes In such a case, be sure to use an --xml-file argument so that unique file names are generated for each process e.g. using %p In the attached xml file, I see you are using --trace-children=yes but no %p if the xml file argument. So, very probably, this is the cause of your problem.
Dear Philippe, Thank you. Indeed, I was not using %p, completely overlooked that in the documentation. I'll give it a try (however, I'm pretty sure that the issue will go away). Best Regards, Evgeniy Beschastnov