Bug 55518

Summary: Systemd path unit - OOM [ w/ patch ]
Product: systemd Reporter: Oleksii Shevchuk <public.avatar>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: major    
Priority: high    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Fix unit_get_exec_context==NULL branch

Description Oleksii Shevchuk 2012-10-01 21:51:36 UTC
latest systemd (193) fails with "Out of memory.", while loading this path unit:

update-profile.path:

[Unit]
Description=Update environment from profile

[Path]
PathModified=%h/.profile
PathModified=%h/.profile.d
PathModified=/etc/profile
PathModified=/etc/profile.d

[Install]
WantedBy=env.target

update-profile.service:

[Unit]
Description=Update environment

[Service]
Type=oneshot
ExecStart=/bin/sh -c 'env -i /bin/sh --login -c "env"		| \
		      grep -v -e PWD -e SHLVL -e ^_= 		| \
		      xargs -i systemctl --user set-environment {}'


with this message:

PRIORITY=3
SYSLOG_FACILITY=3
CODE_FILE=src/core/load-fragment.c
CODE_LINE=1211
CODE_FUNCTION=config_parse_path_spec
SYSLOG_IDENTIFIER=systemd
MESSAGE=Out of memory.
_TRANSPORT=journal
_PID=2539
_UID=1000
_GID=1000
_COMM=systemd
_EXE=/usr/lib/systemd/systemd
_CMDLINE=/usr/bin/systemd --user --unit=awesome.service
_AUDIT_SESSION=6
_AUDIT_LOGINUID=1000
_SYSTEMD_CGROUP=/user/avatar/6/systemd-2539
_SYSTEMD_SESSION=6
_SOURCE_REALTIME_TIMESTAMP=1349127832626575
_MACHINE_ID=c70398ffe97409961b12795f00000013
_HOSTNAME=CLU
Comment 1 Oleksii Shevchuk 2012-11-01 20:42:01 UTC
Created attachment 69401 [details] [review]
Fix unit_get_exec_context==NULL branch

It's okay if unit_get_exec_context failed and other way to complete action specified

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.