{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/2343","repository_url":"https://api.github.com/repos/espressif/esp-idf","labels_url":"https://api.github.com/repos/espressif/esp-idf/issues/2343/labels{/name}","comments_url":"https://api.github.com/repos/espressif/esp-idf/issues/2343/comments","events_url":"https://api.github.com/repos/espressif/esp-idf/issues/2343/events","html_url":"https://github.com/espressif/esp-idf/issues/2343","id":354850843,"node_id":"MDU6SXNzdWUzNTQ4NTA4NDM=","number":2343,"title":"[TW#25965] xtensa-esp32-elf-gdb crash","user":{"login":"v1993","id":16255906,"node_id":"MDQ6VXNlcjE2MjU1OTA2","avatar_url":"https://avatars1.githubusercontent.com/u/16255906?v=4","gravatar_id":"","url":"https://api.github.com/users/v1993","html_url":"https://github.com/v1993","followers_url":"https://api.github.com/users/v1993/followers","following_url":"https://api.github.com/users/v1993/following{/other_user}","gists_url":"https://api.github.com/users/v1993/gists{/gist_id}","starred_url":"https://api.github.com/users/v1993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v1993/subscriptions","organizations_url":"https://api.github.com/users/v1993/orgs","repos_url":"https://api.github.com/users/v1993/repos","events_url":"https://api.github.com/users/v1993/events{/privacy}","received_events_url":"https://api.github.com/users/v1993/received_events","type":"User","site_admin":false},"labels":[{"id":505197412,"node_id":"MDU6TGFiZWw1MDUxOTc0MTI=","url":"https://api.github.com/repos/espressif/esp-idf/labels/in%20progress","name":"in progress","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-08-28T18:30:23Z","updated_at":"2018-09-09T15:12:58Z","closed_at":null,"author_association":"NONE","body":"## Environment\r\n\r\n- Development Kit:      noname\r\n- Core (if using chip or module): ESP-WROOM-32\r\n- IDF version (``git rev-parse --short HEAD`` to get the commit id.): 30545f4c\r\n- Development Env:\t\tEclipse\r\n- Operating System:\t\tUbuntu\r\n- Power Supply:         USB (5v via JTAG)\r\n\r\n## Problem Description\r\n\r\nDebugger crashes when I try to debug my problem.\r\n\r\n### Expected Behavior\r\nDebug my program.\r\n\r\n### Actual Behavior\r\nCrash with error message.\r\n\r\n### Steps to repropduce\r\n\r\nIt is pretty complicated in my case…\r\n\r\n## Debug Logs\r\n\r\n```\r\nGNU gdb (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a) 7.10\r\nCopyright (C) 2015 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\r\nand \"show warranty\" for details.\r\nThis GDB was configured as \"--host=x86_64-build_pc-linux-gnu --target=xtensa-esp32-elf\".\r\nType \"show configuration\" for configuration details.\r\nFor bug reporting instructions, please see:\r\n<http://www.gnu.org/software/gdb/bugs/>.\r\nFind the GDB manual and other documentation resources online at:\r\n<http://www.gnu.org/software/gdb/documentation/>.\r\nFor help, type \"help\".\r\nType \"apropos word\" to search for commands related to \"word\".\r\n\r\n\r\n[New Remote target]\r\n\r\n[New Thread 1073451264]\r\n[New Thread 1073449364]\r\n[New Thread 1073453920]\r\n[New Thread 1073437004]\r\n[New Thread 1073412744]\r\n[New Thread 1073435616]\r\n[New Thread 1073438136]\r\n[Switching to Thread 1073447248]\r\n\r\nTemporary breakpoint 5, app_main () at /home/v/compile/esp32-sound-vorbis-test/main/main.cpp:73\r\n73\textern \"C\" void app_main(void) {\r\n\r\n[New Thread 1073555376]\r\n[Switching to Thread 1073555376]\r\n\r\nBreakpoint 1, SoundVorbis::SoundProviderVorbis::task_code (this=0x3ffbdf80) at /home/v/compile/esp32-sound-vorbis-test/components/esp32-sound-vorbis/soundProviderVorbis.cpp:133\r\n133\t\t\tstd::unique_lock<std::mutex> heapLock(heapUsed);\r\n[Switching to Thread 1073412744]\r\n\r\nBreakpoint 2, Sound::SoundMixer::soundCallback (this=0x3ffba148) at /home/v/compile/esp32-sound-vorbis-test/components/esp32-sound/soundMixer.cpp:170\r\n170\t\t\t\t\t\t\t\tif (sound->repeat) {\r\n[Switching to Thread 1073555376]\r\n\r\nBreakpoint 1, SoundVorbis::SoundProviderVorbis::task_code (this=0x3ffbdf80) at /home/v/compile/esp32-sound-vorbis-test/components/esp32-sound-vorbis/soundProviderVorbis.cpp:133\r\n133\t\t\tstd::unique_lock<std::mutex> heapLock(heapUsed);\r\n[Switching to Thread 1073412744]\r\n\r\nBreakpoint 2, Sound::SoundMixer::soundCallback (this=0x3ffba148) at /home/v/compile/esp32-sound-vorbis-test/components/esp32-sound/soundMixer.cpp:170\r\n170\t\t\t\t\t\t\t\tif (sound->repeat) {\r\n[Switching to Thread 1073555376]\r\n\r\nBreakpoint 1, SoundVorbis::SoundProviderVorbis::task_code (this=0x3ffbdf80) at /home/v/compile/esp32-sound-vorbis-test/components/esp32-sound-vorbis/soundProviderVorbis.cpp:133\r\n133\t\t\tstd::unique_lock<std::mutex> heapLock(heapUsed);\r\n[Switching to Thread 1073412744]\r\n\r\nBreakpoint 2, Sound::SoundMixer::soundCallback (this=0x3ffba148) at /home/v/compile/esp32-sound-vorbis-test/components/esp32-sound/soundMixer.cpp:170\r\n170\t\t\t\t\t\t\t\tif (sound->repeat) {\r\n[Switching to Thread 1073555376]\r\n\r\nBreakpoint 1, SoundVorbis::SoundProviderVorbis::task_code (this=0x3ffbdf80) at /home/v/compile/esp32-sound-vorbis-test/components/esp32-sound-vorbis/soundProviderVorbis.cpp:133\r\n133\t\t\tstd::unique_lock<std::mutex> heapLock(heapUsed);\r\n[Switching to Thread 1073412744]\r\n\r\nBreakpoint 2, Sound::SoundMixer::soundCallback (this=0x3ffba148) at /home/v/compile/esp32-sound-vorbis-test/components/esp32-sound/soundMixer.cpp:170\r\n170\t\t\t\t\t\t\t\tif (sound->repeat) {\r\n/builds/idf/crosstool-NG/.build/src/gdb-7.10/gdb/inline-frame.c:171: internal-error: inline_frame_this_id: Assertion `!frame_id_eq (*this_id, outer_frame_id)' failed.\r\nA problem internal to GDB has been detected,\r\nfurther debugging may prove unreliable.\r\nQuit this debugging session? (y or n) [answered Y; input not from terminal]\r\n\r\nThis is a bug, please report it.  For instructions, see:\r\n<http://www.gnu.org/software/gdb/bugs/>.\r\n\r\n/builds/idf/crosstool-NG/.build/src/gdb-7.10/gdb/inline-frame.c:171: internal-error: inline_frame_this_id: Assertion `!frame_id_eq (*this_id, outer_frame_id)' failed.\r\nA problem internal to GDB has been detected,\r\nfurther debugging may prove unreliable.\r\nCreate a core file of GDB? (y or n) [answered Y; input not from terminal]\r\n```\r\n\r\n## Other items if possible\r\n\r\nNone.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/comments/419722606","html_url":"https://github.com/espressif/esp-idf/issues/2343#issuecomment-419722606","issue_url":"https://api.github.com/repos/espressif/esp-idf/issues/2343","id":419722606,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTcyMjYwNg==","user":{"login":"v1993","id":16255906,"node_id":"MDQ6VXNlcjE2MjU1OTA2","avatar_url":"https://avatars1.githubusercontent.com/u/16255906?v=4","gravatar_id":"","url":"https://api.github.com/users/v1993","html_url":"https://github.com/v1993","followers_url":"https://api.github.com/users/v1993/followers","following_url":"https://api.github.com/users/v1993/following{/other_user}","gists_url":"https://api.github.com/users/v1993/gists{/gist_id}","starred_url":"https://api.github.com/users/v1993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v1993/subscriptions","organizations_url":"https://api.github.com/users/v1993/orgs","repos_url":"https://api.github.com/users/v1993/repos","events_url":"https://api.github.com/users/v1993/events{/privacy}","received_events_url":"https://api.github.com/users/v1993/received_events","type":"User","site_admin":false},"created_at":"2018-09-09T15:12:58Z","updated_at":"2018-09-09T15:12:58Z","author_association":"NONE","body":"@iggr task code can be found here: https://github.com/v1993/esp32-sound-vorbis/blob/master/soundProviderVorbis.cpp\n\nAnd `xTaskCreate` can be found here: https://github.com/v1993/esp32-sound/blob/dev/soundProviderTask.cpp"}}
{"actor":{"display_login":"v1993"}}