Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux lighting app crash #6643

Closed
cjandhyala opened this issue May 10, 2021 · 0 comments · Fixed by #6666
Closed

linux lighting app crash #6643

cjandhyala opened this issue May 10, 2021 · 0 comments · Fixed by #6666

Comments

@cjandhyala
Copy link
Contributor

With ToT (commit a80db86 ), launching linux lighting app crash

Starting program: /home/ubuntu/chipCode/chip_0422/connectedhomeip/examples/lighting-app/linux/out/host/chip-lighting-app
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
[New Thread 0xfffff6ed6fc0 (LWP 3791)]
[New Thread 0xfffff66d5fc0 (LWP 3792)]
[New Thread 0xfffff5ed4fc0 (LWP 3793)]
[New Thread 0xfffff56d3fc0 (LWP 3794)]
CHIP:DL: Device Configuration:
CHIP:DL: Serial Number: TEST_SN
CHIP:DL: Vendor Id: 9050 (0x235A)
CHIP:DL: Product Id: 65279 (0xFEFF)
CHIP:DL: Product Revision: 1
CHIP:DL: Setup Pin Code: 20202021
CHIP:DL: Setup Discriminator: 3840 (0xF00)
CHIP:DL: Manufacturing Date: (not set)
CHIP:DL: Device Type: 257 (0x101)
CHIP:SVR: SetupQRCode: [CH:YNJV793700A50324800]
CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code:
CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=CH%3AYNJV793700A50324800
CHIP:SVR: Manual pairing code: [34970112332]
CHIP:ZCL: Using ZAP configuration...
CHIP:ZCL: deactivate report event
CHIP:ZCL: Unknown cluster ID: 40
CHIP:ZCL: Unknown cluster ID: 40
CHIP:ZCL: Unknown cluster ID: 40
CHIP:ZCL: Unknown cluster ID: 40
CHIP:ZCL: Unknown cluster ID: 40
CHIP:ZCL: Unknown cluster ID: 40
CHIP:ZCL: Unknown cluster ID: 40
CHIP:ZCL: Unknown cluster ID: 40
CHIP:ZCL: Unknown cluster ID: 40
CHIP:DIS: Init admin pairing table with server storage.
CHIP:IN: TransportMgr initialized
CHIP:IN: local node id is 0x0000000000bc5c01
CHIP:DL: wpa_supplicant: _IsWiFiStationProvisioned: interface not connected
CHIP:BLE: Assigned local session key ID 0
CHIP:BLE: Waiting for PBKDF param request
CHIP:DIS: Start dns-sd server
CHIP:DL: MDNS failed to join multicast group on wlan0 for address type IPv4: Inet Error 1016 (0x000003F8): Address not found
CHIP:DIS: CHIP minimal mDNS started advertising.
CHIP:DIS: Replying to DNS-SD service listing request
CHIP:DIS: Replying to DNS-SD service listing request
CHIP:DIS: Replying to DNS-SD service listing request
CHIP:DIS: Replying to DNS-SD service listing request
CHIP:DIS: Replying to DNS-SD service listing request
CHIP:DIS: Replying to DNS-SD service listing request
CHIP:DIS: Replying to DNS-SD service listing request

Thread 1 "chip-lighting-a" received signal SIGSEGV, Segmentation fault.
0x0000fffff7801990 in std::__cxx11::basic_string<char, std::char_traits, std::allocator >::size() const () from /lib/aarch64-linux-gnu/libstdc++.so.6
(gdb) bt
#0 0x0000fffff7801990 in std::__cxx11::basic_string<char, std::char_traits, std::allocator >::size() const () at /lib/aarch64-linux-gnu/libstdc++.so.6
#1 0x0000aaaaaaafcbe8 in std::operator+<char, std::char_traits, std::allocator >(char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)
(__lhs=0xaaaaaab65280 "io.openthread.BorderRouter.", __rhs=<error reading variable: Cannot access memory at address 0x8>) at /usr/include/c++/10/bits/basic_string.tcc:1172
#2 0x0000aaaaaaafc8d4 in otbr::DBus::ThreadApiDBus::GetProperty(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned long&)
(this=0x0, aPropertyName="ExtendedAddress", aValue=@0xffffffffe988: 187649984683616) at ../../third_party/connectedhomeip/third_party/ot-br-posix/repo/src/dbus/client/thread_api_dbus.cpp:682
#3 0x0000aaaaaaafb884 in otbr::DBus::ThreadApiDBus::GetExtendedAddress(unsigned long&) (this=0x0, aExtendedAddress=@0xffffffffe988: 187649984683616)
at ../../third_party/connectedhomeip/third_party/ot-br-posix/repo/src/dbus/client/thread_api_dbus.cpp:479
#4 0x0000aaaaaaaf2704 in chip::DeviceLayer::ThreadStackManagerImpl::_GetPrimary802154MACAddress(unsigned char*) (this=0xaaaaaab89968 chip::DeviceLayer::ThreadStackManagerImpl::sInstance, buf=0xffffffffed48 "")
at ../../third_party/connectedhomeip/src/platform/Linux/ThreadStackManagerImpl.cpp:387
#5 0x0000aaaaaaadde44 in chip::DeviceLayer::ThreadStackManager::GetPrimary802154MACAddress(unsigned char*) (this=0xaaaaaab89968 chip::DeviceLayer::ThreadStackManagerImpl::sInstance, buf=0xffffffffed48 "")
at ../../third_party/connectedhomeip/src/include/platform/ThreadStackManager.h:326
#6 0x0000aaaaaab46708 in chip::app::Mdns::(anonymous namespace)::FillMAC(uint8_t (&) [8]) (mac=...) at ../../third_party/connectedhomeip/src/app/server/Mdns.cpp:68
#7 0x0000aaaaaab46c84 in chip::app::Mdns::Advertise(bool) (commissionableNode=true) at ../../third_party/connectedhomeip/src/app/server/Mdns.cpp:147
#8 0x0000aaaaaab46adc in chip::app::Mdns::AdvertiseCommissionableNode() () at ../../third_party/connectedhomeip/src/app/server/Mdns.cpp:127
#9 0x0000aaaaaab47180 in chip::app::Mdns::StartServer() () at ../../third_party/connectedhomeip/src/app/server/Mdns.cpp:264
#10 0x0000aaaaaab44020 in InitServer(AppDelegate*) (delegate=0x0) at ../../third_party/connectedhomeip/src/app/server/Server.cpp:553
#11 0x0000aaaaaaad13d0 in ChipLinuxAppMainLoop() () at ../../third_party/connectedhomeip/examples/platform/linux/AppMain.cpp:114
#12 0x0000aaaaaaac29a4 in main(int, char**) (argc=1, argv=0xfffffffff068) at ../../main.cpp:93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant