Skip to content

BSL execution crash - invalid block_num in GetBlockMetadata #1

@iondev33

Description

@iondev33

BSL crashes when attempting to apply security operations (BIB/BCB) after successfully querying policies and matching bundle EIDs. The crash occurs in BSL_BundleCtx_GetBlockMetadata() which receives an invalid block_num value (≤0).

Error Location

  • src/common/HostInterface.c:76 - Assertion fails: (block_num > 0)
  • src/default_sc/BIB_HMAC_SHA2.c:474 - Calls GetBlockMetadata() and fails
  • Crash: bptrace aborts with core dump

What Works

Pattern matching (ION EID parsing fixed)
Policy queries and rule matching
BSL initialization

What Fails

Security block creation
Block metadata retrieval
Bundle transmission with security operations

Investigation Areas

  1. Bundle context initialization from ION structures
  2. Security block numbering (should be ≥1, not 0)
  3. ION-BSL interface mapping for extension blocks
  4. Block creation sequencing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions