Project

General

Profile

Actions

Bug #12316

closed

hald_runner dies getting SIGPIPE

Added by Alexander Pyhalov over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Perform the following actions:
1) Mount USB stick in Mate
2) umount it in CLI

If you are lucky (or unlucky) enough, hald runner dies. SMF doesn't notice this. If you run hald with --daemon=no --verbose=yes, you can see either

23:57:49.342 [I] osspec.c:213: mnttab event
Run started hal-storage-cleanup-mountpoint (0) (1) 
!  full path is '/usr/lib/hal/hal-storage-cleanup-mountpoint', program_dir is '/usr/lib/hal'
2560: XYA attempting to get lock on /media/.hal-mtab-lock
2560: XYA got lock on /media/.hal-mtab-lock
in hal-storage-cleanup-mountpoint for mount point '/media/Ubuntu 18.04.2 LTS amd64'
hal_mtab = '/dev/dsk/c0t0d0p0   101     0       hsfs    nosuid  /media/Ubuntu 18.04.2 LTS amd64
'
 line = '/dev/dsk/c0t0d0p0      101     0       hsfs    nosuid  /media/Ubuntu 18.04.2 LTS amd64'
  devfile     = '/dev/dsk/c0t0d0p0'
  uid         = '101'
  session id  = '0'
  fs          = 'hsfs'
  options     = 'nosuid'
  mount_point = '/media/Ubuntu 18.04.2 LTS amd64'
Found entry for mount point '/media/Ubuntu 18.04.2 LTS amd64' in /media/.hal-mtab2560: XYA released lock on /media/.hal-mtab-lock
*** [DIE] hald_runner.c:runner_died():168 : Runner died

when you are unlucky or

23:56:24.220 [I] osspec.c:213: mnttab event
Run started hal-storage-cleanup-mountpoint (0) (1) 
!  full path is '/usr/lib/hal/hal-storage-cleanup-mountpoint', program_dir is '/usr/lib/hal'
2494: XYA attempting to get lock on /media/.hal-mtab-lock
2494: XYA got lock on /media/.hal-mtab-lock
in hal-storage-cleanup-mountpoint for mount point '/media/Ubuntu 18.04.2 LTS amd64'
hal_mtab = '/dev/dsk/c0t0d0p0   101     0       hsfs    nosuid  /media/Ubuntu 18.04.2 LTS amd64
'
 line = '/dev/dsk/c0t0d0p0      101     0       hsfs    nosuid  /media/Ubuntu 18.04.2 LTS amd64'
  devfile     = '/dev/dsk/c0t0d0p0'
  uid         = '101'
  session id  = '0'
  fs          = 'hsfs'
  options     = 'nosuid'
  mount_point = '/media/Ubuntu 18.04.2 LTS amd64'
Found entry for mount point '/media/Ubuntu 18.04.2 LTS amd64' in /media/.hal-mtab2494: XYA released lock on /media/.hal-mtab-lock
pid 2494: rc=0 signaled=0: /usr/lib/hal/hal-storage-cleanup-mountpoint
23:56:24.276 [I] devinfo_storage.c:1436: Cleaned up mount point '/media/Ubuntu 18.04.2 LTS amd64'

if you are lucky.

truss shows the following pattern:
hald-runner spawns /usr/lib/hal/hal-storage-cleanup-mountpoint and writes '\n' to its stdin. If it's unlucky and hal-storage-cleanup-mountpoint has already finished its work, it gets SIGPIPE.

Actions

Also available in: Atom PDF