Bug 15624 - hangs on halt
Summary: hangs on halt
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: ntfs-3g (show other bugs)
Version: unstable
Hardware: all Linux
: P2 major
Assignee: Valery Inozemtsev
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-12 17:36 MSD by Ivan Zakharyaschev
Modified: 2008-06-25 11:21 MSD (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2008-05-12 17:36:01 MSD
libntfs-3g-1.2506-alt1
ntfs-3g-1.2506-alt1

(I used to have:

libntfs-3g-1.826-alt1
ntfs-3g-1.826-alt1

and used not to have this problem.)

My configuration:

# fgrep ntfs /etc/fstab
/dev/sda2       /mnt/windows    ntfs-3g        
umask=0,nosuid,noexec,nodev,user,auto,ro 0 0
# rpm -qf /etc/rc0.d/S01halt
startup-0.9.8.18-alt1
# 


Steps to Reproduce:
1. boot the system, then issue the command "poweroff"
2.
3.
Actual Results:  
At the final stage, there are messages like (syslog is already turned off at the
moment, so this is not the exact messsages, but rather how I have memorized them):

/dev/sda2 not mounted

mounting all remaining filesystems read-only

umount2: invalid argument

and then the system hangs, it doesn't get halted. (Workaround: I press the power
button on my computer to turn it off.)
Comment 1 Ivan Zakharyaschev 2008-05-12 18:06:54 MSD
I do not know why hangs in the situation of actual halt: the simulation of this
in a shell doesn't hang:

# ps aux | fgrep ntfs
root      6602  0.0  0.0   2392   884 ?        Ss   17:29   0:00
/sbin/mount.ntfs-3g /dev/sda2 /mnt/windows -o ro,noexec,nosuid,nodev,user,umask=0
root      7680  0.0  0.0   1736   496 pts/0    S+   18:00   0:00 fgrep ntfs
# kill 6602
# ps aux | fgrep ntfs
root      6602  0.0  0.0   2256   896 ?        Ss   17:29   0:00
/sbin/mount.ntfs-3g /dev/sda2 /mnt/windows -o ro,noexec,nosuid,nodev,user,umask=0
root      7697  0.0  0.0   1736   496 pts/0    S+   18:01   0:00 fgrep ntfs
# kill -TERM 6602
# ps aux | fgrep ntfs
root      7704  0.0  0.0   1732   456 pts/0    S+   18:01   0:00 fgrep ntfs
# fgrep umount /etc/init.d/halt
action 'Remounting remaining filesystems (if any) read-only:' umount -anrf
# umount -nrf /dev/sda2
umount2: Invalid argument
umount: /dev/sda2: not mounted
umount2: Invalid argument
umount: /dev/sda2: not mounted
# 
Comment 2 Ivan Zakharyaschev 2008-05-12 19:32:57 MSD
(In reply to comment #1)
> I do not know why it hangs in the situation of actual halt: the simulation of this
> in a shell doesn't hang:

No, indeed, after that simulation any other call mount would hang, so the
simulation worked.
Comment 3 Ivan Zakharyaschev 2008-05-12 19:34:44 MSD
The problem was solved by upgrading libfuse and fuse from 2.7.1-alt1 to 2.7.3-alt1. 

Perhaps, the new ntfs-3g should have a dependency on the new libfuse?
Comment 4 Alexey Sidorov 2008-06-19 08:18:09 MSD
Сделаю в следующей сборке
Comment 5 Alexey Sidorov 2008-06-25 11:21:37 MSD
Исправлено в ntfs-3g-1.2506-alt2