[Bug libdw/29434] Memory leak in `dwarf_getscopes`

2022-11-03 Thread pablogsal at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29434

--- Comment #11 from Pablo Galindo Salgado  ---
Unfortunately I cannot easily patch dwarf_getscopes and run the experiment :(

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug libdw/29434] Memory leak in `dwarf_getscopes`

2022-11-03 Thread pablogsal at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29434

--- Comment #12 from Pablo Galindo Salgado  ---
Hopefully I can report back with the output in a few days. Apologies for the
delay!

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug libdw/29434] Memory leak in `dwarf_getscopes`

2022-11-03 Thread pablogsal at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29434

--- Comment #13 from Pablo Galindo Salgado  ---
Hum, it seems that I cannot attach the output because is 87 MB of output.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug libdw/29434] Memory leak in `dwarf_getscopes`

2022-11-03 Thread pablogsal at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29434

--- Comment #14 from Pablo Galindo Salgado  ---
I can tell you that the file finishes with:

  pc_record => [5d9f]
  pc_record <= [5d9f] 3
__libdw_visit_scopes result 3, scopes 0xa689d0, inlined 0, nscopes 3

:)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug libdw/29434] Memory leak in `dwarf_getscopes`

2022-11-03 Thread pablogsal at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29434

--- Comment #15 from Pablo Galindo Salgado  ---
Here is the parts that reference the parts:

__libdw_visit_scopes for pc 0xf5b23, cudie [29ce89]
__libdw_visit_scopes result 0, scopes (nil), inlined 0, nscopes 0
__libdw_visit_scopes for pc 0x252208, cudie [b]
__libdw_visit_scopes result 0, scopes 0x1a761b0, inlined 2, nscopes 3
__libdw_visit_scopes for origin_match 0x252208, cudie [b]
__libdw_visit_scopes origin_match result 0, scopes 0x1a761b0, inlined 2,
nscopes 3
__libdw_visit_scopes for pc 0x13dd69, cudie [b]
__libdw_visit_scopes result 2, scopes 0x1b83810, inlined 0, nscopes 2
__libdw_visit_scopes for pc 0x131d71, cudie [b]
__libdw_visit_scopes result 0, scopes 0x1a94580, inlined 7, nscopes 2
__libdw_visit_scopes for origin_match 0x131d71, cudie [b]
__libdw_visit_scopes origin_match result 0, scopes 0x1a94580, inlined 7,
nscopes 2
__libdw_visit_scopes for pc 0x13e992, cudie [b]
__libdw_visit_scopes result 0, scopes 0x1b49b40, inlined 2, nscopes 1
__libdw_visit_scopes for origin_match 0x13e992, cudie [b]
__libdw_visit_scopes origin_match result 0, scopes 0x1b49b40, inlined 2,
nscopes 1
__libdw_visit_scopes for pc 0x12d6cb, cudie [b]
__libdw_visit_scopes result 0, scopes 0x1ad8ba0, inlined 7, nscopes 2
__libdw_visit_scopes for origin_match 0x12d6cb, cudie [b]
__libdw_visit_scopes origin_match result 0, scopes 0x1ad8ba0, inlined 7,
nscopes 2
__libdw_visit_scopes for pc 0x12c246, cudie [b]
__libdw_visit_scopes result 0, scopes 0x1a21b70, inlined 2, nscopes 1
__libdw_visit_scopes for origin_match 0x12c246, cudie [b]
__libdw_visit_scopes origin_match result 0, scopes 0x1a21b70, inlined 2,
nscopes 1
__libdw_visit_scopes for pc 0x12bef0, cudie [b]
__libdw_visit_scopes result 2, scopes 0x1e44600, inlined 0, nscopes 2
__libdw_visit_scopes for pc 0x1e2e22, cudie [b]
__libdw_visit_scopes result 0, scopes 0x1c0aa70, inlined 2, nscopes 1
__libdw_visit_scopes for origin_match 0x1e2e22, cudie [b]
__libdw_visit_scopes origin_match result 0, scopes 0x1c0aa70, inlined 2,
nscopes 1
__libdw_visit_scopes for pc 0x20ca3c, cudie [b]
__libdw_visit_scopes result 2, scopes 0x1de8920, inlined 0, nscopes 2
__libdw_visit_scopes for pc 0x1ff6aa, cudie [b]
__libdw_visit_scopes result 2, scopes 0x1ccc3f0, inlined 0, nscopes 2
__libdw_visit_scopes for pc 0x8d1a9, cudie [b]
__libdw_visit_scopes result 2, scopes 0x1eb3c20, inlined 0, nscopes 2
__libdw_visit_scopes for pc 0x1faad0, cudie [b]
__libdw_visit_scopes result 0, scopes 0x1eb18b0, inlined 2, nscopes 2
__libdw_visit_scopes for origin_match 0x1faad0, cudie [b]
__libdw_visit_scopes origin_match result 0, scopes 0x1eb18b0, inlined 2,
nscopes 2
__libdw_visit_scopes for pc 0x1f4538, cudie [b]
__libdw_visit_scopes result 0, scopes 0x1eaad70, inlined 4, nscopes 2
__libdw_visit_scopes for origin_match 0x1f4538, cudie [b]
__libdw_visit_scopes origin_match result 0, scopes 0x1eaad70, inlined 4,
nscopes 2
__libdw_visit_scopes for pc 0x1d61a8, cudie [b]
__libdw_visit_scopes result 2, scopes 0x1ef26b0, inlined 0, nscopes 2
__libdw_visit_scopes for pc 0x22554, cudie [22ec]
__libdw_visit_scopes result 3, scopes 0x1917ca0, inlined 0, nscopes 3

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug libdw/29434] Memory leak in `dwarf_getscopes`

2022-08-04 Thread pablogsal at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29434

--- Comment #2 from Pablo Galindo Salgado  ---
> it could in theory also be zero

In this case, the result was 0 (I am working with Matt)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug libdw/29434] Memory leak in `dwarf_getscopes`

2022-08-04 Thread pablogsal at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29434

--- Comment #4 from Pablo Galindo Salgado  ---
The first result is already 0 in

int result = __libdw_visit_scopes (0, &cu, NULL, &pc_match, &pc_record, &a);

I think this is because walk_children finds no "real children" so it returns
with the last return (ret < 0 ? -1 : 0;) every single time.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug libdw/29434] Memory leak in `dwarf_getscopes`

2022-08-04 Thread pablogsal at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29434

--- Comment #6 from Pablo Galindo Salgado  ---
What would be the best way to provide that?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug libdw/29434] Memory leak in `dwarf_getscopes`

2022-08-04 Thread pablogsal at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29434

--- Comment #7 from Pablo Galindo Salgado  ---
The dwarf trie comes from /usr/lib64/libc-2.17.so in a RHEL7 system

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug libdw/29434] Memory leak in `dwarf_getscopes`

2022-08-04 Thread pablogsal at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29434

--- Comment #8 from Pablo Galindo Salgado  ---
If you give me a patch adding print statements to libdw/dwarf_getscopes.c and
libdw/libdw_visit_scopes.c I can give you the output.

-- 
You are receiving this mail because:
You are on the CC list for the bug.