NetXMS Support Forum

English Support => General Support => Topic started by: Meandmybrain on February 04, 2019, 05:47:18 PM

Title: Upgrade 2.2.10 -->2.2.12 Segmentation Fault
Post by: Meandmybrain on February 04, 2019, 05:47:18 PM
Hi,

I need your help :-\
Today I updated netxms (upgrading netxms-packages) and now netxmsd gets killed straight after starting.
With "netxmsd -D 4" I get following text at the end:

"...
2019.02.04 15:03:42.621 *D* 0 startup scripts processed
2019.02.04 15:03:42.621 *D* Server initialization completed in 2053 milliseconds
2019.02.04 15:03:42.622 *I* NetXMS Server started

NetXMS Server V2.2.12 Build 9516 (UNICODE) Ready
Enter "help" for command list or "down" for server shutdown
System Console

netxmsd: 2019.02.04 15:03:43.620 *D* [action             ] Executing scheduled action [1] for event (null) on node [2453]
2019.02.04 15:03:43.620 *D* [action             ] Executing action 1 (Send E-Mail on node down) of type SEND EMAIL
Segmentation fault"

It seems to me that the server crashes when it is trying to send a Email.(?)
I checked server configs and everything is like before.
I use Ubuntu 18.04 LTS and postgresql on x64.
DB-upgrade was fine and without errors.

Has anybody some helpful suggestions for me?
THX

Title: Re: Upgrade 2.2.10 -->2.2.12 Segmentation Fault
Post by: Victor Kirhenshtein on February 07, 2019, 11:16:44 AM
Hi!

Do you have a core dump? If not, could you run netxmsd under gdb and when it crashes, issue command bt and provide it's output?

Best regards,
Victor
Title: Re: Upgrade 2.2.10 -->2.2.12 Segmentation Fault
Post by: Meandmybrain on February 27, 2019, 11:02:26 AM
Hi,

thanks for your answer. Unluckily I'm a noob at linux. I will figure out what "under gdb" means and try to send the dump.

For now, the server is working after deleting the data in table "scheduled task".
It seems that SEGV still happens when netxmsd is restarting while an alert-email is scheduled.
Is there any known solution for this behavior?

Best, Sebastian
Title: Re: Upgrade 2.2.10 -->2.2.12 Segmentation Fault
Post by: Victor Kirhenshtein on February 27, 2019, 10:20:39 PM
Hi,

to get the dump, do the following:

1. Stop netxmsd process
2. Run command

gdb netxmsd

3. You'll get "gdb>" prompt - run command

run -D4

4. Wait for the crash. When process crashed, you'll get "gdb>" prompt again.

5. Run command

bt

and send me it's output.

If you have installed server from deb packages, make sure that package netxms-server-dbg is installed.

Best regards,
Victor
Title: Re: Upgrade 2.2.10 -->2.2.12 Segmentation Fault
Post by: Meandmybrain on May 20, 2019, 11:18:18 AM
Hi Victor,

I answered weeks ago, now my post seems to be gone :o

But everything is fine now. I had to delete some entries from database table "scheduled tasks". Seemed that there was something false with them.

Best Regards
Sebastian
Title: Re: Upgrade 2.2.10 -->2.2.12 Segmentation Fault
Post by: Victor Kirhenshtein on May 20, 2019, 09:42:15 PM
Hi,

yes, this is known issue fixed in 2.2.13 (crash because of improperly loaded scheduled task).

Best regards,
Victor