<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Trebuchet MS";
panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
h1
{margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:.55in;
text-indent:-.3in;
page-break-after:avoid;
mso-list:l0 level1 lfo2;
font-size:16.0pt;
font-family:Arial;}
h2
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:.65in;
text-indent:-.4in;
mso-list:l0 level2 lfo2;
font-size:14.0pt;
font-family:Arial;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:#606420;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:948437265;
mso-list-template-ids:2050801324;}
@list l0:level1
{mso-level-style-link:"Heading 1";
mso-level-text:%1;
mso-level-tab-stop:.55in;
mso-level-number-position:left;
margin-left:.55in;
text-indent:-.3in;}
@list l0:level2
{mso-level-style-link:"Heading 2";
mso-level-text:"%1\.%2";
mso-level-tab-stop:.65in;
mso-level-number-position:left;
margin-left:.65in;
text-indent:-.4in;}
@list l0:level3
{mso-level-text:"%1\.%2\.%3";
mso-level-tab-stop:.75in;
mso-level-number-position:left;
margin-left:.75in;
text-indent:-.5in;}
@list l0:level4
{mso-level-text:"%1\.%2\.%3\.%4";
mso-level-tab-stop:.85in;
mso-level-number-position:left;
margin-left:.85in;
text-indent:-.6in;}
@list l0:level5
{mso-level-text:"%1\.%2\.%3\.%4\.%5";
mso-level-tab-stop:.95in;
mso-level-number-position:left;
margin-left:.95in;
text-indent:-.7in;}
@list l0:level6
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6";
mso-level-tab-stop:1.05in;
mso-level-number-position:left;
margin-left:1.05in;
text-indent:-.8in;}
@list l0:level7
{mso-level-number-format:alpha-upper;
mso-level-text:"Appendix %7 ";
mso-level-tab-stop:.25in;
mso-level-number-position:left;
margin-left:.25in;
text-indent:0in;}
@list l0:level8
{mso-level-text:"%7\.%8";
mso-level-tab-stop:.5in;
mso-level-number-position:left;
margin-left:.25in;
text-indent:0in;
mso-ansi-font-size:14.0pt;
font-family:Arial;
mso-bidi-font-family:"Times New Roman";
mso-ansi-font-weight:bold;
mso-ansi-font-style:italic;}
@list l0:level9
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9";
mso-level-tab-stop:1.35in;
mso-level-number-position:left;
margin-left:1.35in;
text-indent:-1.1in;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>
</head>
<body lang=EN-CA link=blue vlink="#606420">
<div class=Section1>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>Hi.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>I run R14B02 on Windows 2K8 64-bit server (but Erlang is
32-bit). But looking at the latest code from GitHub, the problem is still
there.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>When I try filelib:ensure_dir("Y:/toto.txt") and
the drive "Y:" does not exist, the VM crashes after a few minutes
with eheap_alloc cannot allocate 1425410620 bytes of memory (of type
"heap").<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>Looking at the Erlang source code for ensure_dir/1, and if
I'm reading it right, the endless loop is caused because the dirname in
"Y:/toto.txt" is "Y:/" but "Y:/" is not
considered a directory by do_is_dir/2. So a recursive call to ensure_dir/1 is
done, and.....<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>Is it really a bug?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>Luc<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Trebuchet MS"><span lang=FR-CA
style='font-size:10.0pt;font-family:"Trebuchet MS"'>---</span></font><span
lang=FR-CA><o:p></o:p></span></p>
<p class=MsoNormal><em><i><font size=1 face=Arial><span lang=FR-CA
style='font-size:7.5pt;font-family:Arial'>Le cri du nourrisson est le résultat
de plusieurs années de recherche dans le domaine du signal d'alarme.</span></font></i></em><span
lang=FR-CA><o:p></o:p></span></p>
<p class=MsoNormal><em><i><font size=1 face="Trebuchet MS"><span lang=FR-CA
style='font-size:7.5pt;font-family:"Trebuchet MS"'>(Serge Bouchard)</span></font></i></em><span
lang=FR-CA><o:p></o:p></span></p>
<p class=MsoNormal><font size=2 face="Trebuchet MS"><span lang=FR-CA
style='font-size:10.0pt;font-family:"Trebuchet MS"'>---</span></font><span
lang=FR-CA><o:p></o:p></span></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=FR-CA style='font-size:
10.0pt;font-family:Arial'>Luc Tanguay, ing./P.Eng.<br>
</span></font><font size=2 face="Trebuchet MS"><span lang=FR-CA
style='font-size:10.0pt;font-family:"Trebuchet MS"'>Bell Canada<br>
671 De La Gauchetière 4e étage,</span></font><span lang=FR-CA><o:p></o:p></span></p>
<p class=MsoNormal><font size=2 face="Trebuchet MS"><span lang=FR-CA
style='font-size:10.0pt;font-family:"Trebuchet MS"'>Montréal H3B 2M8<br>
514-786-6440<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Trebuchet MS"><span lang=FR-CA
style='font-size:10.0pt;font-family:"Trebuchet MS"'>cell: 514-229-7585</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>