Bug 768523

Summary: .mount unit with missing What= crashes systemd
Product: [Fedora] Fedora Reporter: Tomasz Torcz <tomek>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: johannbg, lpoetter, metherid, notting, plautrba, systemd-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-37-19.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-21 19:10:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tomasz Torcz 2011-12-16 22:00:13 UTC
Description of problem:
Core was generated by `/sbin/init'.
Program terminated with signal 6, Aborted.
#0  0x0058e424 in __kernel_vsyscall ()
(gdb) bt
#0  0x0058e424 in __kernel_vsyscall ()
#1  0x492d4b3e in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
#2  0x08051624 in crash (sig=6) at src/main.c:123
#3  <signal handler called>
#4  0x0058e424 in __kernel_vsyscall ()
#5  0x4914798f in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x491492d5 in __GI_abort () at abort.c:91
#7  0x080b541a in log_assert (file=0x8100379 "src/util.c", line=1955, func=0x810132a "path_startswith", format=0x80d424c "Assertion '%s' failed at %s:%u, function %s(). Aborting.")
    at src/log.c:502
#8  0x080bc460 in path_startswith (path=0x0, prefix=0x9562070 "/var/run") at src/util.c:1955
#9  0x0806f140 in mount_add_mount_links (m=0x9561078) at src/mount.c:199
#10 mount_load (u=0x9561078) at src/mount.c:614
#11 0x080c83ab in unit_load (u=0x9561078) at src/unit.c:827
#12 0x080565bc in manager_dispatch_load_queue (m=0x9537a60) at src/manager.c:1767
#13 0x08065b81 in service_enumerate (m=0x9537a60) at src/service.c:3175
#14 0x080566b7 in manager_enumerate (m=0x9537a60) at src/manager.c:509
#15 0x08059380 in manager_reload (m=0x9537a60) at src/manager.c:2877
#16 0x0804f128 in main (argc=1, argv=0xbf8353d4) at src/main.c:1473

Cause by enabling following unit:

#v+
[Mount]
Where=/tmp
Type=tmpfs

[Install]
WantedBy=local-fs.target
#v-


Version-Release number of selected component (if applicable):
systemd-37-3.fc16.i686

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:
systemd[1]: Reloading. 
systemd[1]: Assertion 'path' failed at src/util.c:1955, function path_startswith(). Aborting.

Expected results:


Additional info:

Comment 1 Lennart Poettering 2012-03-13 02:35:22 UTC
Fixed in git.

Comment 2 Fedora Update System 2012-03-16 02:02:11 UTC
systemd-44-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/systemd-44-1.fc17

Comment 3 Fedora Update System 2012-03-16 19:02:30 UTC
Package systemd-44-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-44-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-3918/systemd-44-1.fc17
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-03-21 19:10:26 UTC
systemd-44-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2012-04-17 08:16:14 UTC
systemd-37-19.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/systemd-37-19.fc16

Comment 6 Fedora Update System 2012-04-26 03:31:41 UTC
systemd-37-19.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.