Skip to content

Conversation

@bradh352
Copy link
Collaborator

@bradh352 bradh352 commented Jul 6, 2025

Why I did it

Issue #23147 noted test case failures of the recent libyang3-py3 code test cases during compilation when using Trixie.

There is an internal Python CFFI pointer that gets invalidated in a test case due to the internal object being mutated. This test case appears to be malformed and makes incorrect assumptions.

Nothing here in particular appears to be actually related to Trixie so it isn't clear why it shows up. The feature being tested is also in a code path that is not used at all by SONiC.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Triaged underlying issue and submitted upstream PR CESNET/libyang-python#141 to fix the issue

How to verify it

Build SONiC with Trixie and observe libyang3-py3 compiles as expected.

Which release branch to backport (provide reason below if selected)

  • 202205
  • 202211
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Tested branch (Please provide the tested image version)

master as of 20250706

Description for the changelog

libyang3-py3: test crash seen in Trixie

Link to config_db schema for YANG module changes

N/A

A picture of a cute animal (not mandatory but encouraged)

Fixes #23147
Signed-off-by: Brad House [email protected]

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

There is an internal Python CFFI pointer that gets invalidated in a
test case due to the internal object being mutated.  This test case
appears to be malformed and makes incorrect assumptions.

Nothing here in particular appears to be actually related to Trixie
so it isn't clear why it shows up. The feature being tested is also
in a code path that is not used at all by SONiC.

CESNET/libyang-python#141

Signed-off-by: Brad House <[email protected]>
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bhouse-nexthop
Copy link
Collaborator

rebased to force a rebuild since there were spurious test failures

@tjchadaga
Copy link
Contributor

@lguohan - please help merge

@lguohan lguohan merged commit 48b039c into sonic-net:master Jul 16, 2025
20 checks passed
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 this pull request may close these issues.

Bug: libyang3-py3 fails to run tests on Trixie, crashing with SIGSEGV

6 participants