<div dir="ltr">Yes, I think it goes back to when erlang:module_info() was added (which I was also involved in). Before that, the only way to get to the module info was to call the autogenerated function in the module itself, foo:module_info(), and then the code for the module obviously had to exist (or would be loaded on the fly).<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><br>        /Richard</div></div>
<br><div class="gmail_quote">On Sun, Apr 26, 2015 at 10:19 PM, Steve Vinoski <span dir="ltr"><<a href="mailto:vinoski@ieee.org" target="_blank">vinoski@ieee.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 26, 2015 at 2:10 PM, Richard Carlsson <span dir="ltr"><<a href="mailto:carlsson.richard@gmail.com" target="_blank">carlsson.richard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Here's a fun one!<br><div><br>Erlang/OTP 18 [RELEASE CANDIDATE 1] [erts-7.0] [source-7ff8f81] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]<br><br>Eshell V7.0  (abort with ^G)<br>1> c(foo).<br>{ok,foo}<br>2> erlang:get_module_info(foo).<br>[{module,foo},<br> ...]<br>3> code:delete(foo).           <br>true<br>4> erlang:get_module_info(foo).<br>Segmentation fault (core dumped)<br></div></div></blockquote><div><br></div><div>Interestingly, the segv occurs as far back as R12B-5, which is the oldest release I have handy.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>--steve</div></font></span></div></div></div>
</blockquote></div><br></div>