Re: Golang binary dwarf

2021-02-07 Thread Florian Weimer via Elfutils-devel
* Mark Wielaard: > Hi Manoj, > > On Sat, 2021-02-06 at 07:03 +, Manoj Kumar via Elfutils-devel > wrote: >> Hi,Using dyninst, I am trying to access local variables and arguments >> of a function which is part of a go binary.To get local variables, >> dyninst uses libdw to find all the modules.

Re: Golang binary dwarf

2021-02-07 Thread Manoj Kumar via Elfutils-devel
Hi, Apologies for replying late.  The issue can be reproduced on Ubuntu. Please get the attached files & copy to some folder. If golang and Dyninst 10.2.1 version are installed on system then please follow the below steps: 1. export PATH_TO_DYNINST_LIB= makeThis will create c++ binary testfile 2.

Re: Golang binary dwarf

2021-02-07 Thread Mark Wielaard
Hi, On Sun, 2021-02-07 at 14:54 +, Manoj Kumar wrote: > Apologies for replying late. The issue can be reproduced on Ubuntu. > Please get the attached files & copy to some folder. If golang and > Dyninst 10.2.1 version are installed on system then please follow the > below steps: > 1. export P

[PATCH] tests: Quote make variables in TESTS_ENVIRONMENT

2021-02-07 Thread Alexander Miller via Elfutils-devel
Commit eb922a1b8f3a ("tests: use ${CC} instead of 'gcc' in tests") exports ${CC} into the test environment, but doesn't quote the value for the assignment. That doesn't work properly if the value contains whitespace. In a multilib/biarch environment however, it's common to set CC="gcc -m32" or simi

Re: Golang binary dwarf

2021-02-07 Thread Manoj Kumar via Elfutils-devel
Hi, I can upload the go binaries. Dyninst libraries have huge size so can't send those. Please let me know should I upload the go binaries? Program OutputProgram without linkshared option is able to find the arguments of any function and displays number of arguments with their names but a progra

Re: Golang binary dwarf

2021-02-07 Thread Mark Wielaard
Hi Manoj, On Sun, Feb 07, 2021 at 04:10:20PM +, Manoj Kumar wrote: > I can upload the go binaries. Dyninst libraries have huge size so > can't send those. Please let me know should I upload the go > binaries? Program OutputProgram without linkshared option is able > to find the arguments of a

Re: Golang binary dwarf

2021-02-07 Thread Manoj Kumar via Elfutils-devel
Sure. I will upload them in an hour. On Sunday, 7 February, 2021, 09:47:07 pm IST, Mark Wielaard wrote: Hi Manoj, On Sun, Feb 07, 2021 at 04:10:20PM +, Manoj Kumar wrote: > I can upload the go binaries. Dyninst libraries have huge size so > can't send those. Please let me know shou

Re: Golang binary dwarf

2021-02-07 Thread Manoj Kumar via Elfutils-devel
Please confirm if you have got the binaries.I got failure message for elfutils-devel@sourceware.org On Sunday, 7 February, 2021, 10:42:47 pm IST, Manoj Kumar wrote: Please get the attached binaries. Please remove txt extension. md5sum wrapecho 2960d6232f818c4df8c9a8a30c4dd6d9md5sum w

Re: Golang binary dwarf

2021-02-07 Thread Mark Wielaard
On Sun, Feb 07, 2021 at 05:16:27PM +, Manoj Kumar wrote: > Please confirm if you have got the binaries. > I got failure message for elfutils-devel@sourceware.org I got them, but they were really big: $ du -h echobin.tar.gz wrapecho* 7.7Mechobin.tar.gz 11M wrapecho_linkshared.txt 7.4M

Re: Golang binary dwarf

2021-02-07 Thread Manoj Kumar via Elfutils-devel
Wrapecho starts a local server on port 1323. It provides handlers for url localhost:1323/ and localhost:1323/cat. The handlers simply execute some user defined code. Sure I will contact th golang team. Thanks for providing the details. On Sunday, 7 February, 2021, 10:58:26 pm IST, Mark Wiela

[Bug general/27366] New: 0.183: test suite is failing on linking dwfl-proc-attach

2021-02-07 Thread kloczko.tomasz at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27366 Bug ID: 27366 Summary: 0.183: test suite is failing on linking dwfl-proc-attach Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal

[Bug general/27366] 0.183: test suite is failing on linking dwfl-proc-attach

2021-02-07 Thread kloczko.tomasz at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27366 --- Comment #1 from kloczek --- No I was wrong. But is still fails using glibc, gcc and binutils from rawride. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug general/27366] 0.183: test suite is failing on linking dwfl-proc-attach

2021-02-07 Thread mark at klomp dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27366 Mark Wielaard changed: What|Removed |Added CC||mark at klomp dot org --- Comment #2

[Bug general/27366] 0.183: test suite is failing on linking dwfl-proc-attach

2021-02-07 Thread mark at klomp dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27366 --- Comment #3 from Mark Wielaard --- I see you are using -flto=auto. Sadly LTO isn't supported at the moment. Although it would be nice if it didn't totally break with -flto-partition=none. The problem with lto might be: /* HACK. This is a

[Bug general/27366] 0.183: test suite is failing on linking dwfl-proc-attach (with lto)

2021-02-07 Thread mark at klomp dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27366 Mark Wielaard changed: What|Removed |Added Summary|0.183: test suite is|0.183: test suite is