Bug 82639

Summary: systemd-bootchart occasionally produces a blank svg when run under QEMU
Product: systemd Reporter: Max Eliaser (Using Intel Email) <max.eliaser>
Component: generalAssignee: systemd-bugs
Status: RESOLVED MOVED QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: other   
Whiteboard:
i915 platform: i915 features:
Attachments: proposed patch

Description Max Eliaser (Using Intel Email) 2014-08-15 00:28:53 UTC
This has been reproduced with both systemd 213 and systemd 215.

Steps to reproduce: boot with /usr/lib/systemd-bootchart as PID 1 under QEMU. Wait an extra 20 seconds after the boot completes.

Expected result: a .svg file with the boot chart will appear in /run/log, and a notice will appear on stderr indicating that the boot chart has been written.

Actual result: the notice appears on stderr, and the .svg file is created, but the svg file is blank (0 bytes.) This is not guaranteed to happen all the time, sometimes it works correctly.

The operating system is Poky, as generated by the Yocto Project. (Yocto is something similar to buildroot, Poky is the name we use for the OS Yocto generates.) In this case, Yocto is generating Linux images for a 32-bit x86 target and then running them under QEMU. I believe KVM acceleration is not enabled. I mention this because it's not your typical Linux distro. I believe there are a few systemd developers within Intel's OTC who would be familiar with Yocto and Poky though. 

Auke Kok (the original author of systemd-bootchart) was kind enough to spend about an hour squinting at this bug today, and neither of us could figure it out. (BTW Auke, commenting out do_journal_append from bootchart.c did *not* fix it.)
Comment 1 Alexander Sverdlin 2015-03-29 01:47:05 UTC
Created attachment 114691 [details] [review]
proposed patch
Comment 2 Alexander Sverdlin 2015-03-29 01:49:35 UTC
Comment on attachment 114691 [details] [review]
proposed patch

Could you please try the following patch?
https://www.mail-archive.com/systemd-devel@lists.freedesktop.org/msg29562.html
Comment 3 Max Eliaser 2016-01-27 03:52:21 UTC
I just came across this bug report again.

Unfortunately, I no longer have access to the workstation where I was reproducing this bug. That was two jobs ago.
Comment 4 Lennart Poettering 2016-06-10 12:55:37 UTC
boochart has been split out off the systemd package, and has its own bug tracker now. If this issue is still relevant, please create a new issue on the bootchart github page. Thanks.

https://github.com/systemd/systemd-bootchart

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.