Bug 768953

Summary: systemd-journal (sometimes) segfaults
Product: [openSUSE] openSUSE 12.2 Reporter: Christian Boltz <suse-beta>
Component: BasesystemAssignee: Frederic Crozat <fcrozat>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 12.2   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /var/log/messages (bzip2-compressed)

Description Christian Boltz 2012-06-26 22:20:49 UTC
From /var/log/messages (current Factory):

Jun 27 00:04:42 geeko kernel: [22788.014062] systemd-journal[12797]: segfault at 8 ip 0000000000406ff2 sp 00007fff21b5d530 error 4 in systemd-journald[400000+20000]
Jun 27 00:04:42 geeko kernel: [22788.037460] systemd-journal[12809]: segfault at 8 ip 0000000000406ff2 sp 00007fff690ce290 error 4 in systemd-journald[400000+20000]
Jun 27 00:04:42 geeko kernel: [22788.070550] systemd-journal[12825]: segfault at 8 ip 0000000000406ff2 sp 00007fff8a4023d0 error 4 in systemd-journald[400000+20000]
Jun 27 00:04:42 geeko kernel: [22788.099782] systemd-journal[12836]: segfault at 8 ip 0000000000406ff2 sp 00007fff3ea19b30 error 4 in systemd-journald[400000+20000]
Jun 27 00:04:42 geeko kernel: [22788.135201] systemd-journal[12840]: segfault at 8 ip 0000000000406ff2 sp 00007fff76bae260 error 4 in systemd-journald[400000+20000]
Jun 27 00:04:42 geeko kernel: [22788.154530] systemd-journal[12842]: segfault at 8 ip 0000000000406ff2 sp 00007fffc27e7680 error 4 in systemd-journald[400000+20000]

I can reproduce the segfaults with
    systemctl stop postfix.service
    systemctl start postfix.service
Starting postfix results in "Job failed" and the segfaults quoted above. Postfix is not running - not too surprising after a "Job failed".

# systemctl status postfix.service 
postfix.service - Postfix Mail Transport Agent
          Loaded: loaded (/lib/systemd/system/postfix.service; enabled)
          Active: failed (Result: exit-code) since Wed, 27 Jun 2012 00:19:26 +0200; 2s ago
         Process: 13481 ExecStopPost=/etc/postfix/system/cond_slp deregister (code=exited, status=209/STDOUT)
         Process: 13479 ExecStop=/usr/sbin/postfix stop (code=exited, status=209/STDOUT)
         Process: 3527 ExecStartPost=/etc/postfix/system/cond_slp register (code=exited, status=0/SUCCESS)
         Process: 13478 ExecStartPost=/etc/postfix/system/wait_qmgr 60 (code=exited, status=209/STDOUT)
         Process: 13396 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
         Process: 13394 ExecStartPre=/etc/postfix/system/update_chroot (code=exited, status=0/SUCCESS)
         Process: 13391 ExecStartPre=/bin/echo Starting mail service (Postfix) (code=exited, status=0/SUCCESS)
        Main PID: 3524 (code=killed, signal=TERM)
          CGroup: name=systemd:/system/postfix.service


BTW: I can start postfix with the initscript:
    SYSTEMD_NO_WRAP=1 /etc/init.d/postfix start

I also had some more "fun" today with many more failed services, including X. Maybe this was related to aaa_base-12.2-4.1 which I downloaded using osc getbinaries, but I'll have to check the details before I can say more. (I needed a working system again, so I didn't do too much debugging and downgraded aaa_base to 12.2-1.1)

The segfaults quoted above happen with aaa_base-12.2-1.1 which is currently available in Factory.
Comment 1 Christian Boltz 2012-06-27 10:45:20 UTC
Created attachment 496562 [details]
/var/log/messages (bzip2-compressed)

This logfile contains two failed boots from today (tested with different kernel versions) with lots of failures. Timestamps: Jun 27 11:31 and Jun 27 11:37

I finally (Jun 27 11:48) booted with sysvinit, which works without problems (well, mostly ;-) - the exception is bug 769025)
Comment 2 Frederic Crozat 2012-06-27 10:48:35 UTC
should be fixed in home:fcrozat:branches:Base:System/systemd (bugs involving
journal rotation).
Comment 3 Christian Boltz 2012-06-28 18:39:28 UTC
You are right - with systemd from your home repo my system boots without problems again :-)