[Bug 981314] Re: ply-buffer.c:184: ply_buffer_append_bytes: Assertion `buffer != ((void *)0)' failed.

Bob Vincent bobvin at pillars.net
Sat Apr 14 13:20:02 UTC 2012


Actually, I added some more assertions and settled on the following
workaround for now:

--- plymouth-0.8.2/src/main.c   2012-04-14 09:15:23.000000000 -0400
+++ plymouth-0.8.2-patched/src/main.c   2012-04-13 23:38:39.337606192 -0400
@@ -148,6 +148,10 @@
                    const char *output,
                    size_t      size)
 {
+  if (state->boot_buffer == NULL) {
+    state->boot_buffer = ply_buffer_new();
+    ply_trace ("on_session_output called with null state->boot_buffer");
+  }
   ply_buffer_append_bytes (state->boot_buffer, output, size);
   if (state->boot_splash != NULL)
     ply_boot_splash_update_output (state->boot_splash,


** Patch added: "Workaround for on_session_output() being called with null state->boot_buffer."
   https://bugs.launchpad.net/ubuntu/+source/plymouth/+bug/981314/+attachment/3065196/+files/plymouth-workaround-981314.patch

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to plymouth in Ubuntu.
https://bugs.launchpad.net/bugs/981314

Title:
  ply-buffer.c:184: ply_buffer_append_bytes: Assertion `buffer != ((void
  *)0)' failed.

Status in “plymouth” package in Ubuntu:
  Incomplete

Bug description:
  I see the following assertion failure on every boot, with a custom-
  compiled kernel version 3.4.0-rc2 and no initrd:

  ply-buffer.c:184: ply_buffer_append_bytes: Assertion `buffer != ((void
  *)0)' failed.

  ~# lsb_release -rd
  Description:    Ubuntu precise (development branch)
  Release:        12.04
  ~# apt-cache policy plymouth
  plymouth:
    Installed: 0.8.2-2ubuntu29
    Candidate: 0.8.2-2ubuntu29
    Version table:
   *** 0.8.2-2ubuntu29 0
          500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status
       0.8.2-2ubuntu28 0
          500 http://us.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/plymouth/+bug/981314/+subscriptions




More information about the foundations-bugs mailing list