From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) by mx.groups.io with SMTP id smtpd.web11.12415.1657649167433382164 for ; Tue, 12 Jul 2022 11:06:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=n7uBX4fA; spf=pass (domain: gmail.com, ip: 209.85.219.169, mailfrom: xzavierpower@gmail.com) Received: by mail-yb1-f169.google.com with SMTP id e69so15306081ybh.2 for ; Tue, 12 Jul 2022 11:06:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=DRf7hPv3oZWGgSy76RfTfBskZGF8XJ5NOPSHhiBddno=; b=n7uBX4fAjibmUz8s+y15a4LNJnkvs1n59gnaXcBSbdBqo2LcDNz6z+8oNnFOEtmveO /OZFtjNlGFkCwE0ocZrJqcznaRxigyCIflrKm7mgtF7u16hhE1YqdSVRUk+5wprbO3HH k3ng7u0u/ah/43WmCEW3vaRyUAciyGVtedId3Drvq+UHVdWsn/OQuzumshGX8/RQyVm6 dNLchJ2thKmfNt+Tz2Ri+AzwfLBe04LaJCpncLIyBm8KKBiWEsFicevTl9poq6fkVA6T ph0C60eKI258Sz3/FShGdi/MwcKA2PPinVnjHOqNF9wcISt2L788xz9A+XP025qcOiN0 0+dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=DRf7hPv3oZWGgSy76RfTfBskZGF8XJ5NOPSHhiBddno=; b=MtYhoJ65igMJMKYn23qZiRF0njtPs8l+kzD6OxgRNvzCBJnj7ijLRMsvFtu0vKRaNK zVhbV9U//uxvMcUzuIgdQXGQ+euSC44X5UTodjL8UAA740rDxUz8pYfnj4WftnsLBwdn OPRUdPheLr4mK3oC/i1yYUcjMTVtJfXpRH8g1UBBMnJTX3utqlOKN/G8BVq+CbNNbRwy MZ1QaFu8dgSRqeT2qrWVOe5/m7Vf1fzMeK0GASPwkssS/b8lLahQ8N3/c1Na4qpKFuOX M9mzPgW4cGOa6RwWWm2g32VEwAht0SrHlX1OoLkTjjyV2Hh8GdQjWv2Qp0949T9sAipC m8KA== X-Gm-Message-State: AJIora9PHaIC2QW5Yw8DzdM6f6mfNy4ZEEBGPh/Qps34dPh8rlYBAeer pYoTrxMETmc97TJGlPRly29/yVI5rjkH/8k4IjNg/DcamwQ= X-Google-Smtp-Source: AGRyM1vN6q/E4yKg3qql9uRdl8wef+jsaqHND94cy78E3pgESJMRYmsWjaurhApHYXJScm4a/Z+JFahzdNInddZWPCo= X-Received: by 2002:a25:343:0:b0:66e:ddb2:c5bb with SMTP id 64-20020a250343000000b0066eddb2c5bbmr20287440ybd.580.1657649166460; Tue, 12 Jul 2022 11:06:06 -0700 (PDT) MIME-Version: 1.0 From: "M.T." Date: Tue, 12 Jul 2022 14:05:55 -0400 Message-ID: Subject: Shell App hangs on exit To: edk2-devel-groups-io Content-Type: multipart/alternative; boundary="000000000000baac7e05e39f8537" --000000000000baac7e05e39f8537 Content-Type: text/plain; charset="UTF-8" Hello folks I'm facing a bit of a weird issue here. I'm working on a UEFI shell app, which, for some reason, hangs on exit, and by that I mean when I'm returning the final status from ShellAppMain. ie: INTN EFIAPI ShellAppMain( IN UINTN Argc, IN CHAR16 **Argv) { EFI_STATUS status; ... return status; } Looking through other examples, all other shell apps do exactly the same thing, yet mine hangs every time without fail. I suspect it might have something to do with memory that was not freed, but that is just a suspicion for now as I had it exiting properly not that long ago. Question here is, how can I figure out what is going on? Are there any code analysis tools I could try? Normally I would use something like valgrind, but I am not sure anything like it exists for UEFI shell. Appreciate any help. Thank you xp --000000000000baac7e05e39f8537 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello folks

I'm facing a bit of a w= eird issue here.
I'm working on a UEFI shell app, which, for = some reason, hangs on exit, and by that I mean when I'm returning the f= inal status from ShellAppMain.
ie:=C2=A0
INTN EFIAPI Sh= ellAppMain( IN UINTN Argc, IN CHAR16 **Argv)
{
EFI_STAT= US status;
...
return status;
}
Looking through=C2=A0other examples, all other shell apps do ex= actly the same thing, yet mine hangs every time without fail.
I suspect it might have something to do with memory that was no= t freed, but that is just a suspicion for now as I had it exiting properly = not that long ago.

Question here is, how can I fig= ure out what is going on?
Are there any code analysis tools I cou= ld try?
Normally I would use something like valgrind, but I am no= t sure anything=C2=A0like it exists for UEFI shell.

Appreciate any help.
Thank you
xp
--000000000000baac7e05e39f8537--