<?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[Segfaults after upgradin to the 1.2.17]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">We are getting segfaults on the netxmsd after upgrading from 1.2.16 to 1.2.17.<br />
Crash occurs about 20 minutes after the start of the service.</p>
<p dir="auto">Server is SLES 11 SP3 with kernel 3.0.101-0.40-default x86_64 and all patches installed.</p>
<pre><code>Oct 27 09:01:01 kernel: [25988161.002060] netxmsd[10021]: segfault at 3e4 ip 00007f30b08c4985 sp 00007f309baf9d80 error 4 in libnxcore.so.1.0.0[7f30b0810000+13b000]
Oct 27 09:22:15 kernel: [25989435.606785] netxmsd[10678]: segfault at 3e4 ip 00007fafd01c4985 sp 00007fafbf0afd80 error 4 in libnxcore.so.1.0.0[7fafd0110000+13b000]
Oct 27 09:42:40 kernel: [25990660.489147] netxmsd[11255]: segfault at 3e4 ip 00007f40a695c985 sp 00007f4095ad9d80 error 4 in libnxcore.so.1.0.0[7f40a68a8000+13b000]
</code></pre>
<p dir="auto">With debugger (gdb) i get this kind of output:</p>
<pre><code>Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f9488359700 (LWP 5152)]
Node::topologyPoll (this=0x7f94908f40e0, pSession=0x0, dwRqId=0, nPoller=62) at node.cpp:5329
5329                if (peerNode-&gt;isDown())

(gdb) bt
#0  Node::topologyPoll (this=0x7f94908f40e0, pSession=0x0, dwRqId=0, nPoller=62) at node.cpp:5329
#1  0x00007f9499b07d67 in TopologyPoller (arg=0x3e) at poll.cpp:586
#2  0x00007f9497e8f806 in start_thread () from /lib64/libpthread.so.0
#3  0x00007f94970a3e8d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()
</code></pre>
<p dir="auto">I think that libc version is 2.11.3</p>
<p dir="auto">Rgs<br />
 TM</p>
]]></description><link>https://forum.netxms.org/topic/3430/segfaults-after-upgradin-to-the-1.2.17</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:21:09 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3430.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Oct 2014 11:02:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Segfaults after upgradin to the 1.2.17 on Tue, 28 Oct 2014 11:43:14 GMT]]></title><description><![CDATA[<p dir="auto">Yes, your changes are correct – I attached wrong file <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /><br />
Proper fix attached.</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000002041-fix.diff">fix.diff</a></p>
]]></description><link>https://forum.netxms.org/post/15147</link><guid isPermaLink="true">https://forum.netxms.org/post/15147</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Tue, 28 Oct 2014 11:43:14 GMT</pubDate></item><item><title><![CDATA[Reply to Segfaults after upgradin to the 1.2.17 on Tue, 28 Oct 2014 07:04:39 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Thanks for the step by step instructions<br />
This was my first (or second) time than i added the patch to source.</p>
<p dir="auto">make command gave the following error:</p>
<pre><code>
node.cpp: In member function 'UINT32 Node::getItemFromSNMP(WORD, const char*, size_t, char*, int)':
node.cpp:3188: warning: format '%llu' expects type 'long long unsigned int', but argument 4 has type 'long unsigned int'
node.cpp:3188: warning: format '%llu' expects type 'long long unsigned int', but argument 4 has type 'long unsigned int'
node.cpp: In member function 'void Node::topologyPoll(ClientSession*, UINT32, int)':
node.cpp:5331: error: 'm_name' was not declared in this scope
node.cpp:5331: error: 'm_id' was not declared in this scope

</code></pre>
<p dir="auto">I tried to read the source code and find right variable names. File netxms-1.2.17/src/server/core/node.cpp and row 5331<br />
Orginal</p>
<pre><code>DbgPrintf(6, _T("Node::topologyPoll(%s [%d]): peer node set but node object does not exist"), m_name, m_id);
</code></pre>
<p dir="auto">Modified</p>
<pre><code> DbgPrintf(6, _T("Node::topologyPoll(%s [%d]): peer node set but node object does not exist"), m_szName, m_dwId);
</code></pre>
<p dir="auto">I'm not sure whether those correctly, but after change make command does not give any error.</p>
<p dir="auto">...and yes, database is backed up before this code is executed <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
<p dir="auto">Rgs<br />
 TM</p>
]]></description><link>https://forum.netxms.org/post/15145</link><guid isPermaLink="true">https://forum.netxms.org/post/15145</guid><dc:creator><![CDATA[tuomar]]></dc:creator><pubDate>Tue, 28 Oct 2014 07:04:39 GMT</pubDate></item><item><title><![CDATA[Reply to Segfaults after upgradin to the 1.2.17 on Mon, 27 Oct 2014 19:22:44 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, my bad. Patch from my previous post will not apply correctly to 1.2.17. New patch attached to this post.</p>
<ol>
<li>Unpack:<br />
tar zxf netxms-1.2.17.tar.gz</li>
<li>Download fix.diff</li>
<li>cd netxms-1.2.17</li>
<li>Apply patch:<br />
patch -p1 &lt; ../fix.diff</li>
<li>configure with desired options, make, then make install</li>
</ol>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000002040-fix.diff">fix.diff</a></p>
]]></description><link>https://forum.netxms.org/post/15137</link><guid isPermaLink="true">https://forum.netxms.org/post/15137</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Mon, 27 Oct 2014 19:22:44 GMT</pubDate></item><item><title><![CDATA[Reply to Segfaults after upgradin to the 1.2.17 on Mon, 27 Oct 2014 18:38:23 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Thank you for fast reply.</p>
<p dir="auto">I tried install new version (latest snapshot) from git source, but make stopped with error.<br />
This is my first time when i try use git, so maybe i miss something.</p>
<pre><code>make[3]: Leaving directory `/usr/local/src/netxms-git/src/libnxmap'
Making all in libnxsl
make[3]: Entering directory `/usr/local/src/netxms-git/src/libnxsl'
bison -b parser -o parser.tab.cpp -d -t -v parser.y
parser.y:106.32-39: syntax error, unexpected type, expecting string or identifier
make[3]: *** [parser.tab.cpp] Error 1
make[3]: Leaving directory `/usr/local/src/netxms-git/src/libnxsl'
make[2]: *** [all-recursive] Error 1
</code></pre>
<p dir="auto">gcc version is 4.3.4, bison version is 2.3 and flex version is 2.5.35.</p>
<p dir="auto">At last i tried modify 1.2.17 source code (add patch), but i only break it  :-[</p>
<p dir="auto">Rgs<br />
 TM</p>
]]></description><link>https://forum.netxms.org/post/15136</link><guid isPermaLink="true">https://forum.netxms.org/post/15136</guid><dc:creator><![CDATA[tuomar]]></dc:creator><pubDate>Mon, 27 Oct 2014 18:38:23 GMT</pubDate></item><item><title><![CDATA[Reply to Segfaults after upgradin to the 1.2.17 on Mon, 27 Oct 2014 13:26:31 GMT]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">Fixed in trunk: <a href="https://git.netxms.org/public/netxms.git/patch/644f9e7af2ab68f129406c618a5ced8eac1369b5?hp=e47404b36d62c7884860577524e6ad5551226935" rel="nofollow ugc">https://git.netxms.org/public/netxms.git/patch/644f9e7af2ab68f129406c618a5ced8eac1369b5?hp=e47404b36d62c7884860577524e6ad5551226935</a></p>
]]></description><link>https://forum.netxms.org/post/15132</link><guid isPermaLink="true">https://forum.netxms.org/post/15132</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Mon, 27 Oct 2014 13:26:31 GMT</pubDate></item></channel></rss>