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

Re: [Xen-API] Console Login Bug?



All of our guest Linux VMs are CentOS 5.x or 6.x x86_64. On all of
them I can find agetty running for the console.

-- /sbin/agetty /dev/hvc0 38400 vt100-nav

Here's an strace of agetty when I enter text followed by @ ---

read(0, "r", 1)                         = 1
write(1, "r", 1)                        = 1
read(0, "o", 1)                         = 1
write(1, "o", 1)                        = 1
read(0, "o", 1)                         = 1
write(1, "o", 1)                        = 1
read(0, "t", 1)                         = 1
write(1, "t", 1)                        = 1
read(0, "@", 1)                         = 1
write(1, "\10 \10", 3)                  = 3
write(1, "\10 \10", 3)                  = 3
write(1, "\10 \10", 3)                  = 3
write(1, "\10 \10", 3)                  = 3
read(0, "f", 1)                         = 1
write(1, "f", 1)                        = 1
read(0, "a", 1)                         = 1
write(1, "a", 1)                        = 1
read(0, "i", 1)                         = 1
write(1, "i", 1)                        = 1
read(0, "l", 1)                         = 1
write(1, "l", 1)                        = 1
read(0,

And here's the output from Shift+3 --

read(0, "t", 1)                         = 1
write(1, "t", 1)                        = 1
read(0, "e", 1)                         = 1
write(1, "e", 1)                        = 1
read(0, "s", 1)                         = 1
write(1, "s", 1)                        = 1
read(0, "t", 1)                         = 1
write(1, "t", 1)                        = 1
read(0, "#", 1)                         = 1
write(1, "\10 \10", 3)                  = 3
read(0, "#", 1)                         = 1
write(1, "\10 \10", 3)                  = 3

--Graham

On Tue, Jun 11, 2013 at 11:34 AM, James Bulpin
<James.Bulpin@xxxxxxxxxxxxx> wrote:
> I wrote
>> so it looks like agetty is interpreting the "@" as being part of an escape
>> sequence.
>
> Which is probably should anway in get_logname. But the login bash shell does 
> the same too:
>
> 6859 ?        Ss     0:00 login -- root
> 32052 hvc0     Ss+    0:00  \_ -bash
> [root@localhost ~]# strace -p 32052
> Process 32052 attached - interrupt to quit
> read(0, "d", 1)                         = 1
> write(2, "d", 1)                        = 1
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
> read(0, "d", 1)                         = 1
> write(2, "d", 1)                        = 1
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
> read(0, "d", 1)                         = 1
> write(2, "d", 1)                        = 1
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
> read(0, "d", 1)                         = 1
> write(2, "d", 1)                        = 1
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
> read(0, "@", 1)                         = 1
> write(2, "\10\10\10\10\33[K", 7)        = 7
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
>
>
> _______________________________________________
> Xen-api mailing list
> Xen-api@xxxxxxxxxxxxx
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.