[Webkit-unassigned] [Bug 209223] [Flatpak SDK] Release logs not sent to journald when running within the SDK runtime

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 18 08:43:47 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=209223

--- Comment #1 from Philippe Normand <pnormand at igalia.com> ---
$ cat ~/journal-test.c 

#include <systemd/sd-journal.h>

int main(int argc, char *argv[]) {
  sd_journal_print(LOG_NOTICE, "Hello World");
  return 0;
}

$ gcc -o /tmp/test `pkg-config --cflags --libs libsystemd` /app/phil/journal-test.c

$ strace /tmp/test
[...]
sendmsg(3, {msg_name={sa_family=AF_UNIX, sun_path="/run/systemd/journal/socket"}, msg_namelen=30, msg_iov=[{iov_base="MESSAGE=Hello World", iov_len=19}, {iov_base="\n", iov_len=1}, {iov_base="PRIORITY=5", iov_len=10}, {iov_base="\n", iov_len=1}, {iov_base="CODE_FILE=/app/phil/journal-test"..., iov_len=34}, {iov_base="\n", iov_len=1}, {iov_base="CODE_LINE=5", iov_len=11}, {iov_base="\n", iov_len=1}, {iov_base="CODE_FUNC=main", iov_len=14}, {iov_base="\n", iov_len=1}, {iov_base="SYSLOG_IDENTIFIER=", iov_len=18}, {iov_base="test", iov_len=4}, {iov_base="\n", iov_len=1}], msg_iovlen=13, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = -1 ENOENT (No such file or directory)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200318/d3d61549/attachment-0001.htm>


More information about the webkit-unassigned mailing list