From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com [IPv6:2a00:1450:4010:c07::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D4CFE20D76485 for ; Tue, 11 Apr 2017 21:59:00 -0700 (PDT) Received: by mail-lf0-x232.google.com with SMTP id h125so8287123lfe.0 for ; Tue, 11 Apr 2017 21:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=4FwbetLGVn7UoiSS6WKz6bpIKT9NaCU4/+DCWTsxDTU=; b=fOLE5g2AOWv4FaL74leIi/AHKqvBJleD+yeGpWa23mXSyu/vxDobNoFO0gMZ/Jw8AL 6krCeUZVWPOoaa/86GQB4ReRpBNWsaq5fHlExlgLiDakClHWJAt/Ivwf2veScaxoIQNZ +N6Tc3zvdClFPJr+eZBrtPik5FE/MB7gifTo2txVfK8AhqMSTh/FE4o8Pbg8krldy8zx ssdESnCdBrRwyF73HhzSUy4/yJbUMltYe897G9iznUh79EAbfgRiX/Hk7AlWkWExO9jJ rW/P1SFr/H+th2BvPbCvY+oa73zgNPKF6f+kgWoeo2gxHKSrVjgws8BEanfkUH3eaUJC D/DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4FwbetLGVn7UoiSS6WKz6bpIKT9NaCU4/+DCWTsxDTU=; b=UhXGw4NPbkMyK3oC+XjAFJSI/LalGgd1GtJvfXZBEtVd+gI02ave7ECkjVVsZhTDRa TNq3d2OXv7hu9Cty4u/OWcAdQTYxpNQo4SDA0ZDX69jE2DPFlyqatJbLfWY/NE3bzUYs Qpdd1ZpsmEZsMjIW39GtCc4AIZoUUboiCRxNXiWOj5ABfKx23Zgo9b6GK89YjZIKatc7 C8W4L0b+LfFRfFaa1Q0uInanGK7O+EfNv1EMUTbg9nDYRMpsaYSnfS9FDznii3M5FQlg /nLWKuvMfvvPYJ2F1sU0aiUFN5BdSQHS5gkHkI4yyX1HZpmq4VM6fex50Dv/FPZzNduM 0QEA== X-Gm-Message-State: AN3rC/6507R0NYZvAOc/snQuUJ9Xy7MlTpm5Lhb0zFeoi/eOwaN3W/atXkkK33Otw3Y2VAO6MIcFHIWy3ENppQ== X-Received: by 10.25.233.70 with SMTP id g67mr3523617lfh.131.1491973138216; Tue, 11 Apr 2017 21:58:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.225.17 with HTTP; Tue, 11 Apr 2017 21:58:57 -0700 (PDT) From: Arka Sharma Date: Wed, 12 Apr 2017 10:28:57 +0530 Message-ID: To: edk2-devel@lists.01.org Subject: NvmExpressDxe async application crash with UDK debugger X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2017 04:59:01 -0000 Content-Type: text/plain; charset=UTF-8 Hi, I am testing async io in NvmExpressDxe. The target system is Asrock Z97 which I have connected to host with serial port where UDK debugger is running. So my application does following 1. CreateEvent 2. Call Passthru 3. CmdSent++; 4. Repeat 1-3 until not ready from driver 5. while (CmdRecd < CmdSent); 4. Close all the events. CmdRecvd is incremented inside EventCallback. I am allocating both CmdSent and CmdRecvd and passing the address of CmdRecvd in CreateEvent. With this I face WinDbg exception quite often and it says "Target encountered an exception: Vector = 6, Error Code = 00000000". I can share the application code for more clarity. I am building with /Od and GenFw with --keepexceptiontable Regards, Arka