NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: Upgrade 2.2.10 -->2.2.12 Segmentation Fault  (Read 959 times)

Meandmybrain

  • Newbie
  • *
  • Posts: 7
    • View Profile
Upgrade 2.2.10 -->2.2.12 Segmentation Fault
« 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

« Last Edit: February 04, 2019, 06:04:19 pm by Meandmybrain »
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6664
    • View Profile
Re: Upgrade 2.2.10 -->2.2.12 Segmentation Fault
« Reply #1 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
Logged

Meandmybrain

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Upgrade 2.2.10 -->2.2.12 Segmentation Fault
« Reply #2 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
« Last Edit: February 27, 2019, 12:10:51 pm by Meandmybrain »
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6664
    • View Profile
Re: Upgrade 2.2.10 -->2.2.12 Segmentation Fault
« Reply #3 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
Logged

Meandmybrain

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Upgrade 2.2.10 -->2.2.12 Segmentation Fault
« Reply #4 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
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6664
    • View Profile
Re: Upgrade 2.2.10 -->2.2.12 Segmentation Fault
« Reply #5 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
Logged