NetXMS Support Forum

English Support => General Support => Topic started by: rgkordia on September 14, 2018, 10:53:56 AM

Title: netxmsd seg-fault
Post by: rgkordia on September 14, 2018, 10:53:56 AM
Fairly new install, 2.2.8 on Debian 9.3.

Recently enabled the ping subagent, and configured a few Average Ping and Packet Loss monitors based on a template to around 8 nodes.

Sep 14 19:49:38 netxms1 kernel: [337446.741930] ItemPoller[1969]: segfault at 52e ip 000000000000052e sp 00007f74c70ca3e8 error 14 in netxmsd[564b357d2000+93000]

Anything else I can provide?
Title: Re: netxmsd seg-fault
Post by: Tatjana Dubrovica on September 14, 2018, 06:17:35 PM
Verify that debug packages for netxms are installed (if installed from the repository), set ulimit to unlimited and provide core dump.
Title: Re: netxmsd seg-fault
Post by: rgkordia on September 17, 2018, 07:34:04 AM
Ok, I've installed the 'netxms-server-dbg' package with apt.  Can you give me some instructions around the ulimit and where it will store the core files please?

From the shell (as root), I issued 'ulimit unlimited' and then restarted netxms 'service netxmsd start' after installing the above package.  Is this sufficient?

For info, two further crashes at seemingly random intervals:

Sep 17 00:02:39 netxms1 kernel: [28869.032511] $POLLERS/WRK[1240]: segfault at 0 ip 000055e1da5d8db2 sp 00007f112f3b2ef0 error 4 in netxmsd[55e1da588000+93000]
Sep 17 16:23:09 netxms1 kernel: [87698.483988] $DATACOLL/WRK[7189]: segfault at 0 ip 0000555c79c3f2b9 sp 00007f3bde1502b0 error 4 in netxmsd[555c79bf5000+93000]
Title: Re: netxmsd seg-fault
Post by: Tatjana Dubrovica on September 25, 2018, 05:42:17 PM
There are two options. You can set ulimit in console and run netxmsd by hands on this console or edit the netxmsd system file (add LimitCORE=infinity line). More information can be found there: https://unix.stackexchange.com/questions/345595/how-to-set-ulimits-on-service-with-systemd
Title: Re: netxmsd seg-fault
Post by: rgkordia on September 27, 2018, 02:34:17 PM
Thanks Tatjana. 

Actually, since I ran netxmsd direct from the shell (without the -d flag) rather that from it's init script, it hasn't crashed since.

I'll implement what you suggest and try again using service.

Rich