<p>Hi Cyril,</p>
<p>I wasn't able to reproduce it, although I'm obviously missing the definition of "self binPath".</p>
<p>Are you able to adapt the script below to trigger the failure?</p>
<pre><code>| thisProcess currentPath result command aFile |

        aFile := 'PharoDebug.log' asFileReference.
        aFile exists ifFalse: [ self error: 'I want a reasonable size file (several kB)' ].
        thisProcess := OSProcess thisOSProcess.
        currentPath := thisProcess environment at: #PATH.
        command := PipeableOSProcess command: ( 'cat ' , aFile fullName).
        [ result := command outputAndError ] ensure: [ command close ].
        thisProcess environment at: #PATH put: currentPath.
        result


" #('THERE_BE_DRAGONS_HERE
...
"
</code></pre>
<p>System Report:</p>
<pre><code>Image
-----
/home/alistair/pharo7/IssueOSProcess6/Pharo.image
Pharo6.0
Latest update: #60540
Unnamed

Virtual Machine
---------------
/home/alistair/pharo7/IssueOSProcess6/vm/lib/pharo/5.0-201804051426/pharo
CoInterpreter VMMaker.oscog-eem.2361 uuid: 7ca2f89a-de70-422f-b92b-54f91ac4e47b Apr  5 2018
StackToRegisterMappingCogit VMMaker.oscog-eem.2361 uuid: 7ca2f89a-de70-422f-b92b-54f91ac4e47b Apr  5 2018
VM: 201804051426 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $ Date: Thu Apr 5 16:26:17 2018 +0200 $ CommitHash: 3421494 $ Plugins: 201804051426 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you commented.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/232#issuecomment-379209968">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AhLyW4oGCp-oIVqsm7P4Ns5bJOSb3JO_ks5tlz7GgaJpZM4S6rMa">mute the thread</a>.<img src="https://github.com/notifications/beacon/AhLyW3YFiheamwEz8B0i4NmUHayBQw-dks5tlz7GgaJpZM4S6rMa.gif" height="1" width="1" alt="" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/232#issuecomment-379209968"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@akgrant43 in #232: Hi Cyril,\r\n\r\nI wasn't able to reproduce it, although I'm obviously missing the definition of \"self binPath\".\r\n\r\nAre you able to adapt the script below to trigger the failure?\r\n\r\n\r\n```\r\n| thisProcess currentPath result command aFile |\r\n\r\n\taFile := 'PharoDebug.log' asFileReference.\r\n\taFile exists ifFalse: [ self error: 'I want a reasonable size file (several kB)' ].\r\n\tthisProcess := OSProcess thisOSProcess.\r\n\tcurrentPath := thisProcess environment at: #PATH.\r\n\tcommand := PipeableOSProcess command: ( 'cat ' , aFile fullName).\r\n\t[ result := command outputAndError ] ensure: [ command close ].\r\n\tthisProcess environment at: #PATH put: currentPath.\r\n\tresult\r\n\r\n\r\n\" #('THERE_BE_DRAGONS_HERE\r\n...\r\n\"\r\n```\r\n\r\nSystem Report:\r\n\r\n```\r\nImage\r\n-----\r\n/home/alistair/pharo7/IssueOSProcess6/Pharo.image\r\nPharo6.0\r\nLatest update: #60540\r\nUnnamed\r\n\r\nVirtual Machine\r\n---------------\r\n/home/alistair/pharo7/IssueOSProcess6/vm/lib/pharo/5.0-201804051426/pharo\r\nCoInterpreter VMMaker.oscog-eem.2361 uuid: 7ca2f89a-de70-422f-b92b-54f91ac4e47b Apr  5 2018\r\nStackToRegisterMappingCogit VMMaker.oscog-eem.2361 uuid: 7ca2f89a-de70-422f-b92b-54f91ac4e47b Apr  5 2018\r\nVM: 201804051426 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $ Date: Thu Apr 5 16:26:17 2018 +0200 $ CommitHash: 3421494 $ Plugins: 201804051426 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $\r\n```\r\n\r\n"}],"action":{"name":"View Pull Request","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/232#issuecomment-379209968"}}}</script>