FS#67775 - [pwndbg] cant investigate the heap

Attached to Project: Community Packages
Opened by test (sl473r) - Sunday, 30 August 2020, 19:48 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 03 May 2023, 04:32 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Hello dear team!
I have just installed pwndbg from Arch Linux repo and I have problems with inspecting the heap:
```
/usr/include/netinet/if_fddi.h
In file included from /tmp/pwndbg/x86-64_struct-malloc_state.cc:3:
/usr/include/seccomp-syscalls.h:23:2: error: #error "do not include seccomp-syscalls.h directly, use seccomp.h instead"
23 | #error "do not include seccomp-syscalls.h directly, use seccomp.h instead"
| ^~~~~
In file included from /tmp/pwndbg/x86-64_struct-malloc_state.cc:18:
/usr/include/pcre2.h:969:2: error: #error PCRE2_CODE_UNIT_WIDTH must be defined before including pcre2.h.
969 | #error PCRE2_CODE_UNIT_WIDTH must be defined before including pcre2.h.
| ^~~~~
/usr/include/pcre2.h:970:2: error: #error Use 8, 16, or 32; or 0 for a multi-width application.
970 | #error Use 8, 16, or 32; or 0 for a multi-width application.
| ^~~~~
In file included from /tmp/pwndbg/x86-64_struct-malloc_state.cc:67:
/usr/include/cursesp.h:93:50: error: macro "THROW" requires 2 arguments, but only 1 given
93 | THROW(new NCursesPanelException (this, err));
| ^
In file included from /usr/include/dbstl_container.h:12,
from /tmp/pwndbg/x86-64_struct-malloc_state.cc:26:
/usr/include/dbstl_common.h:152: note: macro "THROW" defined here
152 | #define THROW(exception_type, arg_list) do { \
|
In file included from /tmp/pwndbg/x86-64_struct-malloc_state.cc:116:
/usr/include/zbuff.h:31:10: fatal error: ../zstd.h: No such file or directory
31 | #include "../zstd.h" /* ZSTD_CStream, ZSTD_DStream, ZSTDLIB_API */
| ^~~~~~~~~~~
compilation terminated.
```
For example, I run GDB on simple test program and then I need to investigate heap, this error occures.
Thanks in advance!
This task depends upon

Closed by  Toolybird (Toolybird)
Wednesday, 03 May 2023, 04:32 GMT
Reason for closing:  Upstream
Additional comments about closing:  See comments
Comment by Levente Polyak (anthraxx) - Monday, 31 August 2020, 08:39 GMT
This is a known shortcoming in the way the header files are scanned for structures. on top we are missing debug symbols in some important packages. you will need to use the upstream bugtracker regarding those header include failures.

Loading...