{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/4030","repository_url":"https://api.github.com/repos/espressif/esp-idf","labels_url":"https://api.github.com/repos/espressif/esp-idf/issues/4030/labels{/name}","comments_url":"https://api.github.com/repos/espressif/esp-idf/issues/4030/comments","events_url":"https://api.github.com/repos/espressif/esp-idf/issues/4030/events","html_url":"https://github.com/espressif/esp-idf/issues/4030","id":490334720,"node_id":"MDU6SXNzdWU0OTAzMzQ3MjA=","number":4030,"title":"Crash when vfs select is frequently invoked (IDFGH-1820)","user":{"login":"KNpTrue","id":48020036,"node_id":"MDQ6VXNlcjQ4MDIwMDM2","avatar_url":"https://avatars2.githubusercontent.com/u/48020036?v=4","gravatar_id":"","url":"https://api.github.com/users/KNpTrue","html_url":"https://github.com/KNpTrue","followers_url":"https://api.github.com/users/KNpTrue/followers","following_url":"https://api.github.com/users/KNpTrue/following{/other_user}","gists_url":"https://api.github.com/users/KNpTrue/gists{/gist_id}","starred_url":"https://api.github.com/users/KNpTrue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KNpTrue/subscriptions","organizations_url":"https://api.github.com/users/KNpTrue/orgs","repos_url":"https://api.github.com/users/KNpTrue/repos","events_url":"https://api.github.com/users/KNpTrue/events{/privacy}","received_events_url":"https://api.github.com/users/KNpTrue/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"dobairoland","id":3954250,"node_id":"MDQ6VXNlcjM5NTQyNTA=","avatar_url":"https://avatars3.githubusercontent.com/u/3954250?v=4","gravatar_id":"","url":"https://api.github.com/users/dobairoland","html_url":"https://github.com/dobairoland","followers_url":"https://api.github.com/users/dobairoland/followers","following_url":"https://api.github.com/users/dobairoland/following{/other_user}","gists_url":"https://api.github.com/users/dobairoland/gists{/gist_id}","starred_url":"https://api.github.com/users/dobairoland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dobairoland/subscriptions","organizations_url":"https://api.github.com/users/dobairoland/orgs","repos_url":"https://api.github.com/users/dobairoland/repos","events_url":"https://api.github.com/users/dobairoland/events{/privacy}","received_events_url":"https://api.github.com/users/dobairoland/received_events","type":"User","site_admin":false},"assignees":[{"login":"dobairoland","id":3954250,"node_id":"MDQ6VXNlcjM5NTQyNTA=","avatar_url":"https://avatars3.githubusercontent.com/u/3954250?v=4","gravatar_id":"","url":"https://api.github.com/users/dobairoland","html_url":"https://github.com/dobairoland","followers_url":"https://api.github.com/users/dobairoland/followers","following_url":"https://api.github.com/users/dobairoland/following{/other_user}","gists_url":"https://api.github.com/users/dobairoland/gists{/gist_id}","starred_url":"https://api.github.com/users/dobairoland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dobairoland/subscriptions","organizations_url":"https://api.github.com/users/dobairoland/orgs","repos_url":"https://api.github.com/users/dobairoland/repos","events_url":"https://api.github.com/users/dobairoland/events{/privacy}","received_events_url":"https://api.github.com/users/dobairoland/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2019-09-06T13:41:48Z","updated_at":"2019-09-10T05:12:48Z","closed_at":"2019-09-10T05:12:03Z","author_association":"NONE","body":"## Environment\r\n\r\n- Development Kit:     ESP32-DevKitC\r\n- Kit version (for DevKitC): v4\r\n- Module or chip used:  ESP32-WROOM-32D\r\n- IDF version: v4.1-dev-141-ga7e8d87d3\r\n- Build System:         Make\r\n- Compiler version:  esp32-2019r1\r\n- Operating System:     macOS\r\n- Power Supply:         USB\r\n\r\n## Crash when vfs select is frequently invoked\r\n\r\n\r\n\r\n### Expected Behavior\r\nRunning normally.\r\n### Actual Behavior\r\nCrash. Log reference below. Every time it print a different log.\r\n### Steps to repropduce\r\n\r\nRunning the test example, then it crash.\r\n\r\n### Code to reproduce this issue\r\nTest example in https://github.com/KNpTrue/select_err_example, it copy from esp-idf select example but remove the print log and cancel delay. We should frequently wake up select to allow problems to occur.\r\n\r\n## Debug Logs\r\n\r\n```\r\n/Users/zebin/Documents/esp/esp-idf/components/freertos/queue.c:1305 (xQueueGiveFromISR)- assert failed!\r\nabort() was called at PC 0x40088792 on core 1\r\n0x40088792: ppCalTxAMPDULength at ??:?\r\n\r\n\r\nELF file SHA256: a0386d652b0d2d5ae49285b3b6af61d2ed2c4a4b7b5cee875867e48eef6a0105\r\n\r\nBacktrace: 0x40085a11:0x3ffb0b90 0x40085d89:0x3ffb0bb0 0x40088792:0x3ffb0bd0 0x400e24f9:0x3ffb0bf0 0x400e2829:0x3ffb0c20 0x400e4779:0x3ffb0c40 0x40082119:0x3ffb0c90 0x4000bfed:0x3ffbb1a0 |<-CORRUPTED\r\n0x40085a11: ram_read_sar_dout at /home/aiqin/git_tree/chip7.1_phy/chip_7.1/board_code/app_test/pp/phy/phy_chip_v7_cal.c:265\r\n\r\n0x40085d89: set_chan_dig_gain at /home/aiqin/git_tree/chip7.1_phy/chip_7.1/board_code/app_test/pp/phy/phy_chip_v7_cal.c:1900\r\n\r\n0x40088792: ppCalTxAMPDULength at ??:?\r\n\r\n0x400e24f9: _svfiprintf_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:1603\r\n\r\n0x400e2829: _svfiprintf_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:1695 (discriminator 11)\r\n\r\n0x400e4779: select_notif_callback_isr at /Users/zebin/Documents/esp/esp-idf/components/vfs/vfs_uart.c:392\r\n\r\n0x40082119: _xt_coproc_exc at /Users/zebin/Documents/esp/esp-idf/components/freertos/xtensa_vectors.S:1090\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/comments/529772744","html_url":"https://github.com/espressif/esp-idf/issues/4030#issuecomment-529772744","issue_url":"https://api.github.com/repos/espressif/esp-idf/issues/4030","id":529772744,"node_id":"MDEyOklzc3VlQ29tbWVudDUyOTc3Mjc0NA==","user":{"login":"KNpTrue","id":48020036,"node_id":"MDQ6VXNlcjQ4MDIwMDM2","avatar_url":"https://avatars2.githubusercontent.com/u/48020036?v=4","gravatar_id":"","url":"https://api.github.com/users/KNpTrue","html_url":"https://github.com/KNpTrue","followers_url":"https://api.github.com/users/KNpTrue/followers","following_url":"https://api.github.com/users/KNpTrue/following{/other_user}","gists_url":"https://api.github.com/users/KNpTrue/gists{/gist_id}","starred_url":"https://api.github.com/users/KNpTrue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KNpTrue/subscriptions","organizations_url":"https://api.github.com/users/KNpTrue/orgs","repos_url":"https://api.github.com/users/KNpTrue/repos","events_url":"https://api.github.com/users/KNpTrue/events{/privacy}","received_events_url":"https://api.github.com/users/KNpTrue/received_events","type":"User","site_admin":false},"created_at":"2019-09-10T05:12:48Z","updated_at":"2019-09-10T05:12:48Z","author_association":"NONE","body":"Ok, I will open a new issue."}}
{"actor":{"display_login":"KNpTrue"}}