I wrote a script to create lots of iscsi volumes on loop devices. Seems to run fine up to 111, and then tgtd crashes and tgtadm gets a buffer overflow. The script I used to create the problem and a capture of the crash is attached. I'm using standard RPMs on Fedora 10, kernel Linux iSCSi-test 2.6.27.15-170.2.24.fc10.x86_64 #1 SMP Wed Feb 11 23:14:31 EST 2009 x86_64 x86_64 x86_64 GNU/Linux Let me know if I can provide any additional info. Thanks, Ben -- Ben Greear <greearb@xxxxxxxxxxxxxxx> Candela Technologies Inc http://www.candelatech.com
# Found this in /var/log/messages tgtd[2665]: segfault at 90 ip 0000003185c0c231 sp 00007fff7528fab0 error 4 in libpthread-2.9.so[3185c00000+17000] # This is output from my script as it's createing things. ... Running -:tgtadm --lld iscsi --op new --mode logicalunit --tid 111 --lun 1 -b /dev/loop111:- Running -:tgtadm --lld iscsi --op bind --mode target --tid 111 -I ALL:- Running -:cp /export/iscsi/disk.100m.ext3 /export/iscsi/disk112:- Running -:losetup /dev/loop112 /export/iscsi/disk112:- Running -:tgtadm --lld iscsi --op new --mode target --tid=112 --targetname iqn.2009-02.com.lanforge:for.all.112:- Running -:tgtadm --lld iscsi --op new --mode logicalunit --tid 112 --lun 1 -b /dev/loop112:- *** buffer overflow detected ***: tgtadm terminated ======= Backtrace: ========= /lib64/libc.so.6(__fortify_fail+0x37)[0x31850ff4c7] /lib64/libc.so.6[0x31850fd370] /lib64/libc.so.6(__read_chk+0x28)[0x31850fd8a8] tgtadm[0x4010be] tgtadm[0x401f17] /lib64/libc.so.6(__libc_start_main+0xe6)[0x318501e576] tgtadm[0x400c59] ======= Memory map: ======== 00400000-00404000 r-xp 00000000 fd:00 834180 /usr/sbin/tgtadm 00603000-00605000 rw-p 00003000 fd:00 834180 /usr/sbin/tgtadm 00b05000-00b28000 rw-p 00b05000 00:00 0 [heap] 3183c00000-3183c20000 r-xp 00000000 fd:00 3760356 /lib64/ld-2.9.so 3183e1f000-3183e20000 r--p 0001f000 fd:00 3760356 /lib64/ld-2.9.so 3183e20000-3183e21000 rw-p 00020000 fd:00 3760356 /lib64/ld-2.9.so 3185000000-3185168000 r-xp 00000000 fd:00 3760461 /lib64/libc-2.9.so 3185168000-3185368000 ---p 00168000 fd:00 3760461 /lib64/libc-2.9.so 3185368000-318536c000 r--p 00168000 fd:00 3760461 /lib64/libc-2.9.so 318536c000-318536d000 rw-p 0016c000 fd:00 3760461 /lib64/libc-2.9.so 318536d000-3185372000 rw-p 318536d000 00:00 0 3192a00000-3192a16000 r-xp 00000000 fd:00 3760493 /lib64/libgcc_s-4.3.2-20081105.so.1 3192a16000-3192c16000 ---p 00016000 fd:00 3760493 /lib64/libgcc_s-4.3.2-20081105.so.1 3192c16000-3192c17000 rw-p 00016000 fd:00 3760493 /lib64/libgcc_s-4.3.2-20081105.so.1 7f1af8b10000-7f1af8b12000 rw-p 7f1af8b10000 00:00 0 7f1af8b28000-7f1af8b2a000 rw-p 7f1af8b28000 00:00 0 7fff00b14000-7fff00b29000 rw-p 7ffffffea000 00:00 0 [stack] 7fff00bfe000-7fff00bff000 r-xp 7fff00bfe000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Running -:tgtadm --lld iscsi --op bind --mode target --tid 112 -I ALL:- tgtadm: can't connect to the tgt daemon, Connection refused tgtadm: can't send the request to the tgt daemon, Transport endpoint is not connected Running -:cp /export/iscsi/disk.100m.ext3 /export/iscsi/disk113:- Running -:losetup /dev/loop113 /export/iscsi/disk113:- Running -:tgtadm --lld iscsi --op new --mode target --tid=113 --targetname iqn.2009-02.com.lanforge:for.all.113:- tgtadm: can't connect to the tgt daemon, Connection refused tgtadm: can't send the request to the tgt daemon, Transport endpoint is not connected Running -:tgtadm --lld iscsi --op new --mode logicalunit --tid 113 --lun 1 -b /dev/loop113:- tgtadm: can't connect to the tgt daemon, Connection refused tgtadm: can't send the request to the tgt daemon, Transport endpoint is not connected Running -:tgtadm --lld iscsi --op bind --mode target --tid 113 -I ALL:- tgtadm: can't connect to the tgt daemon, Connection refused tgtadm: can't send the request to the tgt daemon, Transport endpoint is not connected ............
Attachment:
create_iscsi_targets.pl
Description: Perl program