Segmentation fault at starting nxagentd

Started by r00t, May 21, 2017, 03:33:18 PM

Previous topic - Next topic

r00t

Hi all,
after running agent (/opt/netxms/bin/nxagentd) i got "Program received signal SIGSEGV, Segmentation fault."

This is full error msg (D9):
Quote
:02:34.998] [INFO ] Additional configs was loaded from /etc/nxagentd.conf.d
:02:34.998] [INFO ] Debug level set to 9
:02:34.998] [DEBUG] Data directory: /opt/netxms/var/lib/netxms
:02:34.999] [DEBUG] Subagent API initialized
:02:35.000] [DEBUG] Validating ciphers
:02:35.000] [DEBUG]    AES-256 enabled
:02:35.000] [DEBUG]    Blowfish-256 enabled
:02:35.000] [DEBUG]    IDEA enabled
:02:35.000] [DEBUG]    3DES enabled
:02:35.000] [DEBUG]    AES-128 enabled
:02:35.000] [DEBUG]    Blowfish-128 enabled
:02:35.000] [DEBUG] Crypto library initialized
:02:35.004] [DEBUG] SQLite version 3.8.2
:02:35.004] [INFO ] DB Library: Database driver "sqlite.ddr" loaded and initialized successfully
:02:35.004] [DEBUG] DBConnect: server=(null) db=/opt/netxms/var/lib/netxms/nxagentd.db login=(null) schema=(null)
:02:35.005] [DEBUG] New DB connection opened: handle=0x6b5170
:02:35.006] [DEBUG] Successful sync query: "SELECT value FROM metadata WHERE attribute='SchemaVersion'" [1 ms]
:02:35.010] [DEBUG] Successful sync query: "VACUUM" [4 ms]
:02:35.010] [DEBUG] Local database opened successfully
:02:35.010] [DEBUG] Maximum number of sessions set to 1024
Segmentation fault (core dumped)

also this is gdb stack trace:

Quote]
#0  0x00002aaaad90fa19 in CpuUsageCollector () at cpu.cpp:145
#1  0x00002aaaad90ff53 in StartCpuUsageCollector () at cpu.cpp:227
#2  0x00002aaaad912629 in SubAgentInit (config=0x2aaaadd53010) at linux.cpp:101
#3  0x000000000041d194 in InitSubAgent (hModule=0x6ec790, pszModuleName=0x7fffffff11b0 L"linux.nsm", SubAgentRegister=<optimized out>, pszEntryPoint=<optimized out>)
    at subagent.cpp:61
#4  0x000000000041d54b in LoadSubAgent (szModuleName=0x7fffffff11b0 L"linux.nsm") at subagent.cpp:219
#5  0x0000000000416061 in LoadPlatformSubagent () at nxagentd.cpp:645
#6  Initialize () at nxagentd.cpp:812
#7  0x0000000000416ca8 in main (argc=<optimized out>, argv=0x7fffffffe5d8) at nxagentd.cpp:1742

r00t

Version info:
NetXMS Core Agent Version 2.0.8 Build 8078 (2.0.8-RELEASE) (UNICODE)

VSS

Hello,
It will be not bad if You will provide some details about your environment (OS etc.).

r00t

Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-32-generic x86_64)
which env you want? all env variable?



also i'm suspicious of hardware spec, bcoz this configuration is working fine on my other servers and i have problem only in this server!
This server has 192 cpu core!
if you look at stack trace log i have error on CpuUsageCollector ()!


Ēriks Jenkēvics

Looks like the linux subagent can only monitor a maximum of 64 cores. I have added it as a bug in the bugtracker https://track.radensolutions.com/issue/NX-1257

Regards,
Eriks