[Bug libdw/31447] Provide a public debug section relocation function

2024-09-03 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31447 --- Comment #7 from Di Chen --- This issue is in code review. https://sourceware.org/pipermail/elfutils-devel/2024q3/007388.html -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libdw/31447] Provide a public debug section relocation function

2024-08-04 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31447 --- Comment #6 from Di Chen --- @amerey I believe your elfutils was lacking the dwelf_relocation_debug_sections replacement in strip.c while compiling. Could you give a double check for whether the dwelf_relocation_debug_sections is introduc

[Bug libdw/31447] Provide a public debug section relocation function

2024-08-02 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31447 --- Comment #4 from Di Chen --- @mjw I have function dwelf_relocation_debug_sections() added in libdwelf.a. ``` $ pwd /home/dichen/elfutils $ eu-readelf -s libdwelf/libdwelf.a | grep dwelf_relocation_debug_sections libdwelf/libdwelf.a(dwelf_

[Bug libdw/31447] Provide a public debug section relocation function

2024-05-12 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31447 --- Comment #2 from Di Chen --- Hey @mjw ``` $ eu-readelf -a qq.o | grep Type Type: REL (Relocatable file) $ eu-readelf -S qq.o | grep REL [ 2] .rela.text RELA 04b8 0048 24 I 19 1 8 [ 6] .r

[Bug libdw/31447] Provide a public debug section relocation function

2024-03-21 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31447 Di Chen changed: What|Removed |Added Assignee|unassigned at sourceware dot org |dichen at redhat dot com

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-19 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #12 from Di Chen --- @fche no problem, thanks for merging it :D -- You are receiving this mail because: You are on the CC list for the bug.

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-17 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #10 from Di Chen --- Yes, patch submitted: https://sourceware.org/pipermail/elfutils-devel/2024q1/006916.html -- You are receiving this mail because: You are on the CC list for the bug.

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-14 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #8 from Di Chen --- Got it. I have used GDB to make debuginfod stop at 1) before malloc_trim(0) $ cat /proc/$$/statm 228487 3456 2976 48 0 19049 0 2) after malloc_trim(0) $ cat /proc/$$/statm 228462 3456 2976

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-13 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #6 from Di Chen --- Thanks Frank, I have debugged with rusage, but the difference between "during" and "post" is not that obvious. I believe it's due to my small .debuginfod.sqlite. ``` (gdb) p during $2 = {ru_utime = {tv_sec = 0,

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-12 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #4 from Di Chen --- @fche, @mjw, @amerey I don't have many clue about how to debug/measure this memory fluctuation problem. What I did: 1) use GDB to check the call graph. thread_main_groom -> groom -> sqlite3_db_

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-01 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #1 from Di Chen --- Hey Frank, Are you talking about a change like this? ``` diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx index 524be948..fb9c1661 100644 --- a/debuginfod/debuginfod.cxx +++ b/debuginfod/debu

[Bug debuginfod/31103] periodically malloc_trim()

2024-01-31 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 Di Chen changed: What|Removed |Added Assignee|unassigned at sourceware dot org |dichen at redhat dot com

[Bug general/31027] Remove asserts from library code

2023-12-23 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31027 --- Comment #2 from Di Chen --- I made a quick test on the libdwfl's asserts removing patch, and it passed. $ make check TESTS=run-dwfl* make check-TESTS PASS: run-dwfl-addr-sect.sh PASS: run-dwfl-bug-offline-rel.sh PASS: run-dwfl-core-nonco

[Bug general/31027] Remove asserts from library code

2023-12-23 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31027 --- Comment #1 from Di Chen --- Asserts are heavily used across all elfutils libraries, and it's impossible to implement the removing in one commit. So let's gradually remove the asserts in the later coming commits. This is the first patch wo

[Bug general/31027] Remove asserts from library code

2023-11-08 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31027 Di Chen changed: What|Removed |Added Assignee|unassigned at sourceware dot org |dichen at redhat dot com -- You

[Bug tools/28873] Implement eu-readelf -D

2023-01-16 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28873 --- Comment #6 from Di Chen --- [Follow the last comment] For a binary with SYMTAB STRTAB having different order, like upside down, or having other section in between. eg. ``` $ readelf -Dd /usr/local/go/bin/go Dynamic section at offset 0x9

[Bug tools/28873] Implement eu-readelf -D

2023-01-16 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28873 --- Comment #5 from Di Chen --- Created attachment 14600 --> https://sourceware.org/bugzilla/attachment.cgi?id=14600&action=edit readelf: display dynamic symtab without section headers ``` # failed to print symtab of a binary which has sect

[Bug tools/28873] Implement eu-readelf -D

2022-08-08 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28873 --- Comment #4 from Di Chen --- Update: I am working on the second part of the task, make eu-readelf can dump symbol information from dynamic program header, like $ eu-readelf -Ds {FILE} -- You are receiving this mail because: You are on th

[Bug tools/28873] Implement eu-readelf -D

2022-08-08 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28873 --- Comment #3 from Di Chen --- Finished the first part of the whole task, now eu-readelf can dump the dynamic segment information from dynamic program header, i.e. ``` $ ./src/readelf -Dd ~/test/eu-readelf-no-shdr Dynamic segment contains

[Bug tools/28873] Implement eu-readelf -D

2022-08-08 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28873 --- Comment #2 from Di Chen --- commit 369c021c6eedae3665c1dbbaa4fc43afbbb698f4 Author: Di Chen Date: Thu Apr 28 19:55:33 2022 +0800 readelf: Support --dynamic with --use-dynamic Currently, eu-readelf is using section headers to d

[Bug libdw/28579] libdwfl api for accessing registers for a thread frame (full register unwinding)

2022-07-19 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28579 --- Comment #3 from Di Chen --- Thank you Mark, I have re-pushed a patch[1] for 1). add dwfl_frame_reg to ELFUTILS_0.188 2). add invalid regno check for dwfl_frame_reg 3). add INTDECL (dwfl_frame_reg) 4). Replace Dwarf_Word with Dwarf_Addr f

[Bug libdw/28579] libdwfl api for accessing registers for a thread frame (full register unwinding)

2022-07-03 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28579 --- Comment #1 from Di Chen --- Created attachment 14193 --> https://sourceware.org/bugzilla/attachment.cgi?id=14193&action=edit Submit a Patch for Bug 28579 -- You are receiving this mail because: You are on the CC list for the bug.

[Bug tools/28928] Wrong dynamic section entry number

2022-04-15 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28928 --- Comment #3 from Di Chen --- Thanks Mark, attachment 14064 looks good to me. You are right, we should let patch for "-d --use-dynamic" (part of Bug 28873) take care of using phdr(PT_DYNAMIC) to get the section data. Because I was considerin

[Bug tools/28873] Implement eu-readelf -D

2022-03-31 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28873 --- Comment #1 from Di Chen --- This Bug depends on Bug 28928 because when calling `$ eu-readelf -d --use-dynamic {FILE}` eu-readelf will need the number of dynamic section entris which involves with Bug 28928 -- You are receiving this mail

[Bug tools/28873] Implement eu-readelf -D

2022-03-30 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28873 Di Chen changed: What|Removed |Added Depends on||28928 Referenced Bugs: https://sourceware

[Bug tools/28928] Wrong dynamic section entry number

2022-03-30 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28928 Di Chen changed: What|Removed |Added Blocks||28873 Referenced Bugs: https://sourceware

[Bug tools/28928] Wrong dynamic section entry number

2022-03-30 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28928 Di Chen changed: What|Removed |Added CC||dichen at redhat dot com --- Comment #1

[Bug tools/28928] Wrong dynamic section entry number

2022-02-28 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28928 Di Chen changed: What|Removed |Added Assignee|unassigned at sourceware dot org |dichen at redhat dot com

[Bug tools/28928] New: Wrong dynamic section entry number

2022-02-28 Thread dichen at redhat dot com via Elfutils-devel
Assignee: unassigned at sourceware dot org Reporter: dichen at redhat dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- when using `$ eu-readelf -d {file}` to get the number of dynamic section entris, It wrongly counts the padding DT_NULLs

[Bug tools/28873] Implement eu-readelf -D

2022-02-08 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28873 Di Chen changed: What|Removed |Added Assignee|unassigned at sourceware dot org |dichen at redhat dot com -- You

[Bug tools/28873] Implement eu-readelf -D

2022-02-08 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28873 Di Chen changed: What|Removed |Added Status|NEW |ASSIGNED -- You are receiving this mail be

[Bug tools/28873] New: Implement eu-readelf -D

2022-02-08 Thread dichen at redhat dot com via Elfutils-devel
Assignee: unassigned at sourceware dot org Reporter: dichen at redhat dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- Currently, eu-readelf is using section headers (in readelf.c:handle_symtab(), it calls gelf_getshdr() for fetching section headers

[Bug libdw/28579] libdwfl api for accessing registers for a thread frame (full register unwinding)

2021-11-11 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28579 Di Chen changed: What|Removed |Added Status|NEW |ASSIGNED -- You are receiving this mail be

[Bug libdw/28579] libdwfl api for accessing registers for a thread frame (full register unwinding)

2021-11-11 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28579 Di Chen changed: What|Removed |Added CC||dichen at redhat dot com

[Bug debuginfod/28242] extend server http-response metrics with artifact-type content

2021-09-21 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28242 Di Chen changed: What|Removed |Added Summary|extend server http-response |extend server http-response

[Bug debuginfod/28242] extend server http-response metrics with result code

2021-09-20 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28242 --- Comment #1 from Di Chen --- Specifically, this task aims to add another label to all the http_responses_* metrics. And they are expecting to be like this: http_responses_duration_milliseconds_count{code="200", type="debuginfo"} 91300. --

[Bug debuginfod/28242] extend server http-response metrics with result code

2021-09-10 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28242 Di Chen changed: What|Removed |Added CC||dichen at redhat dot com

[Bug debuginfod/27917] protect against federation loops

2021-08-25 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27917 --- Comment #2 from Di Chen --- Created attachment 13623 --> https://sourceware.org/bugzilla/attachment.cgi?id=13623&action=edit Submit a Patch for Bug 27917 -- You are receiving this mail because: You are on the CC list for the bug.

[Bug debuginfod/27917] protect against federation loops

2021-06-08 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27917 Di Chen changed: What|Removed |Added Assignee|unassigned at sourceware dot org |dichen at redhat dot com

[Bug debuginfod/27918] add control file for triggered traversal

2021-06-08 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27918 Di Chen changed: What|Removed |Added Assignee|dichen at redhat dot com |unassigned at sourceware dot org

[Bug debuginfod/27918] add control file for triggered traversal

2021-06-08 Thread dichen at redhat dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27918 Di Chen changed: What|Removed |Added CC||dichen at redhat dot com