Время от времени по непонятной причине падает с сигфолтом. В логи разумеется нечего написать не успевает.
[1025646.818491] netxmsd[9537]: segfault at ffffffffffffffff ip 00007f796ffab190 sp 00007f7947adea28 error 4 in libnxcore.so.1.0.0[7f796ff14000+13a000]
[1214835.278343] netxmsd[20214]: segfault at 7200000075 ip 00007f0aab0e0f64 sp 00007f0a37cfbb40 error 4 in libpthread-2.11.3.so[7f0aab0d8000+17000]
Куда копать. ?
Если есть core файл, то запустите пожалуйста "gdb /path/to/netxmsd core" и покажите результат команды "thread apply all backtrace".
Если core не создается, перед запуском сервера выполните "ulimit -c unlimited" (можно так же можно прописать в /etc/security/limits.conf)
Как вывалиться опять, так сразу выложу ) Спасибо
hi, sorry for renew old topic but i think its the same issue, google translator of russain is not helping at all ;/
after some time netxms is closing with error shown below:
QuoteJun 18 02:03:49 netxms kernel: [ 9312.067361] netxmsd[1726]: segfault at 8 ip 00007f27e96271b0 sp 00007f27b8dcc398 error 4 in libnxsnmp.so.1.0.0[7f27e961b000+10000]
this happens several times a day
os: ubuntu server 12.04 lts 64bit
netxms 1.2.7
Quote from: m37r0 on June 18, 2013, 10:46:28 PM
after some time netxms is closing with error shown below:
Did it produce core file on crash? If file is not created, do following steps:
1) stop netxmsd
2) in shell execute: "ulimit -c unlimited"
3) in the same shell, run "/path/to/netxmsd -d" to start server in background (you can also replace "-d" with "-D3" to keep it in foreground with some debug enabled.
When it's crashed, file "core" should be created in current working directory.
Then run "gbd /path/to/netxmsd /path/to/core", and type "thread apply all backtrace".
This will produce quite large amount of output regarding state of the application and crash point, please send it to us.
i send it via https://www.radensolutions.com/chiliproject/
support #296
i hope it,s ok
many thanks for Your work
I've attached patch to the ticket. To apply it:
cd /path/to/sources/netxms-1.2.7
patch -p1 < fdb.diff
i think i do it wrong,,,
this is the output :
Quotepatching file src/server/core/fdb.cpp
Hunk #1 FAILED at 183.
1 out of 1 hunk FAILED -- saving rejects to file src/server/core/fdb.cpp.rej
Try attached version of the file (it's already patched).
I understand that I need to compile all of that again, but look:
Quotefdb.cpp:65:1: error: 'UINT32' does not name a type
fdb.cpp:109:1: error: 'UINT32' does not name a type
fdb.cpp:122:44: error: 'bool ForwardingDatabase::isSingleMacOnPort' is not a static member of 'class ForwardingDatabase'
fdb.cpp:122:44: error: 'UINT32' was not declared in this scope
fdb.cpp:122:65: error: expected primary-expression before '*' token
fdb.cpp:122:66: error: 'macAddr' was not declared in this scope
fdb.cpp:122:73: error: expression list treated as compound expression in initializer [-fpermissive]
fdb.cpp:123:1: error: expected ',' or ';' before '{' token
My bad, file was from upcoming 1.2.8. Correct version (1.2.7 based) attached.
I swapped the file and compiled source and still segfault ;/
Could you please provide backtrace for updated version? ("backtrace" should be enough, with "thread apply all ...")
sorry for late, this is the file..
hello, something you know in my case?
>> good news, netxms works 4th day in a row :D