Bug 1524034 - gpm crashes on startup in container
Summary: gpm crashes on startup in container
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gpm
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaromír Cápík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-09 14:10 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2020-06-24 21:24 UTC (History)
1 user (show)

Fixed In Version: gpm-1.20.7-23.fc33
Clone Of:
Environment:
Last Closed: 2020-06-24 21:24:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zbigniew Jędrzejewski-Szmek 2017-12-09 14:10:01 UTC
Description of problem:
● gpm.service - Console Mouse manager
   Loaded: loaded (/usr/lib/systemd/system/gpm.service; enabled; vendor preset: enabled)
   Active: failed (Result: protocol) since Sat 2017-12-09 14:51:42 CET; 12min ago
  Process: 139 ExecStart=/usr/sbin/gpm -m /dev/input/mice -t exps2 (code=exited, status=0/SUCCESS)

Dec 09 14:51:41 f27c /usr/sbin/gpm[142]: *** info [daemon/startup.c(136)]:
Dec 09 14:51:41 f27c /usr/sbin/gpm[142]: Started gpm successfully. Entered daemon mode.
Dec 09 14:51:41 f27c /usr/sbin/gpm[142]: O0o.oops(): [daemon/old_main.c(58)]:
Dec 09 14:51:41 f27c systemd[1]: Starting Console Mouse manager...
Dec 09 14:51:42 f27c systemd[1]: gpm.service: PID 142 read from file /var/run/gpm.pid does not exist or is a zombie.
Dec 09 14:51:42 f27c systemd[1]: Failed to start Console Mouse manager.
Dec 09 14:51:42 f27c systemd[1]: gpm.service: Unit entered failed state.
Dec 09 14:51:42 f27c systemd[1]: gpm.service: Failed with result 'protocol'.

Note that gpm doesn't provide any useful message.

strace:
stat("/dev/vc/0", 0x7ffe48286f70)       = -1 ENOENT (No such file or directory)
stat("/dev/tty0", 0x7ffe48286f70)       = -1 ENOENT (No such file or directory)
geteuid()                               = 0
openat(AT_FDCWD, NULL, O_WRONLY)        = -1 EFAULT (Bad address)
brk(NULL)                               = 0x1711000
brk(0x1732000)                          = 0x1732000
brk(NULL)                               = 0x1732000
openat(AT_FDCWD, "/dev/console", O_WRONLY) = 3
ioctl(3, TIOCLINUX, 0x617580)           = -1 ENOTTY (Inappropriate ioctl for device)
close(3)                                = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f4278343a10) = 9938
exit_group(0)                           = ?

Version-Release number of selected component (if applicable):
gpm-1.20.7-10.fc26.x86_64

gpm is enabled by default in system presets. https://fedoraproject.org/wiki/Packaging:DefaultServices requires that the service "does not require manual configuration to be functional". Please either fix gpm to exit cleanly if  there's no hardware or (less preferred option) drop the default preset.

Comment 1 Ben Cotton 2018-11-27 17:53:27 UTC
This message is a reminder that Fedora 27 is nearing its end of life.
On 2018-Nov-30  Fedora will stop maintaining and issuing updates for
Fedora 27. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora  'version' of '27'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 27 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Zbigniew Jędrzejewski-Szmek 2020-06-24 21:24:42 UTC
Built in rawhide.


Note You need to log in before you can comment on or make changes to this bug.