zram-config fails to stop on unknown rmmod -w option

Bug #1448916 reported by Alexander Ponyatykh
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zram-config (Ubuntu)
Triaged
Medium
Unassigned
Vivid
New
Undecided
Unassigned

Bug Description

zram-config fails to stop. The script executes "rmmod -w zram", but rmmod don't have -w option.
$ LANG=C journalctl -xe
-- Unit zram-config.service has begun shutting down.
Apr 27 11:16:43 gurren.lazyranma.ru end-zram-swapping[20419]: rmmod: ERROR: unexpected getopt_long() value 'w'.
Apr 27 11:16:43 gurren.lazyranma.ru systemd[1]: zram-config.service: control process exited, code=exited status=1
Apr 27 11:16:43 gurren.lazyranma.ru systemd[1]: Stopped Initializes zram swaping.
-- Subject: Unit zram-config.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zram-config.service has finished shutting down.
Apr 27 11:16:43 gurren.lazyranma.ru systemd[1]: Unit zram-config.service entered failed state.
Apr 27 11:16:43 gurren.lazyranma.ru systemd[1]: zram-config.service failed.
$ sudo bash -x /usr/bin/end-zram-swapping
++ grep zram /proc/swaps
++ awk '{print $1}'
+ DEVICES='/dev/zram0
/dev/zram1
/dev/zram2
/dev/zram3'
+ for i in '$DEVICES'
+ swapoff /dev/zram0
+ for i in '$DEVICES'
+ swapoff /dev/zram1
+ for i in '$DEVICES'
+ swapoff /dev/zram2
+ for i in '$DEVICES'
+ swapoff /dev/zram3
+ rmmod -w zram
rmmod: ERROR: unexpected getopt_long() value 'w'.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: zram-config 0.3 [modified: usr/bin/init-zram-swapping]
ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
Uname: Linux 3.19.0-15-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
CurrentDesktop: KDE
Date: Mon Apr 27 11:17:12 2015
PackageArchitecture: all
SourcePackage: zram-config
UpgradeStatus: Upgraded to vivid on 2015-04-26 (1 days ago)

Revision history for this message
Alexander Ponyatykh (lazyranma) wrote :
tags: added: systemd-boot
Revision history for this message
Martin Pitt (pitti) wrote :

Confirmed. Happens under upstart as well as it's the same script.

summary: - zram-config fails to stop
+ zram-config fails to stop on unknown rmmod -w option
tags: removed: systemd-boot
Changed in zram-config (Ubuntu):
status: New → Triaged
Changed in zram-config (Ubuntu):
importance: Undecided → High
Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

@ Martin Pitt (pitti)

You forgot some details!

Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

I mean the bug has been marked as triaged without importance been set, or nomination for series.

Revision history for this message
Brian Murray (brian-murray) wrote :

The -w argument to rmmod has been present since the first version of zram-config.

tags: added: trusty utopic
Changed in zram-config (Ubuntu):
importance: High → Medium
Revision history for this message
Brian Murray (brian-murray) wrote :

And that's because -w used to be a valid argument to rmmod but that was removed between Trusty and Utopic.

kmod 16
=======

- New features:
        - Remove option from libkmod to allow waiting on module removal if
          the module is being used. It's dangerous since it can block the
          caller indefinitely.

tags: removed: trusty
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Marking as duplicate of 1449678 as I referenced that one in the changelog before seeing this bug. Fixed in wily, backporting the fix to vivid. Thanks all for your contribution!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.