<?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[NetXMS 7.0.2 crashes with SIGSEGV shortly after startup]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">we recently upgraded our NetXMS server from version 6.2.5 to 7.0.2</p>
<p dir="auto">Unfortunately, the server starts successfully but crashes with a segmentation fault approximately 60 seconds after startup. We have since reverted to NetXMS 6.2.5, which is running normally again.</p>
<p dir="auto"><strong>Environment</strong><br />
OS: Ubuntu 24.04 LTS<br />
Database: Microsoft SQL Server<br />
ODBC Driver: Microsoft ODBC Driver 18 for SQL Server<br />
Build: 7.0-951-g0771917ac1</p>
<p dir="auto"><strong>NetXMS Log</strong></p>
<blockquote>
<p dir="auto">2026.11.06 15:23:46.624 *I* [startup] NetXMS Server started<br />
2026.11.06 15:23:46.728 *D* [dc.cache] Finished caching of DCI values</p>
<p dir="auto">Approximately two seconds later:<br />
Segmentation fault (core dumped)<br />
System log:</p>
</blockquote>
<p dir="auto"><strong>System Log:</strong></p>
<blockquote>
<p dir="auto">Nov 06 15:23:46 SERVERNAME systemd[1]: Started netxmsd.service - NetXMS Server.<br />
Nov 06 15:24:05 SERVERNAME systemd[1]: netxmsd.service: Main process exited, code=dumped, status=11/SEGV<br />
Nov 06 15:24:05 SERVERNAME systemd[1]: netxmsd.service: Failed with result 'core-dump'.</p>
</blockquote>
<p dir="auto"><strong>Core dump analysis</strong></p>
<blockquote>
<p dir="auto">Signal: 11 (SEGV)<br />
Current thread: Thread 108442</p>
<p dir="auto">Relevant stack trace:<br />
#0 HashMapBase::_get<br />
   (libnetxms.so.70 + 0x56b80)</p>
<p dir="auto">#1 HashMap&lt;NXSL_Identifier, NXSL_ExtMethod&gt;::get<br />
   (libnxsl.so.70 + 0x27818)</p>
<p dir="auto">#2 NXSL_VM::callMethod<br />
   (libnxsl.so.70 + 0x573be)</p>
<p dir="auto">#3 NXSL_VM::execute<br />
   (libnxsl.so.70 + 0x5aba2)</p>
<p dir="auto">#4 NXSL_VM::run<br />
   (libnxsl.so.70 + 0x60f30)</p>
<p dir="auto">#5 NXSL_VM::run<br />
   (libnxcore.so.70 + 0x2270e6)</p>
<p dir="auto">#6 DataCollectionTarget::getMetricFromScript<br />
   (libnxcore.so.70 + 0x227399)</p>
<p dir="auto">#7 GetItemData<br />
   (libnxcore.so.70 + 0x1cada9)</p>
<p dir="auto">#8 DataCollector<br />
   (libnxcore.so.70 + 0x1cdb31)</p>
<p dir="auto">#9 ThreadPoolExecute<br />
   (libnxcore.so.70 + 0x231ac0)</p>
</blockquote>
<p dir="auto">This suggests that the crash occurs while NXSL is looking up an external method during execution of a script-based DCI.</p>
<p dir="auto">We use a script-based DCI that reads the installed products table from a NetXMS agent:</p>
<pre><code>function main()
{
   result = "Fehler bei der Ermittlung";

   table = $node.readAgentTable("System.InstalledProducts");

   if (table != null)
   {
      indexName = table.getColumnIndex("NAME");
      indexVersion = table.getColumnIndex("VERSION");
      indexUser = table.getColumnIndex("USER");

      result = "nicht installiert";

      search = $1.toLowerCase();

      for (row = 0; row &lt; table.rowCount; row++)
      {
         name = table.get(row, indexName).toLowerCase();
         user = table.get(row, indexUser).trim();

         if (name.contains(search) &amp;&amp; (user == ""))
         {
            result = table.get(row, indexVersion);
            break;
         }
      }
   }

   return result;
}
</code></pre>
<p dir="auto">In addition, shortly before the problem occurred, we installed Ubuntu system updates, including kernel updates. It's possible that the problems didn't occur until after the updates were installed—unfortunately, we can't say for sure.</p>
<blockquote>
<p dir="auto">libsqlite3-0/noble-updates 3.45.1-1ubuntu2.9 amd64 [aktualisierbar von: 3.45.1-1ubuntu2.8]<br />
linux-cloud-tools-common/noble-updates 6.8.0-149.149 all [aktualisierbar von: 6.8.0-147.147]<br />
linux-firmware-amd-graphics/noble-updates 20240318.git3b128b60-0ubuntu3.4 all [aktualisierbar von: 20240318.git3b128b60-0ubuntu3.3]<br />
linux-generic/noble-updates 6.8.0-149.149 amd64 [aktualisierbar von: 6.8.0-147.147]<br />
linux-headers-generic/noble-updates 6.8.0-149.149 amd64 [aktualisierbar von: 6.8.0-147.147]<br />
linux-image-generic/noble-updates 6.8.0-149.149 amd64 [aktualisierbar von: 6.8.0-147.147]<br />
linux-libc-dev/noble-updates 6.8.0-149.149 amd64 [aktualisierbar von: 6.8.0-147.147]<br />
linux-tools-common/noble-updates 6.8.0-149.149 all [aktualisierbar von: 6.8.0-147.147]</p>
</blockquote>
<p dir="auto">Thank you in advance for your help.<br />
Alwin</p>
]]></description><link>https://forum.netxms.org/topic/8473/netxms-7.0.2-crashes-with-sigsegv-shortly-after-startup</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 06:09:37 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8473.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Nov 2026 15:35:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NetXMS 7.0.2 crashes with SIGSEGV shortly after startup on Wed, 11 Nov 2026 08:09:20 GMT]]></title><description><![CDATA[<p dir="auto">Hi Alex,</p>
<p dir="auto">thank you for the detailed analysis. We checked our current NetXMS 6.2.5 installation.</p>
<ol>
<li>Both Dell drivers are present:</li>
</ol>
<p dir="auto">dell.ndd       426K<br />
dell-pwc.ndd   168K</p>
<ol start="2">
<li>Old NetXMS libraries are still present in /usr/local/lib:<br />
We found both .so.50 and .so.61 versions, including the libraries you mentioned:</li>
</ol>
<p dir="auto">libnxsrv.so.61<br />
libnxsl.so.61<br />
libnetxms.so.61<br />
..</p>
<ol start="3">
<li>The old Dell driver is actively loaded under NetXMS 6.2.5.<br />
Our server log contains several entries such as:</li>
</ol>
<p dir="auto">Network device driver DELL-PWC loaded successfully</p>
<p dir="auto">This confirms that the old driver is still being loaded in our current 6.2.5 installation.<br />
We have not removed or modified any files yet, as the current production server is still running 6.2.5.</p>
<p dir="auto">Your explanation sounds very plausible and matches what we found.<br />
We will prepare a clean upgrade to 7.0.2, removing the obsolete driver and libraries as suggested.</p>
<p dir="auto">Thanks again for investigating this issue!</p>
<p dir="auto">Best regards<br />
Alwin</p>
]]></description><link>https://forum.netxms.org/post/35877</link><guid isPermaLink="true">https://forum.netxms.org/post/35877</guid><dc:creator><![CDATA[Alwin]]></dc:creator><pubDate>Wed, 11 Nov 2026 08:09:20 GMT</pubDate></item><item><title><![CDATA[Reply to NetXMS 7.0.2 crashes with SIGSEGV shortly after startup on Tue, 10 Nov 2026 09:46:02 GMT]]></title><description><![CDATA[<p dir="auto">I think I found it, and it can be checked without a maintenance window.</p>
<p dir="auto">In 6.2 the Dell driver was renamed from <code>dell-pwc</code> to <code>dell</code>. <code>make install</code> never removes files, so your tree, which went through 5.x and 6.1 (the <code>.so.50</code> and <code>.so.61</code> libraries are still in /usr/local/lib), most likely still has the old <code>/usr/local/lib/netxms/ndd/dell-pwc.ndd</code>. At startup 7.0.2 opens every driver in that directory. Opening the old one pulls in the 6.1 libraries it was linked against (libnxsrv.so.61, libnxsl.so.61, libnetxms.so.61), and their initialisation code overwrites part of the 7.0.2 script engine, including the definition of the Table class. The server then rejects the driver because of the API version and unloads it, which leaves the Table class broken. The first script that calls a Table method crashes in exactly the lookup in your backtrace. Your readAgentTable DCI does that within seconds of startup. 6.2.5 isn't affected because the old driver's API version still matched there, so it stayed loaded.</p>
<p dir="auto">To confirm:</p>
<pre><code>ls -l /usr/local/lib/netxms/ndd/
grep -i 'dell-pwc' /var/log/netxmsd*    # or wherever LogFile points
</code></pre>
<p dir="auto">The 7.0.2 log should have a line <code>Network device driver "dell-pwc.ndd" cannot be loaded because of API version mismatch (driver: 13; server: 14)</code>. Ignore my earlier <code>info sharedlibrary</code> request: the old libraries are unloaded right after that check, so they may not appear in the core at all.</p>
<p dir="auto">For the next upgrade, move <code>/usr/local/lib/netxms</code> away before <code>make install</code> and remove the old <code>libnx*.so.50*</code>, <code>.so.61*</code> and <code>libnetxms.so.50*</code> / <code>.so.61*</code> libraries from /usr/local/lib. Nothing in 6.2.5 or 7.0.2 uses them.</p>
]]></description><link>https://forum.netxms.org/post/35872</link><guid isPermaLink="true">https://forum.netxms.org/post/35872</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Tue, 10 Nov 2026 09:46:02 GMT</pubDate></item><item><title><![CDATA[Reply to NetXMS 7.0.2 crashes with SIGSEGV shortly after startup on Tue, 10 Nov 2026 00:15:42 GMT]]></title><description><![CDATA[<p dir="auto">Yes, it helps, and you don't need another maintenance window for the next step.</p>
<p dir="auto">The coredump explains why the offsets didn't match our packages: it's your own build, with full debug info, so the stack trace itself is accurate. The old .so.50/.61/.62 libraries in /usr/local/lib are not a problem - 7.0.2 links only the .so.70 ones, and those are the only ones in the dump. What <code>make install</code> over an existing tree doesn't clean up is /usr/local/lib/netxms. The server loads every network device driver and notification channel driver from there at startup, so a file left over from an older build would put old code into the 7.0.2 process. The dump you sent doesn't show which files were loaded.</p>
<p dir="auto">Both questions can be answered from the core you already have, with 6.2.5 running. systemd deletes cores after two weeks by default, so copy it somewhere safe first:</p>
<pre><code>coredumpctl dump 107876 -o /root/netxmsd-7.0.2.core
ls -l /usr/local/lib/libnxsl.so.70*     # 7.0.2 libraries must still be in place
</code></pre>
<p dir="auto">Then open it with the 7.0.2 netxmsd from the build tree. If /tmp/netxms-7.0.2 is gone, build the same tarball again with the same configure options (make only, no make install):</p>
<pre><code>gdb /tmp/netxms-7.0.2/src/server/netxmsd/.libs/netxmsd /root/netxmsd-7.0.2.core
(gdb) set logging file /root/netxmsd-bt.txt
(gdb) set logging on
(gdb) info sharedlibrary
(gdb) frame function NXSL_VM::callMethod
(gdb) p name
(gdb) p *object
(gdb) p *object-&gt;m_class
(gdb) thread apply all bt full
(gdb) quit
</code></pre>
<p dir="auto">Some values may show as <code>&lt;optimized out&gt;</code>, that's fine. Please attach /root/netxmsd-bt.txt, plus the output of <code>ls -lR /usr/local/lib/netxms</code> and any Module or driver lines from netxmsd.conf (without passwords).</p>
<p dir="auto">If gdb lists libraries from an older version, the fix is a clean install - move /usr/local/lib/netxms away before <code>make install</code>. If everything loaded is 7.0.2, the backtrace goes into the tracking issue <a href="https://github.com/netxms/netxms/issues/3889" rel="nofollow ugc">#3889</a>, and the test with script DCIs disabled stays as the plan for the next window.</p>
]]></description><link>https://forum.netxms.org/post/35870</link><guid isPermaLink="true">https://forum.netxms.org/post/35870</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Tue, 10 Nov 2026 00:15:42 GMT</pubDate></item><item><title><![CDATA[Reply to NetXMS 7.0.2 crashes with SIGSEGV shortly after startup on Mon, 09 Nov 2026 10:10:34 GMT]]></title><description><![CDATA[<p dir="auto">Hi Alex,</p>
<p dir="auto">Thank you for your detailed analysis on github.</p>
<p dir="auto">I would like to provide some additional information about our installation procedure and attach two files for your investigation:</p>
<p dir="auto">coredump_7.0.2_first_try.txt – the complete core dump information from our first attempt with NetXMS 7.0.2.<br />
NetXMS_packages_6.2.5_before_Update_to_7.0.2.txt – package and library information collected from our currently running NetXMS 6.2.5 installation, before upgrading to 7.0.2.<br />
Our NetXMS installations are not based on Ubuntu/Debian packages. We always download the official source tarball and compile NetXMS locally.</p>
<p dir="auto">Our upgrade procedure is as follows:</p>
<pre><code>cd /tmp
wget https://netxms.org/download/releases/7.0/netxms-7.0.2.tar.gz
tar zxvf netxms-7.0.2.tar.gz
cd netxms-7.0.2
./configure --enable-release-build --with-server --with-odbc --with-agent --with-internal-libargon2
make
make install
nxdbmgr upgrade
systemctl start netxmsd
</code></pre>
<p dir="auto">This might also explain why the package-related commands (dpkg and apt-cache) do not provide any useful information in our environment.</p>
<p dir="auto">Would the attached information and our installation procedure be helpful for your further investigation? Perhaps this already provides some additional clues before we schedule another attempt with NetXMS 7.0.2.</p>
<p dir="auto">As a next step, we are planning to repeat the test with script DCIs disabled to determine whether they are involved in triggering the crash.</p>
<p dir="auto">Since another test would require a maintenance window and a subsequent rollback to 6.2.5, we would appreciate your feedback on whether the information provided so far might already help narrow down the issue.</p>
<p dir="auto">Best regards<br />
Alwin</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000007413-coredump_7.0.2_first_try.txt">coredump_7.0.2_first_try.txt</a></p>
<p dir="auto"><a href="/assets/uploads/files/smf/0000000007414-NetXMS_packages_6.2.5_before_Update_to_7.0.2.txt">NetXMS_packages_6.2.5_before_Update_to_7.0.2.txt</a></p>
]]></description><link>https://forum.netxms.org/post/35867</link><guid isPermaLink="true">https://forum.netxms.org/post/35867</guid><dc:creator><![CDATA[Alwin]]></dc:creator><pubDate>Mon, 09 Nov 2026 10:10:34 GMT</pubDate></item><item><title><![CDATA[Reply to NetXMS 7.0.2 crashes with SIGSEGV shortly after startup on Sat, 07 Nov 2026 22:55:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi Alwin,</p>
<p dir="auto">I can't reproduce this locally. Your script runs fine on 7.0.2 here, and nobody else has reported this crash. I've opened an issue for it: <a href="https://github.com/netxms/netxms/issues/3889" rel="nofollow ugc">https://github.com/netxms/netxms/issues/3889</a></p>
<p dir="auto">The stack shows a crash while a script DCI calls a method on an object (node, table, etc.). Every script DCI goes through that same path, though, so it doesn't prove this particular script is the one. The Ubuntu updates you listed are very unlikely to be related.</p>
<p dir="auto">If you still have the core dump, please send a full backtrace and the list of installed NetXMS packages:</p>
<pre><code>coredumpctl gdb netxmsd
(gdb) thread apply all bt full
(gdb) quit

dpkg -l | grep netxms
</code></pre>
<p dir="auto">If you try the upgrade again, disable the script DCIs on 6.2.5 first. If 7.0.2 then stays up, we know it's script-related and can narrow it down from there.</p>
]]></description><link>https://forum.netxms.org/post/35866</link><guid isPermaLink="true">https://forum.netxms.org/post/35866</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Sat, 07 Nov 2026 22:55:36 GMT</pubDate></item></channel></rss>