ITADN
hugsy/gef/Issues

[Bug] CI failure in tests/commands/heap.py HeapCommandBins:test_cmd_heap_bins_large

#1216Closedgordonmessmer 创建于 2026-02-24
bugtriagestale
G
gordonmessmercommented
### GEF+GDB version ```shell gef➤ version GEF: rev:96a3c85ff815da1d768cadef4ac8d5e8756c593c (Git - dirty) SHA256(/gef/gef.py): 414bfdae67f4ab500a72a8a1def2f686aaf1107fff3e3948fe496cc303c2eb1c GDB: 17.1-4.fc45 GDB-Python: 3.14 ``` ### Operating System Fedora rawhide glibc-2.43.9000-1.fc45.x86_64 ### Describe the issue you encountered Some CI tests fail on recent glibc versions. glibc 2.41 works as expected. When the "heaps bin large" command runs, GlibcHeapBinsCommand:pprint_bin prints: ``` [+] large_bins[63]: fw=0x4042e0, bk=0x4042e0 ``` However, a newer glibc system prints: ``` [+] large_bins[63]: fw=0x7ffff7fadf08, bk=0x7ffff7fadf18 ``` On this test system, the address in `fd` is 16 bytes smaller than `head`. In the while loop, `chunk = chunkClass(fd, from_base=True)` provides a chunk at `bk` and then assigns `bk.fd` to `fd`, resulting in an infinite loop. ### Do you read the docs and look at previously closed issues/PRs for similar cases? Yes ### Architecture impacted - [ ] X86 - [x] X64 - [ ] ARM - [ ] ARM64 - [ ] MIPS - [ ] MIPS64 - [ ] PPC - [ ] PPC64 - [ ] RISCV ### Describe your issue. Without a proper reproduction step-by-step, your issue will be ignored. The issue is reproduced in CI, or interactively via `gdb /tmp/heap-bins.out`, then `run` and `heap bins large` ### Minimalist test case _No response_ ### Additional context? _No response_
关闭于 2026-05-30 2 条评论