question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest waagent coredumps python interpreter when started at boot on FreeBSD

See original GitHub issue

'I am running the latest waagent on the 'develop branch. Operating system is FreeBSD 12.1 and I am using python3.6 which is the current default python in FreeBSD. Have removed all traces of older python 2.7.

When I run this using ‘service waagent start’ logged in as root then it runs fine.

If, however, I reboot the machine, and waagent is started on boot, then I find this repeated in dmesg:

2019/10/29 16:31:23.617805 INFO Daemon Agent WALinuxAgent-2.2.44 launched with command 'python3 -u /usr/local/sbin/waagent -run-exthandlers' is successfully running
2019/10/29 16:31:23.628337 INFO Daemon Installed Agent WALinuxAgent-2.2.44 is the most current agent
pid 4766 (python3.6), jid 0, uid 0: exited on signal 6 (core dumped)
2019/10/29 16:31:24.933556 INFO Daemon Agent WALinuxAgent-2.2.44 launched with command 'python3 -u /usr/local/sbin/waagent -run-exthandlers' is successfully running
2019/10/29 16:31:24.939914 INFO Daemon Installed Agent WALinuxAgent-2.2.44 is the most current agent
pid 4767 (python3.6), jid 0, uid 0: exited on signal 6 (core dumped)
2019/10/29 16:31:26.246526 INFO Daemon Agent WALinuxAgent-2.2.44 launched with command 'python3 -u /usr/local/sbin/waagent -run-exthandlers' is successfully running
2019/10/29 16:31:26.257418 INFO Daemon Installed Agent WALinuxAgent-2.2.44 is the most current agent
pid 4768 (python3.6), jid 0, uid 0: exited on signal 6 (core dumped)

It keeps trying to start it and then coredumping. If I run gdb against the coredump I see this:

Core was generated by `python3 -u /usr/local/sbin/waagent -run-exthandlers'.
Program terminated with signal SIGABRT, Aborted.
#0  thr_kill () at thr_kill.S:3
3	RSYSCALL(thr_kill)
(gdb) bt
#0  thr_kill () at thr_kill.S:3
#1  0x0000000800768b94 in __raise (s=6) at /usr/src/lib/libc/gen/raise.c:52
#2  0x00000008006dd229 in abort () at /usr/src/lib/libc/stdlib/abort.c:67
#3  0x000000080045e535 in Py_FatalError () from /usr/local/lib/libpython3.6m.so.1.0
#4  0x000000080045e2eb in _Py_InitializeEx_Private () from /usr/local/lib/libpython3.6m.so.1.0
#5  0x000000080047c914 in Py_Main () from /usr/local/lib/libpython3.6m.so.1.0
#6  0x000000000020144b in main ()
(gdb) 

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
minusbatcommented, Oct 30, 2019

Its midnight ere, so am going to have to stop trying stuff, but I did try moving the startup to much later in the process, but with no effect. I always create new machines in Azure byu clonign old ones, so I don’t need any of the provisioning features. If it is possible to simply run without waagent then that would be a solution for me - but I would quite like to have this fixed, as would you I suspect!

I’ll do some more experiments tomorrow, and also maybe look into what the difference is between starring a script at boot compared to from a shell. Thanks.

0reactions
minusbatcommented, Jan 20, 2020

I can verify that its fixed for me, and works with the latest default python. Thank you - I never would have found this on my own given the nature of the bug!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Re: python dameon coredumps when started from boot, but not by ...
Hmm very odd.. > Does the tool depend on something else running? No, not at all. Earlier versions of the tool dont do...
Read more >
Chapter 14. The FreeBSD Booting Process
The process of starting a computer and loading the operating system is referred to as "the bootstrap process", or "booting".
Read more >
Running FreeBSD in Azure | Azure Blog and Updates
Create a new virtual machine in Hyper-V and attach the extracted VHD as an IDE disk: ... Next, start the FreeBSD system and...
Read more >
6c5c63148b7062488b6d1a76ca...
Bump version to 1.4.0.20-1 - Resolves: Bug 1631461 - Python installer ... for SYNOPSIS - Start using github.com/seccomp/containers-golang - umount: add all ...
Read more >
AlmaLinux Bug Tracker
1. Start from a fresh CentOS 7.9.2009 release 2. (install python 3.6 package from EPEL): yum update; yum install epel-release; install python36-six
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found