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

Python controller crashes with error: 'Aborted (Core Dumped)' #36990

Open
Harshith-GRL opened this issue Jan 8, 2025 · 7 comments
Open

Python controller crashes with error: 'Aborted (Core Dumped)' #36990

Harshith-GRL opened this issue Jan 8, 2025 · 7 comments
Labels

Comments

@Harshith-GRL
Copy link
Contributor

Harshith-GRL commented Jan 8, 2025

Description:
When executing the TC_Darwin_pair.py script from Stress and stability tests repo, in numerous Occasions the python controller is crashing is crashing with error
free (): double free detected in tcache 2
Aborted (core dumped)

GitHub hash of the SDK that were being used are : 1b4c56c f8d457a

Platform
I Have performed the execution on two different DUT (Raspberrypi and Nordic board), using ble-wifi and ble-thread provisioning
Controller Platform - python controller running on Raspberrypi 4B -8GB,
Nordic Board as DUT - all-cluster-app running on Nordic nrf52840-DK board
Raspberrypi as DUT - all-cluster-app running on Raspberrypi 4B -8GB
Provisioning method for Raspberrypi DUT is Ble-wifi and nordic DUT is Ble-thread

Test scenario

  1. Pair/Provision the DUT (All-cluster-app running on raspi) as per drawiin pairing flow using ble-wifi/ ble-thread.
  2. Read device information after the device is provisioned
  3. sleep for 2 secs
  4. Unpair the DUT (i.e. removing the fabric)
  5. Factory reset the DUT
  6. repeat step1 - 6 for 500 iterations
  7. Script reference: https://github.com/CHIP-Specifications/matter-qa/blob/main/src/matter_qa/scripts/reliability_scripts/TC_Darwin_Pair.py

Screenshot
This error will not appear in the python logs, Hence I am attaching a screenshot to represent how the error looks
image_2025_01_07T05_22_35_359Z

Execution Details

Git hub hash id: 1b4c56c
Iterations scheduled to run: 500
Iterations executed before crash: 132
Python Log controller for Nordic as DUT:

Nordic_as_dut_test_log_1b4c56cf5a.zip

Git hub hash id: f8d457a
Iterations scheduled to run: 500
Iterations executed before crash: 263
Python Log controller for Raspberrypi as DUT:

rpi_ble-wifi_test_log_f8d457a44.zip

Git hub hash id: f8d457a
Iterations scheduled to run: 500
Iterations executed before crash: 25
Python Log controller for Nordic as DUT:

Nordic_as_dut_test_log_f8d457a44.zip

@cecille
Copy link
Contributor

cecille commented Jan 9, 2025

do you have a backtrace from the core?

@Harshith-GRL
Copy link
Contributor Author

Harshith-GRL commented Jan 10, 2025

currently i do not have any backtrace captured.....
would you recommend any specific method or process to achieve this backtrace capture??

@bzbarsky-apple
Copy link
Contributor

Run your python under a debugger such as gdb or lldb.

@Harshith-GRL
Copy link
Contributor Author

I was able to capture the back-trace using the gdb with bt command when the code crashed

trace_back_file.txt

@Harshith-GRL
Copy link
Contributor Author

@cecille and @bzbarsky-apple I have captured the core dump using generate-core-file Git is not allowing me to upload the file any suggestions on how we could share it to you folks?

@Harshith-GRL
Copy link
Contributor Author

@bzbarsky-apple
Copy link
Contributor

Looks like a double-free in MdnsAvahi? @cecille do you know who might know about that code?

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

No branches or pull requests

4 participants