<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 21, 2014 at 10:38 AM, Michael Biebl <span dir="ltr"><<a href="mailto:biebl@debian.org" target="_blank">biebl@debian.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am 17.08.2014 06:11, schrieb Chris Tillman:<br>
> Package: systemd<br>
> Version: 208-6<br>
> Severity: normal<br>
><br>
> Dear Maintainer,<br>
><br>
> * What led up to the situation? journalctl --list-boots<br>
> * What was the outcome of this action?<br>
><br>
> Assertion 'size > 0' failed at ../src/journal/mmap-cache.c:543, function mmap_cache_get(). Aborting.<br>
><br>
> * What outcome did you expect instead? listing of boots as documented<br>
><br></blockquote><div> </div><div>Hi Michael,</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>- Is this problem reproducible (after a reboot</blockquote><div>Yes </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
- Did you run the command as root or regular user?<br></blockquote><div>As root. I haven't been able to boot into the graphic environment as yet, I've been booting single-user. If that's important, I'll disable X so I can get on another console. </div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">- Do you have a /var/log/journal directory? If so, what does it contain<br>
(ls -Rla /var/log/journal/)?<br></blockquote><div>I did create one after reading another bug about multiple session journalctl. In that bug, you thought all that should be necessary was to create the dir. That did work, and here is ls -Rla. The journal file is being appended on each boot, so the backup files are the same size as the main file.</div>
<div>/var/log/journal:<br>total 12<br>drwxr-sr-x 3 root systemd-journal 4096 Aug 17 16:39 .<br>drwxr-xr-x 11 root root 4096 Aug 21 17:00 ..<br>drwxr-sr-x 2 root systemd-journal 4096 Aug 21 16:59 42bc3423441b4065acbfbf085d5741df<br>
<br>/var/log/journal/42bc3423441b4065acbfbf085d5741df:<br>total 24596<br>drwxr-sr-x 2 root systemd-journal 4096 Aug 21 16:59 .<br>drwxr-sr-x 3 root systemd-journal 4096 Aug 17 16:39 ..<br>-rwxr-xr-x 1 root systemd-journal 8388608 Aug 18 19:36 system@000500e26f9ab124-86721527ee2de970.journal~<br>
-rwxr-xr-x 1 root systemd-journal 8388608 Aug 21 16:59 system@0005011c967a9cb6-f1afda7b33407034.journal~<br>-rw-r----- 1 root systemd-journal 8388608 Aug 21 17:04 system.journal<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
- If you move the journal directory away and create a new one, is the<br>
problem gone?<br></blockquote><div>After moving it out of the way, it returns No journal files found. Same after re-creating /var/log/journal. After moving the directory back, the assertion returns.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
- Can you install systemd-dbg and create a backtrace using gdb, please.<br></blockquote></div><div><br></div><div>Output:<br> Script started on Thu 21 Aug 2014 17:29:51 NZST<br>root@debian:~# gdb --args journalctl --list-boots<br>
GNU gdb (GDB) 7.6.2 (Debian 7.6.2-1.1+b1)<br>Copyright (C) 2013 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>><br>
This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law. Type "show copying"<br>and "show warranty" for details.<br>This GDB was configured as "powerpc-linux-gnu".<br>
For bug reporting instructions, please see:<br><<a href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>>...<br>Reading symbols from /bin/journalctl...Reading symbols from /usr/lib/debug/.build-id/5a/b4971c9db1d4f7674ee6c7b37a6e160f89796c.debug...done.<br>
done.<br>(gdb) run<br>Starting program: /bin/journalctl --list-boots<br>Can't read symbols from system-supplied DSO at 0x100000: File truncated<br>warning: Could not load shared library symbols for linux-vdso32.so.1.<br>
Do you need "set solib-search-path" or "set sysroot"?<br>[Thread debugging using libthread_db enabled]<br>Using host libthread_db library "/lib/powerpc-linux-gnu/libthread_db.so.1".<br>Assertion 'size > 0' failed at ../src/journal/mmap-cache.c:543, function mmap_cache_get(). Aborting.<br>
<br>Program received signal SIGABRT, Aborted.<br>0x0fd5a168 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56<br>56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.<br>(gdb) bt<br>
#0 0x0fd5a168 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56<br>#1 0x0fd5bd50 in __GI_abort () at abort.c:89<br>#2 0x1000f1bc in log_assert (text=text@entry=0x1003965c "size > 0", file=file@entry=0x100394a0 "../src/journal/mmap-cache.c", <br>
line=line@entry=543, func=func@entry=0x10039450 <__PRETTY_FUNCTION__.8083> "mmap_cache_get", <br> format=format@entry=0x10035b8c "Assertion '%s' failed at %s:%u, function %s(). Aborting.") at ../src/shared/log.c:702<br>
#3 0x1000f798 in log_assert_failed (text=text@entry=0x1003965c "size > 0", <br> file=file@entry=0x100394a0 "../src/journal/mmap-cache.c", line=line@entry=543, <br> func=func@entry=0x10039450 <__PRETTY_FUNCTION__.8083> "mmap_cache_get") at ../src/shared/log.c:707<br>
#4 0x10026d54 in mmap_cache_get (m=0x1004f918, fd=9, prot=<optimized out>, context=context@entry=1, <br> keep_always=keep_always@entry=true, offset=<optimized out>, size=0, st=0x10060a90, ret=ret@entry=0x0)<br>
at ../src/journal/mmap-cache.c:543<br>#5 0x10018c74 in journal_file_object_keep (offset=<optimized out>, o=<optimized out>, f=<optimized out>)<br> at ../src/journal/journal-file.h:215<br>#6 sd_journal_enumerate_unique (j=j@entry=0x1004e850, data=data@entry=0xbffff96c, l=l@entry=0xbffff970)<br>
at ../src/journal/sd-journal.c:2593<br>#7 0x100039c8 in list_boots (j=0x1004e850) at ../src/journal/journalctl.c:781<br>#8 main (argc=<optimized out>, argv=<optimized out>) at ../src/journal/journalctl.c:1520<br>
(gdb) quit<br>A debugging session is active.<br><br> Inferior 1 [process 1339] will be killed.<br><br>Quit anyway? (y or n) y<br>root@debian:~# less typescript <br>root@debian:~# gdb --args journalctl --list-boots ^C<br>
root@debian:~# exit<br>Script done on Thu 21 Aug 2014 17:31:15 NZST<br><br></div><div><br></div><div>BTW, this is the system where I was booting the wrong kernel; that has been corrected.</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="color:rgb(136,136,136)">--</span><br></blockquote>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span><font color="#888888">
Why is it that all of the instruments seeking intelligent life in the<br>
universe are pointed away from Earth?<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Chris Tillman<br>Developer
</div></div>