segfault
-
here is debug info
[07-Oct-2013 09:21:07.142] [DEBUG] DCTable::columnIdFromName(): column name VM name added to cache, ID=2
[07-Oct-2013 09:21:07.142] [DEBUG] {0x804ded0} bind at pos 1: "1482969814819930112"
[07-Oct-2013 09:21:07.142] [DEBUG] {0x804ded0} bind at pos 2: "2"
Segmentation faultany answers ?
-
-
Hi!
Was this SNMP or agent table? Looks very similar to https://www.netxms.org/forum/configuration/netxms-server-crash-1-2-9.
If you built server from sources, try to replace line 389 in file src/server/core/dctable.cpp which currently should looks like
if (_tcslen(s) < MAX_DB_STRING)with
if ((s == NULL) || (_tcslen(s) < MAX_DB_STRING))and rebuild server.
Best regards,
Victor -
hello, yes it is snmp table, but as i understand the error happend when apply snmp table with some mistakes, for now i compile server from source and apply correct table and everything work, i will testing more and when the error will happend i'll try your issue, and sorry for my bad english

-
-
Hi!
Can you provide me a stack trace from debugger?
Best regards,
Victor -
-
Are you sure you apply patch and rebuild server correctly? It crashes in same place as if it was not patched. How line 389 in src/server/core/dctable.cpp looks like now?
Best regards,
Victor -
-
-
i replace code and everything is the same here stack trace
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb70ffb70 (LWP 10813)]
0xb7a15d03 in strlen () from /lib/libc.so.6
(gdb) bt
#0Â 0xb7a15d03 in strlen () from /lib/libc.so.6
#1Â 0xb7f1dec1 in DCTable::processNewValue (this=0x81273a0, nTimeStamp=1381732962, value=0xb480c4f8) at dctable.cpp:389
#2Â 0xb7f21120 in DataCollectionTarget::processNewDCValue (this=0x8128850, dco=0x81273a0, currTime=1381732962, value=0xb480c4f8) at dctarget.cpp:366
#3Â 0xb7f0d1af in DataCollector (pArg=0x0) at datacoll.cpp:254
#4Â 0xb7c38830 in start_thread () from /lib/libpthread.so.0
#5Â 0xb7a7c15e in clone () from /lib/libc.so.6
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login

