{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/openocd-esp32/issues/27","repository_url":"https://api.github.com/repos/espressif/openocd-esp32","labels_url":"https://api.github.com/repos/espressif/openocd-esp32/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/espressif/openocd-esp32/issues/27/comments","events_url":"https://api.github.com/repos/espressif/openocd-esp32/issues/27/events","html_url":"https://github.com/espressif/openocd-esp32/issues/27","id":290361618,"number":27,"title":"[TW#18940] Debug fails / stops in taskENTER_CRITICAL / queue.c","user":{"login":"nkolban","id":3421732,"avatar_url":"https://avatars0.githubusercontent.com/u/3421732?v=4","gravatar_id":"","url":"https://api.github.com/users/nkolban","html_url":"https://github.com/nkolban","followers_url":"https://api.github.com/users/nkolban/followers","following_url":"https://api.github.com/users/nkolban/following{/other_user}","gists_url":"https://api.github.com/users/nkolban/gists{/gist_id}","starred_url":"https://api.github.com/users/nkolban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkolban/subscriptions","organizations_url":"https://api.github.com/users/nkolban/orgs","repos_url":"https://api.github.com/users/nkolban/repos","events_url":"https://api.github.com/users/nkolban/events{/privacy}","received_events_url":"https://api.github.com/users/nkolban/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":32,"created_at":"2018-01-22T06:19:25Z","updated_at":"2018-04-18T13:39:59Z","closed_at":"2018-04-18T12:47:19Z","author_association":"NONE","body":"I am running a WROVER DevKit with the latest ESP-IDF master as of this date.   When I run gdb against my ESP32, all works as desired ... for a period of time.   As I step through the statements using `n` I am presented with the next statement as desired.  However, after stepping over a varying number of statements, when I next execute `n` I do NOT wake up at the next statement, instead I wake up here:\r\n\r\n```\r\n108\t\tESP_LOGD(LOG_TAG, \"Setting up callbacks for logging\");\r\n(gdb) n\r\nTarget halted. PRO_CPU: PC=0x4008256C (active)    APP_CPU: PC=0xF8001080 \r\nTarget halted. PRO_CPU: PC=0x4008774D (active)    APP_CPU: PC=0xF8001080 \r\nTarget halted. PRO_CPU: PC=0x4008774F (active)    APP_CPU: PC=0xF8001080 \r\nTarget halted. PRO_CPU: PC=0x40087752 (active)    APP_CPU: PC=0xF8001080 \r\nTarget halted. PRO_CPU: PC=0x40087755 (active)    APP_CPU: PC=0xF8001080 \r\nTarget halted. PRO_CPU: PC=0x40087758 (active)    APP_CPU: PC=0xF8001080 \r\nTarget halted. PRO_CPU: PC=0x4008775A (active)    APP_CPU: PC=0xF8001080 \r\nTarget halted. PRO_CPU: PC=0x4008775C (active)    APP_CPU: PC=0xF8001080 \r\nTarget halted. PRO_CPU: PC=0x40083E63 (active)    APP_CPU: PC=0xF8001080 \r\n\r\nProgram received signal SIGTRAP, Trace/breakpoint trap.\r\n[Switching to Thread 1073412716]\r\nxQueueGenericReceive (xQueue=0x3ffaea14, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0)\r\n    at /home/kolban/particle/Phase2/esp-idf/components/freertos/./queue.c:1455\r\n1455\t\t\ttaskENTER_CRITICAL(&pxQueue->mux);\r\n(gdb) q\r\n```\r\n\r\nThis log shows that at line `108` of my source code, I executed `n` and then wake up at line `1455` of `freertos/queue.c:1455`.  I can not continue from here.\r\n\r\nI can recreate this using either command line `xtensa-esp32-elf-gdb` or Eclipse debugging.\r\n\r\nMy `gdbinit` looks as follows:\r\n\r\n```\r\nset remotelogfile gdb_log.txt\r\ntarget remote :3333\r\nmon reset halt\r\nthb app_main\r\nx $a1=0\r\nc\r\n```\r\n\r\nI can recreate at will using a variety of distinct applications.  My platform is Ubuntu 17.10 running under Oracle Virtual Box. \r\n\r\nI am attaching both:\r\n\r\n* `gdb_log.txt`\r\n* `openocd.log`\r\n\r\nas requested in the reporting information.  I am available to demonstrate live or provide additional documentation on request.\r\n\r\n[bug.zip](https://github.com/espressif/openocd-esp32/files/1650933/bug.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/espressif/openocd-esp32/issues/comments/382389793","html_url":"https://github.com/espressif/openocd-esp32/issues/27#issuecomment-382389793","issue_url":"https://api.github.com/repos/espressif/openocd-esp32/issues/27","id":382389793,"user":{"login":"igrr","id":4349050,"avatar_url":"https://avatars2.githubusercontent.com/u/4349050?v=4","gravatar_id":"","url":"https://api.github.com/users/igrr","html_url":"https://github.com/igrr","followers_url":"https://api.github.com/users/igrr/followers","following_url":"https://api.github.com/users/igrr/following{/other_user}","gists_url":"https://api.github.com/users/igrr/gists{/gist_id}","starred_url":"https://api.github.com/users/igrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igrr/subscriptions","organizations_url":"https://api.github.com/users/igrr/orgs","repos_url":"https://api.github.com/users/igrr/repos","events_url":"https://api.github.com/users/igrr/events{/privacy}","received_events_url":"https://api.github.com/users/igrr/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T13:39:59Z","updated_at":"2018-04-18T13:39:59Z","author_association":"OWNER","body":"https://github.com/espressif/openocd-esp32/releases"}}
{"actor":{"display_login":"igrr"}}