Hi,

I managed to reproduce this by running "screen -rd" inside
screen. Here's more information from gdb, now with debugging symbols:

(gdb) x/4i $pc
=> 0x4013bc44 <strncpy+24>:     ldrb    r12, [r1]
   0x4013bc48 <strncpy+28>:     cmp     r12, #0
   0x4013bc4c <strncpy+32>:     strb    r12, [r3]
   0x4013bc50 <strncpy+36>:     mov     r12, r3
(gdb) bt full
#0  0x4013bc44 in strncpy () from /lib/arm-linux-gnueabi/libc.so.6
No symbol table info available.
#1  0x00047bf4 in Attach (how=2) at attacher.c:360
        n = 1
        lasts = 4
        m = {protocol_revision = 1836279554, type = 2, m_tty = '\000' <repeats 
4095 times>, m = {create = {lflag = 0, aflag = 0, flowflag = 0, hheight = 0, 
nargs = 0, line = '\000' <repeats 4095 times>, dir = '\000' <repeats 4095 
times>, screenterm = '\000' <repeats 19 times>}, attach = {auser = '\000' 
<repeats 50 times>, apid = 0, adaptflag = 0, lines = 0, columns = 0, preselect 
= '\000' <repeats 19 times>, esc = 0, meta_esc = 0, envterm = '\000' <repeats 
40 times>, encoding = 0, detachfirst = 0}, detach = {duser = '\000' <repeats 50 
times>, dpid = 0}, command = {auser = '\000' <repeats 50 times>, nargs = 0, cmd 
= '\000' <repeats 4095 times>, apid = 0, preselect = '\000' <repeats 19 times>, 
writeback = '\000' <repeats 4095 times>}, message = '\000' <repeats 8191 
times>}}
        st = {st_dev = 10, __pad1 = 0, st_ino = 529086, st_mode = 4544, 
st_nlink = 1, st_uid = 1000, st_gid = 1000, st_rdev = 0, __pad2 = 0, st_size = 
0, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1348034491, tv_nsec = 
594728506}, st_mtim = {tv_sec = 1348034491, tv_nsec = 594728506}, st_ctim = 
{tv_sec = 1348034491, tv_nsec = 594728506}, __unused4 = 0, __unused5 = 0}
        s = 0x9eb61 ".pts-4.ginger"
#2  0x0000d758 in main (ac=0, av=0xbef9b20c) at screen.c:1211
        n = -5696
        ap = 0x0
        av0 = 0xbef9b321 "tmp/screen-4.1.0~20120320gitdb59704/screen"
        socknamebuf = 
"\004\355\000@\000P\002@0\254\371\276\000\000\000\000\004\256\371\276h\252\371\276\004\355\000@AE\210\000\204\000\b\000E\200\000`\300\200\000\f\212\f\000\001\060\000\b@2\b\256\004\210H6l\240\026\060\000\274\255\371\276\210_\t\000\002\000\000\000\b\000\000\000H\340\001@\000P\002@|\353\001@p\353\001@\004\325\000@\274\255\371\276\000\000\000\000\310\345\001@\000\000\000\000\004\256\371\276tX\002@\324\255\371\276ح\371\276߭\371\276\f\343\000@\004\256\371\276\000\000\000\000\324\255\371\276ح\371\276\000\000\000\000\210_\t\000\000\000\000\000XY\002@\000P\002@\000\000\000\000\006\000\000\000\004\256\371\276\020\253\371\276\004\355\000@\000P\002@\000\000\000\000\005\000\000\000\003\000\000\000\f\000\000\000\210\335\001@\000P\002@`\353\001@P\353\001@\004\325\000@\274\255\371\276\004\355\000@\310\345\001@`U\002@\000\000\000\000\004\256\371\276X\253\371\276\004\355\000@\000P\002@\000\000\000\000\002\000\000\000\004\256\371\276p\253\371\276\004\355\000"...
        mflag = 0
        myname = 0xbef9b321 "tmp/screen-4.1.0~20120320gitdb59704/screen"
        SockDir = 0x8c454 "/var/run/screen"
        st = {st_dev = 10, __pad1 = 0, st_ino = 248569, st_mode = 16832, 
st_nlink = 2, st_uid = 1000, st_gid = 1000, st_rdev = 0, __pad2 = 0, st_size = 
60, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1347954087, tv_nsec = 
609481190}, st_mtim = {tv_sec = 1347624205, tv_nsec = 383136595}, st_ctim = 
{tv_sec = 1347624205, tv_nsec = 383136595}, __unused4 = 0, __unused5 = 0}
        oumask = 18
        nwin = {StartAt = -1, aka = 0x0, args = 0x0, dir = 0x0, term = 0x0, 
aflag = -1, flowflag = -1, lflag = -1, histheight = -1, monitor = -1, wlock = 
-1, silence = -1, wrap = -1, Lflag = -1, slow = -1, gr = -1, c1 = -1, bce = -1, 
encoding = -1, hstatus = 0x0, charset = 0x0}
        detached = 0
        sockp = 0x0
        sty = 0xbef9beaa "24777.pts-4.ginger"
(gdb) up
#1  0x00047bf4 in Attach (how=2) at attacher.c:360
360       strncpy(m.m.attach.envterm, attach_term, sizeof(m.m.attach.envterm) - 
1);
(gdb) p attach_term
$1 = 0x0
(gdb) 


attach_term is only set in screen.c:1035 but according to gdb that line
is never reached since condition in 

if (!detached && !lsflag && !cmdflag && !(dflag && !mflag && !rflag && !xflag) 
&& !(!mflag && !SockMatch && sty && !xflag))
{
...
}

is not true:

(gdb) p detached
$15 = 0
(gdb) p lsflag
$16 = 0
(gdb) p cmdflag
$17 = 0
(gdb) p dflag
$18 = 1
(gdb) p mflag
$19 = 0
(gdb) p rflag
$20 = 1
(gdb) p xflag
$21 = 0
(gdb) p SockMatch
$22 = 0x0
(gdb) p sty
$23 = 0xbe85eeaa "24777.pts-4.ginger"
(gdb) p xflag
$24 = 0





-Timo


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to