<div dir="ltr">Have you tried running a git blame on the allocator code to see if there is a change recently to it? R14B04 is pretty old, so the code base might have changed quite a lot since then.</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Oct 9, 2013 at 6:14 AM, Ruan Jonker <span dir="ltr"><<a href="mailto:ruan.jonker@gmail.com" target="_blank">ruan.jonker@gmail.com</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">Hi All,<br><div><br>Just some more info :<br><br><br>addr2line -e /home/mtrouter/mira_mt_router/erts-5.8.5/bin/beam 0808f818<br>/home/erlang/src/otp_src_R14B04/erts/emulator/beam/erl_bestfit_alloc.c:228<br>
<br></div><div>BR<br><br></div><div>Ruan<br></div><div><br><br></div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Tue, Oct 8, 2013 at 10:14 AM, Ruan Jonker <span dir="ltr"><<a href="mailto:ruan.jonker@gmail.com" target="_blank">ruan.jonker@gmail.com</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"><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
Hi All,</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
I've recently encountered the following in dmesg output after one of my VM's crashed:</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
>>> dmesg output start </div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div>[2827116.693283] beam[28297]: segfault at 0000000c eip 0808f818 esp bff7a294 error 4</div></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div>>>> dmesg output end</div><div><br></div></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
Here is a disassembly of beam with some context around 808f818 :</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
>>> disassembly start</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div> 808f7fa:<span style="white-space:pre-wrap"> </span>5f <span> </span><span style="white-space:pre-wrap"> </span>pop %edi</div><div> 808f7fb:<span style="white-space:pre-wrap"> </span>c3 <span> </span><span style="white-space:pre-wrap"> </span>ret </div>
<div> 808f7fc:<span style="white-space:pre-wrap"> </span>8b 51 0c <span> </span><span style="white-space:pre-wrap"> </span>mov 0xc(%ecx),%edx</div><div> 808f7ff:<span style="white-space:pre-wrap"> </span>39 da <span style="white-space:pre-wrap"> </span>cmp %ebx,%edx</div>
<div> 808f801:<span style="white-space:pre-wrap"> </span>0f <a href="tel:84%2096%2000%2000%2000" value="+18496000000" target="_blank">84 96 00 00 00</a> <span style="white-space:pre-wrap"> </span>je 808f89d <tree_insert_fixup+0x11d></div>
<div> 808f807:<span style="white-space:pre-wrap"> </span>8b 43 08 <span> </span><span style="white-space:pre-wrap"> </span>mov 0x8(%ebx),%eax</div>
<div> 808f80a:<span style="white-space:pre-wrap"> </span>8b 50 08 <span> </span><span style="white-space:pre-wrap"> </span>mov 0x8(%eax),%edx</div><div> 808f80d:<span style="white-space:pre-wrap"> </span>83 60 04 fd <span style="white-space:pre-wrap"> </span>andl $0xfffffffd,0x4(%eax)</div>
<div> 808f811:<span style="white-space:pre-wrap"> </span>8b 4a 10 <span> </span><span style="white-space:pre-wrap"> </span>mov 0x10(%edx),%ecx</div><div> 808f814:<span style="white-space:pre-wrap"> </span>83 4a 04 02 <span style="white-space:pre-wrap"> </span>orl $0x2,0x4(%edx)</div>
<div> 808f818:<span style="white-space:pre-wrap"> </span>8b 41 0c <span> </span><span style="white-space:pre-wrap"> </span>mov 0xc(%ecx),%eax</div><div> 808f81b:<span style="white-space:pre-wrap"> </span>85 c0 <span style="white-space:pre-wrap"> </span>test %eax,%eax</div>
<div> 808f81d:<span style="white-space:pre-wrap"> </span>89 42 10 <span> </span><span style="white-space:pre-wrap"> </span>mov %eax,0x10(%edx)</div><div> 808f820:<span style="white-space:pre-wrap"> </span>74 03 <span style="white-space:pre-wrap"> </span>je 808f825 <tree_insert_fixup+0xa5></div>
<div> 808f822:<span style="white-space:pre-wrap"> </span>89 50 08 <span> </span><span style="white-space:pre-wrap"> </span>mov %edx,0x8(%eax)</div><div> 808f825:<span style="white-space:pre-wrap"> </span>8b 42 08 <span> </span><span style="white-space:pre-wrap"> </span>mov 0x8(%edx),%eax</div>
<div> 808f828:<span style="white-space:pre-wrap"> </span>85 c0 <span style="white-space:pre-wrap"> </span>test %eax,%eax</div><div> 808f82a:<span style="white-space:pre-wrap"> </span>89 41 08 <span> </span><span style="white-space:pre-wrap"> </span>mov %eax,0x8(%ecx)</div>
<div> 808f82d:<span style="white-space:pre-wrap"> </span>74 6a <span style="white-space:pre-wrap"> </span>je 808f899 <tree_insert_fixup+0x119></div><div> 808f82f:<span style="white-space:pre-wrap"> </span>8b 42 08 <span> </span><span style="white-space:pre-wrap"> </span>mov 0x8(%edx),%eax</div>
<div> 808f832:<span style="white-space:pre-wrap"> </span>3b 50 0c <span> </span><span style="white-space:pre-wrap"> </span>cmp 0xc(%eax),%edx</div><div>>>> disassembly start</div><div>
<br></div><div>ldd erts-5.8.5/bin/beam</div><div><span style="white-space:pre-wrap"> </span>linux-gate.so.1 => (0xb76fe000)</div><div><span style="white-space:pre-wrap"> </span>libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0xb76f2000)</div>
<div><span style="white-space:pre-wrap"> </span>libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb76ee000)</div><div><span style="white-space:pre-wrap"> </span>libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb76c8000)</div>
<div><span style="white-space:pre-wrap"> </span>libncurses.so.5 => /lib/libncurses.so.5 (0xb7698000)</div><div><span style="white-space:pre-wrap"> </span>libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7680000)</div>
<div><span style="white-space:pre-wrap"> </span>librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7677000)</div><div><span style="white-space:pre-wrap"> </span>libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7528000)</div>
<div><span style="white-space:pre-wrap"> </span>/lib/ld-linux.so.2 (0xb76ff000)</div><div> <br></div></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
I'm running R14B04 on ubuntu 8.04 32bit built using gcc:<br><br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
gcc -v<br>Using built-in specs.<br>Target: i486-linux-gnu<br>Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu<br>
Thread model: posix<br>gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)<br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br><br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
Has anybody seen something similar ?<br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
BR<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br></div>-- <br>Ruan Jonker<br>
</font></span></div>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>Ruan Jonker<br>South Africa<br><a href="tel:%2B27824619036" value="+27824619036" target="_blank">+27824619036</a><br>
</font></span></div>
<br>_______________________________________________<br>
erlang-bugs mailing list<br>
<a href="mailto:erlang-bugs@erlang.org">erlang-bugs@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-bugs" target="_blank">http://erlang.org/mailman/listinfo/erlang-bugs</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>J.
</div>