Re: "echo hello > /dev/pts/2" is blocking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 12, 2011 at 4:42 PM, JB <jb.1234abcd@xxxxxxxxx> wrote:
> Alain Spineux <aspineux <at> gmail.com> writes:
>
>>
>> I have a FUSE program in debug mode displaying a lot of debug messages
>> on the terminal.
>> After hours the program "freeze" and the terminal looks blocked.
>> The terminal don't react to key press, nor CTRL-C nor CTRL-Z
>>
>> Using gdb, I get 31 threads, the 25 looks strange.
>> It looks to be blocking on a write() system call while displaying a
>> debug message to the terminal
>> Then I tried
>> # echo hello > /dev/pts/2
>> and it's blocking too !
>> Other pts on the same host don't block
>>
>> How can a pts block ? Probably a problem with ssh or sshd. Using
>> strace, I can see both waiting on a select()
>> and not reacting to a key press or to the echo hello > /dev/pts/2. The
>> ssh client is running on a fedora 11
>>
>> What next ?
>>
>> I'm running fedora 14 on x64, but get exactly the same on a f14 i386.
>> I'm running the same test on centos-6 x64 just now
>>
>> Regards
>
> I would say take a look at pertinent info (from another terminal on that
> machine):
> $ w
> $ ps aux |grep -i pts

ps was freezing, I had to grep /proc/*/stat

>
> Threads:
> $ ps -eLf |grep -i pts
> $ ps axms |grep -i pts
> $ man ps         # signals: PENDING or BLOCKED or IGNORED or CAUGHT
> $ man select


The problem is not solved but if I disable debugging, the terminal is
not "flooded" and application finish without blocking.

Thanks for answering.

>
> JB
>
>
> --
> users mailing list
> users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>



-- 
Alain Spineux                   |  aspineux gmail com
Monitor your iT & Backups |  http://www.magikmon.com
Free Backup front-end       | http://www.magikmon.com/mksbackup
Your email 100% available |  http://www.emailgency.com
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux