NetXMS Support Forum

Russian Support => Общие вопросы => Topic started by: Zar1n on February 04, 2013, 07:40:09 AM

Title: sigfault-ы при работе
Post by: Zar1n on February 04, 2013, 07:40:09 AM
Время от времени по непонятной причине падает с сигфолтом. В логи разумеется нечего написать не успевает.

[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]


Куда копать. ?
Title: Re: sigfault-ы при работе
Post by: Alex Kirhenshtein on February 04, 2013, 02:10:29 PM
Если есть core файл, то запустите пожалуйста "gdb /path/to/netxmsd core" и покажите результат команды "thread apply all backtrace".
Если core не создается, перед запуском сервера выполните "ulimit -c unlimited" (можно так же можно прописать в /etc/security/limits.conf)
Title: Re: sigfault-ы при работе
Post by: Zar1n on February 05, 2013, 11:54:16 AM
Как вывалиться опять, так сразу выложу ) Спасибо
Title: Re: sigfault-ы при работе
Post by: m37r0 on June 18, 2013, 10:46:28 PM
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
Title: Re: sigfault-ы при работе
Post by: Alex Kirhenshtein on June 18, 2013, 11:04:44 PM
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.
Title: Re: sigfault-ы при работе
Post by: m37r0 on June 20, 2013, 10:15:25 AM
i send it via https://www.radensolutions.com/chiliproject/
support #296
i hope it,s ok
many thanks for Your work
Title: Re: sigfault-ы при работе
Post by: Alex Kirhenshtein on June 20, 2013, 02:19:32 PM
I've attached patch to the ticket. To apply it:
cd /path/to/sources/netxms-1.2.7
patch -p1 < fdb.diff
Title: Re: sigfault-ы при работе
Post by: m37r0 on June 20, 2013, 09:26:58 PM
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
Title: Re: sigfault-ы при работе
Post by: Alex Kirhenshtein on June 20, 2013, 10:10:25 PM
Try attached version of the file (it's already patched).
Title: Re: sigfault-ы при работе
Post by: m37r0 on June 20, 2013, 11:08:06 PM
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
Title: Re: sigfault-ы при работе
Post by: Alex Kirhenshtein on June 21, 2013, 08:43:00 AM
My bad, file was from upcoming 1.2.8. Correct version (1.2.7 based) attached.
Title: Re: sigfault-ы при работе
Post by: m37r0 on June 24, 2013, 12:16:49 PM
I swapped the file and compiled source and still segfault ;/
Title: Re: sigfault-ы при работе
Post by: Alex Kirhenshtein on June 24, 2013, 06:22:03 PM
Could you please provide backtrace for updated version? ("backtrace" should be enough, with "thread apply all ...")
Title: Re: sigfault-ы при работе
Post by: m37r0 on June 30, 2013, 10:33:59 AM
sorry for late, this is the file..
Title: Re: sigfault-ы при работе
Post by: m37r0 on July 02, 2013, 11:01:03 AM
hello, something you know in my case?



>> good news, netxms works 4th day in a row :D