<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Jason,</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks for your prompt reply.</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Here is some additional info on this matter:</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:20.25pt"><span lang="EN-GB" style="font-size:11.0pt;font-family:Symbol;color:#1F497D">·</span><span lang="EN-GB" style="font-size:7.0pt;color:#1F497D">        
</span><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">We get crashes with different stack traces in jemalloc. Here is another, different example then the original one we sent you. Here it looks like we start with
 area_dalloc and not area_ralloc.</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:20.25pt"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#0  0x0000000000aa4abe in arena_chunk_purge (arena=0x7f6bb14000c0, all=<value optimized out>) at src/arena.c:783<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#1  arena_purge (arena=0x7f6bb14000c0, all=<value optimized out>) at src/arena.c:952<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#2  0x0000000000aa56e7 in arena_dalloc_large_locked (arena=0x7f6bb14000c0, chunk=<value optimized out>, ptr=0x7f6b52248000) at src/arena.c:1770<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#3  arena_dalloc_large (arena=0x7f6bb14000c0, chunk=<value optimized out>, ptr=0x7f6b52248000) at src/arena.c:1778<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#4  0x00000000008ee9e8 in checked_delete<IMsgDecoder> (this=<value optimized out>, __in_chrg=<value optimized out>) at /usr/local/include/boost/checked_delete.hpp:34<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#5  CMsgSockHandlerImpl::~CMsgSockHandlerImpl (this=<value optimized out>, __in_chrg=<value optimized out>) at /home/imesh/SFIM2Rel/src/comm/MsgSockHandler.cpp:252<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#6  0x00000000008f2942 in checked_delete<CMsgSockHandlerImpl> (this=<value optimized out>) at /usr/local/include/boost/checked_delete.hpp:34<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#7  operator() (this=<value optimized out>) at /home/imesh/SFIM2Rel/src/../ViberCore/include/sti/SmartPointers.h:21<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#8  boost::detail::sp_counted_impl_pd<CMsgSockHandlerImpl*, sti::sti_deleter<CMsgSockHandlerImpl> >::dispose (this=<value optimized out>) at /usr/local/include/boost/smart_ptr/detail/sp_counted_impl.hpp:148<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#9  0x00000000008e543c in release (this=0x7f6b8bf52780, __in_chrg=<value optimized out>) at /usr/local/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:145<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#10 ~shared_count (this=0x7f6b8bf52780, __in_chrg=<value optimized out>) at /usr/local/include/boost/smart_ptr/detail/shared_count.hpp:305<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#11 ~shared_ptr (this=0x7f6b8bf52780, __in_chrg=<value optimized out>) at /usr/local/include/boost/smart_ptr/shared_ptr.hpp:165<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#12 reset (this=0x7f6b8bf52780, __in_chrg=<value optimized out>) at /usr/local/include/boost/smart_ptr/shared_ptr.hpp:382<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#13 reset (this=0x7f6b8bf52780, __in_chrg=<value optimized out>) at /home/imesh/SFIM2Rel/src/../ViberCore/include/sti/SmartPointers.h:101<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#14 CMsgSockHandler::~CMsgSockHandler (this=0x7f6b8bf52780, __in_chrg=<value optimized out>) at /home/imesh/SFIM2Rel/src/comm/MsgSockHandler.cpp:40<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#15 0x00000000009cb591 in release (this=0x7f6bb102b300, sock=...) at /usr/local/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:145<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#16 ~shared_count (this=0x7f6bb102b300, sock=...) at /usr/local/include/boost/smart_ptr/detail/shared_count.hpp:305<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#17 ~shared_ptr (this=0x7f6bb102b300, sock=...) at /usr/local/include/boost/smart_ptr/shared_ptr.hpp:165<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#18 ~shared_ptr (this=0x7f6bb102b300, sock=...) at /home/imesh/SFIM2Rel/src/../ViberCore/include/sti/SmartPointers.h:57<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#19 sti::CDispatcher::doRemoveSocket (this=0x7f6bb102b300, sock=...) at /home/imesh/SFIM2Rel/src/infra/Dispatcher.cpp:863<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#20 0x00000000009cb839 in sti::CDispatcher::RemoveDetachedSockets (this=0x7f6bb102b300) at /home/imesh/SFIM2Rel/src/infra/Dispatcher.cpp:900<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#21 0x00000000009d7b09 in sti::CDispatcher::HandleEvents (this=0x7f6bb102b300, timeout=6) at /home/imesh/SFIM2Rel/src/infra/Dispatcher.cpp:590<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#22 0x000000000080db3b in CServerHelper::HandleEvents (this=0x7f6bb1021020) at /home/imesh/SFIM2Rel/src/servercomm/ServerHelper.cpp:397<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal">#23 0x00000000005c8e6e in main (argc=<value optimized out>, argv=<value optimized out>) at /home/imesh/SFIM2Rel/src/SN/SN.cpp:34<span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:20.25pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:20.25pt"><span lang="EN-GB" style="font-size:11.0pt;font-family:Symbol;color:#1F497D">·</span><span lang="EN-GB" style="font-size:7.0pt;color:#1F497D">        
</span><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Our application in single threaded. To be more accurate, there are two threads – one the main thread and the other the log4cplus thread that samples the logger
 file every minute.</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:20.25pt"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:20.25pt"><span lang="EN-GB" style="font-size:11.0pt;font-family:Symbol;color:#1F497D">·</span><span lang="EN-GB" style="font-size:7.0pt;color:#1F497D">        
</span><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The compile flags we use are:</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_autogen='0'</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_debug='0'</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_dss='0'</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_experimental='0'</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_fill='0'</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_lazy_lock='0'</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_mremap='0'</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_munmap='0'</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_prof='0'</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_stats='0'</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_tcache='1'</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_tls='1'</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_utrace='0'</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_valgrind='0'</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_xmalloc='0'</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:20.25pt"><span style="color:#1F497D">enable_zone_allocator=''</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoListParagraph"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks,</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Ofer</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>