[Interest] Behavior of write() to stdErr in Qt Creator

Thiago Macieira thiago.macieira at intel.com
Sat Apr 29 01:21:18 CEST 2023

On Friday, 28 April 2023 01:31:39 PDT Bernhard Lindner wrote:
> Please note that lines are not interleaved. Still a line feed is added after
> each write() call when executing the code snippet from a sub thread.
> The effect is completely reproducible when starting the debug build from Qt
> Creator under gdb supervision. However when manually stepping through the
> code or when running the debug build without debugger the output looks just
> fine.

I can reproduce this with the attached test. The problem appears to be that 
when Qt Creator reads from the pipe, it assumes that whatever it read is a 
full line after a time out, when it isn't. It doesn't update the previous line 
when more characters are received.

Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 179 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230428/900e4654/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230428/900e4654/attachment.bin>

More information about the Interest mailing list