I can replicate this 100% of the time on my setup. When running iscsiadm 
commands to logout, print session info, maybe others, the iscsid processes 
hang on the semaphore in log_do_log_daemon. I've attached an example and 
some stack traces. Removing the contents of log_do_log_daemon() in 
usr/log.c fixes the problem for me, but obviously this is not a real 
solution.

I'm running 2.0-873 on a powerpc machine emulated in qemu.

Seems very similar to 
https://groups.google.com/forum/#!msg/open-iscsi/VLzDe_CxCMc/juniV1rt1SMJ

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/groups/opt_out.


~ # iscsiadm --mode session -P 3
iSCSI Transport Class version 2.0-870
version 2.0-873
Target: blah:test
        Current Portal: 192.168.1.33:3260,1
        Persistent Portal: 192.168.1.33:3260,1
                **********
                Interface:
                **********
                Iface Name: default
                Iface Transport: tcp
                Iface Initiatorname: iqn.2005-03.org.open-iscsi:9c8b5c1ee6
                Iface IPaddress: 192.168.1.18
                Iface HWaddress: <empty>
                Iface Netdev: <empty>
                SID: 1
--This is where it hangs each time--


~ # ps | grep iscsi
  389 root         0 SW<  [iscsi_eh]
 1116 root      2428 R    /usr/sbin/iscsid
 1117 root      3796 S <  /usr/sbin/iscsid
 1124 root         0 SW<  [iscsi_q_0]
 1132 root         0 Z <  [iscsid]
 1161 root      2968 S    iscsiadm --mode session -P 3
 1163 root      2516 S    grep iscsi


iscsid 1116:
(gdb) where
#0  0x1000a294 in log_dequeue (buff=<optimized out>) at log.c:239
#1  0x1000a310 in log_flush () at log.c:380
#2  0x1000ab5c in log_init (
    program_name=program_name@entry=0x10075fac "iscsid", 
    size=size@entry=16384, func=<optimized out>, priv=priv@entry=0x0)
    at log.c:456
#3  0x10001dc4 in main (argc=1, argv=0xbfbfe134) at iscsid.c:393

iscsid 1117:
(gdb) where
#0  0x0ff603a0 in semop () from /lib/libc.so.6
#1  0x1000a0d8 in log_do_log_daemon (prio=4, priv=<optimized out>, 
    fmt=0x100563c0 "Connection%d:%d to [target: %s, portal: %s,%d] through 
[iface: %s] is operational now", ap=0xbfbfda48) at log.c:270
#2  0x1000a51c in log_warning (
    fmt=fmt@entry=0x100563c0 "Connection%d:%d to [target: %s, portal: %s,%d] 
through [iface: %s] is operational now") at log.c:299
#3  0x10026208 in setup_full_feature_phase (conn=0x100b7cb8)
    at initiator.c:1041
#4  iscsi_recv_login_rsp (conn=0x100b7cb8) at initiator.c:1277
#5  session_conn_recv_pdu (data=<optimized out>) at initiator.c:1301
#6  0x10027474 in actor_poll () at actor.c:276
#7  0x100278ec in event_loop (ipc=0x10075eec, control_fd=control_fd@entry=7, 
    mgmt_ipc_fd=5) at event_poll.c:169
#8  0x1000204c in main (argc=<optimized out>, argv=<optimized out>)
    at iscsid.c:538

iscsiadm:
(gdb) where
#0  0x0ff5f584 in recv () from /lib/libc.so.6
#1  0x10020e48 in iscsid_response (fd=3, cmd=MGMT_IPC_SESSION_INFO, 
    rsp=rsp@entry=0xbf9397d8) at iscsid_req.c:121
#2  0x10020f28 in iscsid_exec_req (req=req@entry=0xbf9365c8, 
    rsp=rsp@entry=0xbf9397d8, start_iscsid=start_iscsid@entry=1)
    at iscsid_req.c:143
#3  0x1001c0c0 in print_iscsi_state (sid=1, prefix=prefix@entry=0x1004d87c "")
    at session_info.c:111
#4  0x1001c804 in session_info_print_tree (list=list@entry=0xbf93a274, 
    prefix=prefix@entry=0x1004d87c "", flags=flags@entry=127, 
    do_show=do_show@entry=0) at session_info.c:279
#5  0x1001d050 in session_info_print (info_level=info_level@entry=3, 
    info=info@entry=0x0, do_show=do_show@entry=0) at session_info.c:410
#6  0x100030b0 in main (argc=5, argv=0xbf93b8b4) at iscsiadm.c:2811

Reply via email to