Bug 55518 - Systemd path unit - OOM [ w/ patch ]
Summary: Systemd path unit - OOM [ w/ patch ]
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: high major
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-01 21:51 UTC by Oleksii Shevchuk
Modified: 2012-11-19 08:28 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Fix unit_get_exec_context==NULL branch (1.30 KB, patch)
2012-11-01 20:42 UTC, Oleksii Shevchuk
Details | Splinter Review

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.