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

Zoltan: erroneous behavior in PHG when not using local IDs #12729

Open
lkotipal opened this issue Feb 9, 2024 · 0 comments
Open

Zoltan: erroneous behavior in PHG when not using local IDs #12729

lkotipal opened this issue Feb 9, 2024 · 0 comments
Assignees
Labels
pkg: Zoltan type: bug The primary issue is a bug in Trilinos code or tests

Comments

@lkotipal
Copy link
Contributor

lkotipal commented Feb 9, 2024

Bug Report

@egboman

Description

As per the documentation, local IDs are optional and not used by the library. However, PHG hypergraph partitioning crashes on this line when not using local IDs, apparently assuming bad allocation and failing to consider that ZOLTAN_MALLOC_LID_ARRAY returns NULL if Num_LID is zero.

Steps to Reproduce

  1. Compile Zoltan, the bug seems to be present on both master and dev branches.
  2. Run the C example simplePHG with NUM_LID_ENTRIES set to 0 on line 168.
  3. Enjoy the memory error.
@lkotipal lkotipal added the type: bug The primary issue is a bug in Trilinos code or tests label Feb 9, 2024
@egboman egboman self-assigned this Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: Zoltan type: bug The primary issue is a bug in Trilinos code or tests
Projects
None yet
Development

No branches or pull requests

2 participants