<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Segfault after upgrade to 2.1-RC1]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Looks like our NetXMS server decided to start segfaulting after the upgrade to 2.1-RC1.<br />
Reading through the dump and not being a developer, I have no idea what the underlying cause is, so here goes:</p>
<pre><code>*** Error in `netxmsd': malloc(): smallbin double linked list corrupted: 0x0000000035444410 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f6f596457e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x81d61)[0x7f6f5964fd61]
/lib/x86_64-linux-gnu/libc.so.6(__libc_calloc+0xba)[0x7f6f5965221a]
/usr/lib/x86_64-linux-gnu/libnetxms.so.2(_ZN11NXCPMessageC1EP12NXCP_MESSAGEi+0x227)[0x7f6f599c3b47]
/usr/lib/x86_64-linux-gnu/libnxsrv.so.2(_ZN15AgentConnection14receiverThreadEv+0x592)[0x7f6f59c20b72]
/usr/lib/x86_64-linux-gnu/libnxsrv.so.2(_ZN15AgentConnection21receiverThreadStarterEPv+0x9)[0x7f6f59c21039]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f6f57a2d6ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f6f596d482d]
</code></pre>
<p dir="auto">Anyone else seeing similar crashes? Any idea what's causing them?</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.netxms.org/topic/5059/segfault-after-upgrade-to-2.1-rc1</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 22:03:32 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5059.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 May 2017 10:43:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Segfault after upgrade to 2.1-RC1 on Tue, 18 Jul 2017 04:40:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Just a FYI: The issue persisted with the release of 2.1, but has now been resolved in the latest development build.</p>
<p dir="auto">A huge thank you to Victor for logging into our system, determining the underlying cause (related to Active Agent Tunnels) and fixing it.</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.netxms.org/post/22706</link><guid isPermaLink="true">https://forum.netxms.org/post/22706</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Tue, 18 Jul 2017 04:40:21 GMT</pubDate></item><item><title><![CDATA[Reply to Segfault after upgrade to 2.1-RC1 on Wed, 31 May 2017 22:31:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">Had not ever had to do this before, so it was a bit of a learning experience.<br />
Just putting the notes down here in case it ever comes in handy for someone else (or as a reminder for myself if I need this again)</p>
<p dir="auto">Edited /etc/security/limits.conf and added lines to allow "core" dumps up to 10GB (soft and hard limits). The default is "0", i.e. disabled.<br />
Edited /etc/sysctl.conf and set the kernel.core_pattern to /var/tmp/core-%e-%t.</p>
<p dir="auto">Worked fine and sent links to core dumps in a private message.</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.netxms.org/post/22445</link><guid isPermaLink="true">https://forum.netxms.org/post/22445</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Wed, 31 May 2017 22:31:07 GMT</pubDate></item><item><title><![CDATA[Reply to Segfault after upgrade to 2.1-RC1 on Wed, 31 May 2017 03:26:12 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">I am trying that now, will let you know how it goes.</p>
<p dir="auto">I noticed something in the logs on the latest crash (prior to configuration change) which seemed odd:<br />
[ERROR] SQL query failed (Query = "SELECT idata_value,idata_timestamp FROM idata_225 WHERE item_id=1047081695 ORDER BY idata_timestamp DESC LIMIT 32767"): 42P01 ERROR:  relation "idata_225" does not exist LINE 1: SELECT idata_value,idata_timestamp FROM idata_225 WHERE item...</p>
<p dir="auto">I have no idea why NetXMS would try to query a table that doesn't exist for an item_id which definitely does not exist (way too high, max(item_id) in the items table is currently '668531'). This was literally the last entry in the log (I did not see anything like this in the previous crashes though).</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.netxms.org/post/22440</link><guid isPermaLink="true">https://forum.netxms.org/post/22440</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Wed, 31 May 2017 03:26:12 GMT</pubDate></item><item><title><![CDATA[Reply to Segfault after upgrade to 2.1-RC1 on Tue, 30 May 2017 20:37:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">can you configure your system to generate core file after crash? I can analyze core with gdb then.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/22435</link><guid isPermaLink="true">https://forum.netxms.org/post/22435</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 30 May 2017 20:37:26 GMT</pubDate></item><item><title><![CDATA[Reply to Segfault after upgrade to 2.1-RC1 on Fri, 26 May 2017 06:34:27 GMT]]></title><description><![CDATA[<p dir="auto">The random segfaults continue. I can't get a backtrace using the method described in the Wiki - it never returns to gdb after crashing. Not sure if I am missing something?</p>
<p dir="auto">Here's another segfault output (no idea if that helps at all):</p>
<pre><code>*** Error in `netxmsd': corrupted double-linked list: 0x00007f33103c6710 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f339ec357e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x81f88)[0x7f339ec3ff88]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x54)[0x7f339ec415d4]
/lib/x86_64-linux-gnu/libc.so.6(+0x2a315)[0x7f339ebe8315]
/lib/x86_64-linux-gnu/libc.so.6(+0x227fc)[0x7f339ebe07fc]
/lib/x86_64-linux-gnu/libc.so.6(+0x213a3)[0x7f339ebdf3a3]
/lib/x86_64-linux-gnu/libc.so.6(iconv_open+0x22a)[0x7f339ebdee2a]
/usr/lib/x86_64-linux-gnu/libnetxms.so.2(ucs4_to_ucs2+0x3a)[0x7f339ef9fa5a]
/usr/lib/x86_64-linux-gnu/libnetxms.so.2(_ZN11NXCPMessage3setEjhPKvbm+0x548)[0x7f339efb4758]
/usr/lib/x86_64-linux-gnu/libnxcore.so.2(_ZN6DCItem20fillLastValueMessageEP11NXCPMessagej+0x92)[0x7f339f4a7d52]
/usr/lib/x86_64-linux-gnu/libnxcore.so.2(_ZN20DataCollectionTarget25fillMessageInternalStage2EP11NXCPMessage+0x124)[0x7f339f4b9504]
/usr/lib/x86_64-linux-gnu/libnxcore.so.2(_ZN6NetObj11fillMessageEP11NXCPMessage+0x5e)[0x7f339f4e758e]
/usr/lib/x86_64-linux-gnu/libnxcore.so.2(_ZN13ClientSession12updateThreadEv+0x21c)[0x7f339f524dcc]
/usr/lib/x86_64-linux-gnu/libnxcore.so.2(_ZN13ClientSession19updateThreadStarterEPv+0x9)[0x7f339f525079]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f339d01d6ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f339ecc482d]
</code></pre>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.netxms.org/post/22421</link><guid isPermaLink="true">https://forum.netxms.org/post/22421</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Fri, 26 May 2017 06:34:27 GMT</pubDate></item><item><title><![CDATA[Reply to Segfault after upgrade to 2.1-RC1 on Tue, 16 May 2017 06:00:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">after the crash, the debugger prompt did not re-appear.<br />
It's just stuck showing me loads of lines in the following style:</p>
<pre><code>[New Thread 0x7ffdd22b1700 (LWP 28753)]
</code></pre>
<p dir="auto">These look pretty standard during NetXMS operation and not related to the actual crash.</p>
<p dir="auto">The netxmsd process itself was still showing in the process list as well, but would not stop unless I sent a kill -9.<br />
At that point, of course, the thread in gdb terminated as well and I could not run a backtrace.</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.netxms.org/post/22341</link><guid isPermaLink="true">https://forum.netxms.org/post/22341</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Tue, 16 May 2017 06:00:22 GMT</pubDate></item><item><title><![CDATA[Reply to Segfault after upgrade to 2.1-RC1 on Mon, 15 May 2017 19:19:33 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">could you please run netxmsd under debugger and post a backtrace (<a href="https://wiki.netxms.org/wiki/Running_NetXMS_under_debugger" rel="nofollow ugc">https://wiki.netxms.org/wiki/Running_NetXMS_under_debugger</a>)?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/22319</link><guid isPermaLink="true">https://forum.netxms.org/post/22319</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 15 May 2017 19:19:33 GMT</pubDate></item></channel></rss>