Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-03-14 | journal: Don't hold pointers to journal while remapping | Marti Raudsepp | |
Hi! I was trying out the journal and the journalctl utility sometimes crashed on me. After some debugging, I tracked it down to the fact that next_with_matches() holds the "c" object pointer through the journal_file_next_entry_for_data() call -- which apparently may re-map the journal file, invalidating the pointer. The attached patch fixes this crash for me, but being unfamiliar with the code, I don't know if I'm doing the right thing. This patch is also available from my github repository: git://github.com/intgr/systemd.git https://github.com/intgr/systemd Regards, Marti For the record, here's the original stack trace at the time of remapping: ret=0x7fff1d5cdec0) at src/journal/journal-file.c:330 ret=0x7fff1d5cdf28) at src/journal/journal-file.c:414 ret=0x7fff1d5ce0a0, offset=0x7fff1d5ce098) at src/journal/journal-file.c:1101 i=5705, ret=0x7fff1d5ce0a0, offset=0x7fff1d5ce098) at src/journal/journal-file.c:1147 p=6413608, data_offset=66600, direction=DIRECTION_DOWN, ret=0x7fff1d5ce0a0, offset=0x7fff1d5ce098) at src/journal/journal-file.c:1626 direction=DIRECTION_DOWN, ret=0x7fff1d5ce120, offset=0x7fff1d5ce128) at src/journal/sd-journal.c:533 direction=DIRECTION_DOWN, ret=0x7fff1d5ce170, offset=0x7fff1d5ce178) at src/journal/sd-journal.c:595 src/journal/sd-journal.c:651 From 9266fc6a58065a7c5dab67430fd78925e519dce9 Mon Sep 17 00:00:00 2001 From: Marti Raudsepp <marti@juffo.org> Date: Fri, 9 Mar 2012 16:23:00 +0200 Subject: [PATCH] journal: Don't hold pointers to journal while remapping This would cause a segfault otherwise. | |||
2012-01-21 | journal: systemd v38 fails to build on big-endians | Dan Horák | |
Hi, during the builds for Fedora/s390x I've found that systemd v38 fails to build on big-endian platforms. ... make[2]: Entering directory `/root/systemd' CC src/journal/libsystemd_journal_la-sd-journal.lo src/journal/sd-journal.c: In function 'init_location': src/journal/sd-journal.c:69:22: error: incompatible types when initializing type 'long unsigned int' using type 'sd_id128_t' src/journal/sd-journal.c:69:20: error: incompatible types when assigning to type 'sd_id128_t' from type 'long unsigned int' make[2]: *** [src/journal/libsystemd_journal_la-sd-journal.lo] Error 1 I see the problem in using le64toh() on the 16 bytes boot_id structure in init_location() Please see http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=544375 for a full build log and attachment for a proposed fix. With regards Dan | |||
2012-01-11 | sd-journal: implement a number of non-implemented calls from the API for now | Lennart Poettering | |
2012-01-04 | journal: beef up journal output of systemctl and journalctl | Lennart Poettering | |
2012-01-04 | journalctl: fix counting of -n parameter | Lennart Poettering | |
2012-01-04 | journal: fix reverse traversing of entries | Lennart Poettering | |
2012-01-04 | journal: add missing error check | Lennart Poettering | |
2012-01-04 | journal: don't mind too much if we can't find a monotonic timestamp | Lennart Poettering | |
2012-01-04 | journal: add missing error check | Lennart Poettering | |
2012-01-03 | journal: add _public_ to all sd-journal calls, and add parameter checks | Lennart Poettering | |
2011-12-29 | journald: flush /run to /var as soon as it becomes available | Lennart Poettering | |
2011-12-27 | journal: fix typo | Lennart Poettering | |
2011-12-22 | journald: enforce some syntax restrictions on field names sent from the ↵ | Lennart Poettering | |
client side | |||
2011-12-21 | journalctl: add json, export, short and verbose output modes | Lennart Poettering | |
2011-12-21 | journal: add inline compression support with XZ | Lennart Poettering | |
2011-12-20 | journal: fix matches | Lennart Poettering | |
2011-12-19 | journal: implement inotify-based live logging logic | Lennart Poettering | |
2011-12-17 | journal: enforce limits on open journal files | Lennart Poettering | |
2011-11-08 | journal: implement multiple field matches | Lennart Poettering | |
2011-10-15 | journal: automaticall reset location when the set of matches changes | Lennart Poettering | |
2011-10-15 | journal: implement seek to head/tail | Lennart Poettering | |
2011-10-15 | journal: unify code for up and for down traversal | Lennart Poettering | |
2011-10-15 | journal: properly implement matching with multiple matches | Lennart Poettering | |
2011-10-14 | journal: if two entries match with everything but seqnums, they are still ↵ | Lennart Poettering | |
identical | |||
2011-10-14 | journal: move field index from file into journal object | Lennart Poettering | |
2011-10-14 | journal: when the same entry is in two files, skip over them in sync | Lennart Poettering | |
2011-10-14 | journal: synchronize seqnum across files | Lennart Poettering | |
2011-10-14 | journal: fix field retrieval by name | Lennart Poettering | |
2011-10-14 | journal: implement parallel file traversal | Lennart Poettering | |
2011-10-13 | journal: implementation rotation | Lennart Poettering | |
2011-10-08 | journal: implement parallel traversal in client | Lennart Poettering | |
2011-10-07 | journal: split user logs into their own journal files | Lennart Poettering | |
2011-10-07 | journal: replace linked list by hashmap when merging files | Lennart Poettering | |
2011-10-07 | journal: store XOR combination of entry data object hashes to identify hash ↵ | Lennart Poettering | |
lines | |||
2011-10-07 | journal: add preliminary incomplete implementation | Lennart Poettering | |