[stgt] [BUG] Tgt-1.0.8 exited unexpectedly

Hirokazu Takahashi taka at valinux.co.jp
Wed Oct 27 00:10:50 CEST 2010


Hi,

It finally crashed when I hit "tgtadm  --lld iscsi --op show  --mode=target."
You can find the core and logs here when it crashed:
  http://people.valinux.co.jp/~taka/tgtd/

Thanks,
Hirokazu Takahashi.

> Hi,
> 
> The same tgt I reported this morning is getting weirder.
> The data inside it looks completely broken.
> 
> The attached file is the output of "tgtadm --lld iscsi --op show
>  --mode=target."
> 
>> The tgt I started yesterday hasn't crashed yet but it seems it is just
>> luck.  It is getting weird.
>> The output of "tgtadm --lld iscsi --op show --mode=target" is completely
>> broken, which includes binary data. It looks like it tried reading some
>> data which is already released.
>> 
>> This output and the tgtd log are attached to this message.
>> 
>> Thanks,
>> Hirokazu Takahashi.
>> 
>>> With the following patch, tgt has been working without leaking nexuses
>>> for six hours. And it seems like it isn't getting fat anymore. Now I
>>> will see if it won't crash in a long run.
>>> 
>>>>> > Hello,
>>>>> > 
>>>>> > >> I uploaded the log and core at
>>>>> > >>   http://people.valinux.co.jp/~taka/tgtd/
>>>>> > > 
>>>>> > > Thanks, I got them.
>>>>> > > 
>>>>> > > btw, with the patch, tgtadm still tells that there are lots of nexuses
>>>>> > > like as you reported before?


# gdb /home/taka/src/tgt-git101019/usr/tgtd core.26646 
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5_5.2)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/taka/src/tgt-git101019/usr/tgtd...done.
[New Thread 26721]
[New Thread 26720]
[New Thread 26719]
[New Thread 26718]
[New Thread 26715]
[New Thread 26714]
[New Thread 26713]
[New Thread 26712]
[New Thread 26709]
[New Thread 26708]
[New Thread 26707]
[New Thread 26706]
[New Thread 26703]
[New Thread 26702]
[New Thread 26701]
[New Thread 26700]
[New Thread 26647]
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `/home/taka/src/tgt-git101019/usr/tgtd -f'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000003b6f0797e0 in strlen () from /lib64/libc.so.6
(gdb) bt
#0  0x0000003b6f0797e0 in strlen () from /lib64/libc.so.6
#1  0x0000003b6f046b69 in vfprintf () from /lib64/libc.so.6
#2  0x0000003b6f06988a in vsnprintf () from /lib64/libc.so.6
#3  0x0000003b6f04d493 in snprintf () from /lib64/libc.so.6
#4  0x0000000000412143 in tgt_target_show_all (buf=<value optimized out>, 
    rest=<value optimized out>) at target.c:1743
#5  0x00000000004108e3 in target_mgmt (mtask=0x7e064f0) at mgmt.c:133
#6  tgt_mgmt (mtask=0x7e064f0) at mgmt.c:353
#7  0x0000000000410e65 in mtask_handler (fd=19, events=<value optimized out>, 
    data=<value optimized out>) at mgmt.c:430
#8  0x000000000040febe in event_loop (argc=<value optimized out>, 
    argv=<value optimized out>) at tgtd.c:351
#9  main (argc=<value optimized out>, argv=<value optimized out>) at tgtd.c:522
(gdb)
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list