Vladimir Panteleev <> changed:

           What    |Removed                     |Added
                 CC|                            |dlang-bugzilla@thecybershad
                   |                            |,
                   |                            |
          Component|                   |dmd
            Summary|The spec tester fails to    |DMD should use a unique
                   |link examples with          |path/filename for __stdin.o
                   |__stdin.o                   |

--- Comment #1 from Vladimir Panteleev <> ---
The problem seems to be that the same object file name is used when reading
from stdin:

$ echo 'void main() {}' | dmd -v -run - | grep ^cc    
cc __stdin.o -o /tmp/dmd_runIAGsLe -m64 -Xlinker --export-dynamic
-L/home/vladimir/opt/dmd/bin/../lib64 -Xlinker -Bstatic -lphobos2 -Xlinker
-Bdynamic -lpthread -lm -lrt -ldl

This cannot work reliably in multiple threads, as several concurrent DMD
instances will write __stdin.o, and several concurrent linkers will attempt to
read it.


Reply via email to