[Pkg-sysvinit-devel] Bug#737375: A more detailed backtrace

Svante Signell svante.signell at gmail.com
Tue Feb 4 07:14:14 UTC 2014


Hi,

BTW: The error messages 
end_request: I/O error, dev 02:00, sector 0
on the console are coming from this call.

>From the backtrace in thread 4 we see that the source pointer for memcpy
is 0x0. I'm not so sure the problem is with sysvinit, it might as well
be a libc bug.
 
I managed to run gdb on a non-stripped version of boodlogd:
Thread 4 (Thread 6032.3):
#0  0x0105a96c in mach_msg_trap ()

at /usr/src/eglibc-2.17/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2
No locals.
#1  0x0105b22e in __mach_msg (msg=msg at entry=0x124bf50,
option=option at entry=3, 
    send_size=32, rcv_size=rcv_size at entry=4096,
rcv_name=rcv_name at entry=51, 
    timeout=timeout at entry=0, notify=notify at entry=0) at msg.c:110
        ret = <optimized out>
#2  0x0105b8fb in __mach_msg_server_timeout (
    demux=demux at entry=0x106b890 <msgport_server>, 
    max_size=max_size at entry=4096, rcv_name=rcv_name at entry=51, 
    option=option at entry=0, timeout=timeout at entry=0) at msgserver.c:150
        request = 0x124bf50
        reply = 0x124cf60
        mr = <optimized out>
        __PRETTY_FUNCTION__ = "__mach_msg_server_timeout"
#3  0x0105b9cb in __mach_msg_server (
    demux=demux at entry=0x106b890 <msgport_server>, max_size=4096,
rcv_name=51)
    at msgserver.c:195
No locals.
#4  0x0106b97d in _hurd_msgport_receive () at msgportdemux.c:67
No locals.
#5  0x66688b92 in ?? ()
No symbol table info available.

Thread 3 (Thread 6032.2):
#0  0x010e5409 in __mempcpy (dstpp=dstpp at entry=0x102942c, srcpp=0x0, 
    len=len at entry=4) at mempcpy.c:62
        dstp = 16946220
        srcp = 0
#1  0x011508f1 in in (count=<optimized out>, type=IOC_32)
    at ../sysdeps/mach/hurd/ioctl.c:125
        len = 4
        p = 0x102942c
        t = 0x1029428
        argptr = 0x0
#2  0x01150af4 in send_rpc (ioport=23)
at ../sysdeps/mach/hurd/ioctl.c:137
        msg = {{header = {Head = {msgh_bits = 0, msgh_size = 0, 
                msgh_remote_port = 0, msgh_local_port = 17, 
                msgh_seqno = 759583829, msgh_id = 1162621491},
RetCodeType = {
                msgt_name = 0, msgt_size = 0, msgt_number = 0, 
                msgt_inline = 0, msgt_longform = 0, msgt_deallocate =
0, 
                msgt_unused = 0}, RetCode = 97}, header_typecheck =
{Head = {
                msgh_bits = 0, msgh_size = 0, msgh_remote_port = 0, 
                msgh_local_port = 17, msgh_seqno = 759583829, 
                msgh_id = 1162621491}, RetCodeType = 0, RetCode = 97}}, 
          data = 0x1029430 "\b@$\001Tt\003\001"}
        err = <optimized out>
        msg.0 = 0x1029410
        request = 2684880738
        arg = 0x0
        type = 262400
        m = 0x1029410
        msgid = 156098
        reply_size = 32
        t = 0x1029428
        argptr = 0x0
#3  0x010807a5 in _hurd_ctty_output (port=port at entry=23,
ctty=ctty at entry=54, 
    rpc=rpc at entry=0x10294c4) at ctty-output.c:52
        actions = <optimized out>
        err = EIO
#4  0x0115105b in __ioctl (fd=fd at entry=0)
at ../sysdeps/mach/hurd/ioctl.c:271
        __ulink = {resource = {next = 0x0, prevp = 0x102df8c}, thread =
{
            next = 0x1029488, prevp = 0x124445c}, 
          cleanup = 0x1081700 <_hurd_port_cleanup>, cleanup_data = 0x17}
        __ctty_ulink = {resource = {next = 0x0, prevp = 0x102df9c},
thread = {
            next = 0x0, prevp = 0x1029478}, 
          cleanup = 0x1081700 <_hurd_port_cleanup>, cleanup_data = 0x36}
        ctty = 54
        crit = 0x1244008
        __result = <optimized out>
        __d = 0x102df88
        port = 23
        mach_types = {8, 1, 2, 11}
        msg = {{header = {Head = {msgh_bits = 0, msgh_size = 0, 
                msgh_remote_port = 0, msgh_local_port = 97, msgh_seqno =
1, 
                msgh_id = 9}, RetCodeType = {msgt_name = 16, msgt_size =
148, 
                msgt_number = 258, msgt_inline = 0, msgt_longform = 0, 
                msgt_deallocate = 0, msgt_unused = 0}, RetCode = 0}, 
            header_typecheck = {Head = {msgh_bits = 0, msgh_size = 0, 
                msgh_remote_port = 0, msgh_local_port = 97, msgh_seqno =
1, 
                msgh_id = 9}, RetCodeType = 16946192, RetCode = 0}}, 
          data = 0x1029430 "\b@$\001Tt\003\001"}
        err = <optimized out>
        request = 2684880738
        type = 262400
        msg.0 = 0x1029410
        m = 0x1029410
        arg = 0x0
        msgid = 156098
        reply_size = 32
        t = 0xa
#5  0x08049152 in main (argc=1, argv=0x1029df4) at bootlogd.c:557
        fp = 0x0
        tv = {tv_sec = 268509186, tv_usec = 0}
        fds = {fds_bits = {270540802, 23, 0, 196608, 194576, 194576, 0,
5}}
        buf = "/dev/ttyp1\000\000\240\020\003\000\000\360\002\000\006
\000\000\000H\200\037\001/\000\000\000\003r\001\000\b\000\000\000!\000
\000\000\000\000\000\000\000 \000\000\000\200\002\000H\200\037\001\300
\202\037\001 \267\000\000\300\202\037\001 \200\037\001!\000\000\000\a
\264\000\000\344\205\002\000 \000\000\000\234\202\037\001U\262\000\000
\000\200\002\000\000\000!\001H\200\037\001\233b\001\000\001\000\000\000
\000\000\000i\264\000\000\000\200\002\000\000\000!\001H\200\037\001H\227
\002\001\202\201\000\000 ", '\000' <repeats 75 times>...
        realcons = "/dev/console\000\372\002\001L$\037\001\266\002\000
\000\224\360\000\000`\374\002\001>\002\025\001\001\000\000\000\005",
'\000' <repeats 11 times>, "\a\000\000\000\006\000\000\000\204\300\004
\001\363\003\000\000\060\270\202\r\n$KS\301\025l\000\064\060\004\001\344
\355\003\001D\031\004\001`\374\002\001\204\244\037\001p\232\002\001^\230
\000\000g\274\037\001\267\366\004\001\000\000\000\000\000\000\000\000
\005\000\000\000%\004\000\000x\204\037\001\250\372\002\001\226\233\004
\001\244\212\004\001\064\060\004\001\000\200\002\000<\234\037\001\004
\000\000\000\\\203\037\001\024\241\000\000`\374\002\001\204\376\003\001
\002\000\000\000\035\231\000\000~\367\004\001~\367\004\001\240\232\002
\001"...
        p = <optimized out>
        logfile = 0x804a2b2 "/var/log/boot"
        pidfile = 0x0
        rotate = 0
        dontfork = 0
        ptm = 8
        pts = 9
        realfd = 7
        m = <optimized out>
        i = <optimized out>
        todo = <optimized out>



More information about the Pkg-sysvinit-devel mailing list