Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 486888

Summary: sys-apps/systemd-208-r1 throws 'Out of memory' when fstab LABEL= contains slashes
Product: Gentoo Linux Reporter: Henrique Dias <henrique.ribeiro.dias>
Component: [OLD] Core systemAssignee: Gentoo systemd Team <systemd>
Status: RESOLVED FIXED    
Severity: normal CC: alexander
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Emerge info

Description Henrique Dias 2013-10-03 15:46:43 UTC
After upgrade the sys-apps/systemd package to 208-r1 version it fails to mount all partitions listed in fstab.

dmesg show the following message:
[    5.532299] systemd-fstab-generator[1629]: Out of memory.
[    5.594208] systemd[1]: /usr/lib/systemd/system-generators/systemd-fstab-gene
rator exited with exit status 1.

Reproducible: Always

Steps to Reproduce:
1. boot the computer
2.
3.
Actual Results:  
Fails to mount all partitions listed in fstab.

Expected Results:  
Mount all partitions listed in fstab.

fstab file contents

LABEL=/                 /               ext4            noatime                 0 1
LABEL=SWAP              none            swap            sw,pri=1                0 0
LABEL=/usr/local        /usr/local      ext4            noatime                 0 2
LABEL=/home             /home           ext4            noatime                 0 0

proc                    /proc           proc            defaults                0 0
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0

/dev/cdrom              /mnt/cdrom      auto            noauto,user             0 0
/dev/sdb1               /mnt/usb        auto            noauto,user,exec        0 0
/dev/mmcblk0p1          /mnt/mmc        auto            noauto,user,exec        0 0
Comment 1 Henrique Dias 2013-10-03 15:47:22 UTC
Created attachment 360072 [details]
Emerge info

Emerge info
Comment 2 Henrique Dias 2013-10-03 20:23:31 UTC
Sorry, I already know what is the problem.

I removed the slashes from the labels and everything works perfectly.

http://forums.gentoo.org/viewtopic-p-7409700.html
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-10-03 20:44:37 UTC
In any case, the error message is incorrect. Would you like report this upstream yourself (to bugzilla.freedesktop.org) or should we do it for you?
Comment 5 Ulenrich 2013-10-10 15:05:01 UTC
https://bugs.freedesktop.org/show_bug.cgi?id=70103

I don't think slashes in labels are correct.
Comment 6 Alexander Tsoy 2013-10-10 15:19:45 UTC
(In reply to Ulenrich from comment #5)
> https://bugs.freedesktop.org/show_bug.cgi?id=70103
> 
> I don't think slashes in labels are correct.

Slashes in labels are allowed. Has anyone tried the patch? (comment 4)
Comment 7 Alexander Tsoy 2013-10-10 15:27:41 UTC
(In reply to Alexander Tsoy from comment #6)
> (In reply to Ulenrich from comment #5)
> > https://bugs.freedesktop.org/show_bug.cgi?id=70103
> > 
> > I don't think slashes in labels are correct.
> 
> Slashes in labels are allowed. Has anyone tried the patch? (comment 4)

Oh.. It's already in 208-r2.
Comment 8 Pacho Ramos gentoo-dev 2013-10-10 17:33:47 UTC
should be solved in -r2 then