[stgt] tgtd crash when adding more than ~20 targets (and a way to reproduce)

Tomasz Chmielewski mangoo at wpkg.org
Thu Sep 25 16:24:15 CEST 2008


tgtd will crash with more than ~20 targets.

To reproduce, start this bash script:

#!/bin/bash

i=1

while [ $i -ne 1024 ] ; do
    echo tgtadm --lld iscsi --op new --mode target --tid 1$i -T iqn.2007-02.com.example:test.break$i
    tgtadm --lld iscsi --op new --mode target --tid 1$i -T iqn.2007-02.com.example:test.break$i
    echo tgtadm --lld iscsi --op new --mode logicalunit --tid 1$i --lun 1 -b /dev/sda
    tgtadm --lld iscsi --op new --mode logicalunit --tid 1$i --lun 1 -b /dev/sda
    [ $? -ne 0 ] && exit
    i=$((i+1))
done



-- 
Tomasz Chmielewski
http://wpkg.org
--
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