<?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[netxmsd dies when trying to setup and delete users and groups]]></title><description><![CDATA[<p dir="auto">Hi,<br />
Im running 0.2.30 under ubuntu intrepid.<br />
Netxms where running fine during configuration until I tried to configure new users and groups, like adding new access, removing access, adding users to groups, as well as deleting some of them.<br />
This happens when running it both as a daemon and in the foreground,</p>
<p dir="auto">netxmsd  -c /etc/netxms/netxmsd.conf<br />
Using configuration file "/etc/netxms/netxmsd.conf"<br />
Configuration file OK<br />
[14-Oct-2009 17:06:05] Platform subagent "/usr/lib/libnsm_linux.so" successfully loaded<br />
[14-Oct-2009 17:06:05] Database driver "/usr/local/lib/libnxddr_pgsql.so" loaded and initialized successfully<br />
[14-Oct-2009 17:06:05] Stalled database lock removed<br />
[14-Oct-2009 17:06:05] Listening for SNMP traps on UDP socket 0.0.0.0:162<br />
[14-Oct-2009 17:06:05] Listening for client connections on TCP socket 0.0.0.0:4701<br />
[14-Oct-2009 17:06:05] NetXMS Server started</p>
<p dir="auto">NetXMS Server V0.2.30 Ready<br />
Enter "help" for command list or "down" for server shutdown<br />
System Console</p>
<p dir="auto">netxmsd: Segmentation fault</p>
<p dir="auto">When I restart netxms and connect again, the deleted and altered groups/users are still there.</p>
<p dir="auto">I am able to add nodes and change other things without any hazard.</p>
<p dir="auto">I am running it with PostgreSQL 8.3.8</p>
<p dir="auto">I have attached an strace of a crash.</p>
<p dir="auto">Anyone got an idea what could be wrong?</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000000289-strace-1.tar.gz">strace-1.tar.gz</a></p>
<p dir="auto"><a href="/assets/uploads/files/smf/0000000000290-strace-1.tar.gz">strace-1.tar.gz</a></p>
]]></description><link>https://forum.netxms.org/topic/736/netxmsd-dies-when-trying-to-setup-and-delete-users-and-groups</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 19:32:36 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/736.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Oct 2009 16:19:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to netxmsd dies when trying to setup and delete users and groups on Thu, 15 Oct 2009 15:22:47 GMT]]></title><description><![CDATA[<p dir="auto">Ah nice.<br />
Thanks for the very fast help and answers!</p>
<p dir="auto">Best regards,<br />
Dan</p>
]]></description><link>https://forum.netxms.org/post/3470</link><guid isPermaLink="true">https://forum.netxms.org/post/3470</guid><dc:creator><![CDATA[Dan]]></dc:creator><pubDate>Thu, 15 Oct 2009 15:22:47 GMT</pubDate></item><item><title><![CDATA[Reply to netxmsd dies when trying to setup and delete users and groups on Wed, 14 Oct 2009 21:22:23 GMT]]></title><description><![CDATA[<p dir="auto">I was able to reproduce this problem on my machine. Please replace file src/server/core/userdb_objects.cpp and recompile server - problem should be fixed.</p>
<p dir="auto">Best regards,<br />
Victor</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000000291-userdb_objects.cpp">userdb_objects.cpp</a></p>
]]></description><link>https://forum.netxms.org/post/3460</link><guid isPermaLink="true">https://forum.netxms.org/post/3460</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 14 Oct 2009 21:22:23 GMT</pubDate></item><item><title><![CDATA[Reply to netxmsd dies when trying to setup and delete users and groups on Wed, 14 Oct 2009 18:38:48 GMT]]></title><description><![CDATA[<p dir="auto">Here it is, this time when I created a few groups,</p>
<p dir="auto">Program received signal SIGSEGV, Segmentation fault.<br />
[Switching to Thread 0x42807950 (LWP 29468)]<br />
0x00007f91007b0055 in free () from /lib/libc.so.6<br />
(gdb) bt<br />
#0  0x00007f91007b0055 in free () from /lib/libc.so.6<br />
#1  0x00007f91020ff143 in ~Group (this=0x186c000) at userdb_objects.cpp:561<br />
#2  0x00007f91020fd64a in SaveUsers (hdb=0x7f90f001b510) at userdb.cpp:136<br />
#3  0x00007f91020f897d in Syncer (arg=&lt;value optimized out&gt;) at syncer.cpp:116<br />
#4  0x00007f9101e5c3ea in start_thread () from /lib/libpthread.so.0<br />
#5  0x00007f910081acbd in clone () from /lib/libc.so.6<br />
#6  0x0000000000000000 in ?? ()<br />
(gdb)</p>
<p dir="auto">Best regards,<br />
Dan</p>
]]></description><link>https://forum.netxms.org/post/3459</link><guid isPermaLink="true">https://forum.netxms.org/post/3459</guid><dc:creator><![CDATA[Dan]]></dc:creator><pubDate>Wed, 14 Oct 2009 18:38:48 GMT</pubDate></item><item><title><![CDATA[Reply to netxmsd dies when trying to setup and delete users and groups on Wed, 14 Oct 2009 18:35:10 GMT]]></title><description><![CDATA[<p dir="auto">Will do,</p>
<p dir="auto">I have recompiled the server though and it seems like I am able to remove groups without any problem.<br />
But I will run it in gdb and send a trace.</p>
<p dir="auto">Best regards,<br />
Dan</p>
]]></description><link>https://forum.netxms.org/post/3458</link><guid isPermaLink="true">https://forum.netxms.org/post/3458</guid><dc:creator><![CDATA[Dan]]></dc:creator><pubDate>Wed, 14 Oct 2009 18:35:10 GMT</pubDate></item><item><title><![CDATA[Reply to netxmsd dies when trying to setup and delete users and groups on Wed, 14 Oct 2009 18:17:31 GMT]]></title><description><![CDATA[<p dir="auto">Just tested on my Ubuntu machine with PostgreSQL - I got failed SQL query, but no crash. Could you please run netxmsd under gdb and when it crashes get stack trace with <strong>bt</strong> command?</p>
<p dir="auto">To run under gdb:</p>
<p dir="auto"># gdb netxmsd<br />
(gdb) run</p>
<p dir="auto">when crashes<br />
(gdb) bt</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/3457</link><guid isPermaLink="true">https://forum.netxms.org/post/3457</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 14 Oct 2009 18:17:31 GMT</pubDate></item><item><title><![CDATA[Reply to netxmsd dies when trying to setup and delete users and groups on Wed, 14 Oct 2009 17:45:09 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Yes, it's a bug - there should be</p>
<p dir="auto">DELETE FROM user_groups WHERE id=%d</p>
<p dir="auto">However, failed SQL query should not cause server to crash anyway. Could you try to replace <strong>groups</strong> to <strong>user_groups</strong> in this query, recompile server and try delete group again?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/3456</link><guid isPermaLink="true">https://forum.netxms.org/post/3456</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 14 Oct 2009 17:45:09 GMT</pubDate></item><item><title><![CDATA[Reply to netxmsd dies when trying to setup and delete users and groups on Wed, 14 Oct 2009 16:37:17 GMT]]></title><description><![CDATA[<p dir="auto">Checked the eventlog and noticed the following entry when trying to remove one of the groups:</p>
<p dir="auto">"Database query failed [Query: DELETE FROM groups WHERE id =-2147483643; Error: ERROR: relation "groups" does not exist]</p>
<p dir="auto">Which is correct as there is no such table.</p>
<p dir="auto">It seems like that error causes netxmsd to crash.</p>
<p dir="auto">Located in src/server/core/userdb_objects.cpp on row 651,<br />
_sntprintf(query, 256, _T("DELETE FROM groups WHERE id=%d"), m_id);</p>
]]></description><link>https://forum.netxms.org/post/3455</link><guid isPermaLink="true">https://forum.netxms.org/post/3455</guid><dc:creator><![CDATA[Dan]]></dc:creator><pubDate>Wed, 14 Oct 2009 16:37:17 GMT</pubDate></item></channel></rss>