Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: vzctl enter <VEID> hangs

16 views
Skip to first unread message

Chet Ramey

unread,
Mar 14, 2011, 2:32:36 PM3/14/11
to Henk van de Kamer, bug-...@gnu.org, chet....@case.edu
On 3/14/11 5:15 AM, Henk van de Kamer wrote:

>> I'd be interested in seeing what interrupted the select/read/write/
>> sigprocmask system calls in both processes.
>
> What exactly do you want. A full strace report?
>
> I'm trying to find the difference between 4.1.9 and 4.2.0 which causes
> this behavior, but that is not simple because I don't know the order and
> which differences I must combine. So this process will take a while...

I have strace reports from another person. I just have to find time to
look at them.


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU ch...@case.edu http://cnswww.cns.cwru.edu/~chet/

Chet Ramey

unread,
Mar 15, 2011, 12:03:03 PM3/15/11
to he...@vandekamer.com, bug-...@gnu.org, ch...@po.cwru.edu, chet....@case.edu
> > So vzctl is running bash in a pty and talking to it that way?
>
> For the exact details I'll point to the OpenVZ guys :-). It is an OS
> virtualization patch for the kernel. With it you can run virtual servers
> which are isolated from each other.

The answer to my question was "yes."

> What exactly do you want. A full strace report?

That's what I got, and the strace points the finger at vzctl. It looks
like a bug in vzctl that was masked by bash-4.1 and previous versions.

> I'm trying to find the difference between 4.1.9 and 4.2.0 which causes
> this behavior, but that is not simple because I don't know the order and
> which differences I must combine. So this process will take a while...

The difference looks to be that bash-4.1 closed fds 3-20 at startup, and
bash-4.2 sets open fds in that range to close-on-exec. vzctl is careless
with its file descriptors, and bash not closing them results in its
controlling terminal getting messed up.

Michael Kalisz opened a bug report with the openvz group.

Chet

gnu.bash.bug

unread,
Mar 20, 2011, 11:45:10 AM3/20/11
to
Hi!

For those who have not noticed yet...

A new version of vzctl was released which fixes this issue:

http://bugzilla.openvz.org/show_bug.cgi?id=1812#c7

Thanks for all help!

Michael

> Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

0 new messages