You are not logged in.

#1 2018-04-19 09:18:31

carlesm
Member
Registered: 2018-04-17
Posts: 6

Install Libc debug file

Hello, thanks in advance!

I'm relatively new to ArchLinux. I installed Pwngdb and everything works as it used in my old Linux distro, unless when I try to look for heap information, I get this error:

Cannot get main_arena's symbol address. Make sure you install libc debug file (libc6-dbg & libc6-dbg:i386 for debian package).

I've been looking around but anything helped. I know it has to do something with PKGBUILD and changing the debug flag (Debug - Getting Traces), but I've tried everything to no avail.

Any help will be appreciated!

~ carlesm

Offline

#2 2018-04-19 09:22:26

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: Install Libc debug file

carlesm wrote:

I've been looking around but anything helped. I know it has to do something with PKGBUILD and changing the debug flag (Debug - Getting Traces), but I've tried everything to no avail.

Please detail what exactly you have tried and what results those efforts have produced.

Offline

#3 2018-04-19 09:38:29

carlesm
Member
Registered: 2018-04-17
Posts: 6

Re: Install Libc debug file

As ArchLinux documentation says, I edited /etc/makepkg.conf changing options variable to this:

OPTIONS=(!strip docs !libtool !staticlibs emptydirs zipman purge !optipng !upx debug)

Changing !debug and strip to debug and !strip respectively. I then tried reinstalling glibc using pacman -S glibc, but didn't work.

Offline

#4 2018-04-19 09:42:50

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Offline

#5 2018-04-19 09:48:34

carlesm
Member
Registered: 2018-04-17
Posts: 6

Re: Install Libc debug file

Build the package from source using makepkg while in the PKGBUILD's directory

Thanks! But what's the PKGBUILD's directory if I want to install glibc with debug information?

Offline

#6 2018-04-19 09:52:09

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: Install Libc debug file

carlesm wrote:

Thanks! But what's the PKGBUILD's directory if I want to install glibc with debug information?

See the links in step 2.

Offline

#7 2018-04-19 11:59:57

carlesm
Member
Registered: 2018-04-17
Posts: 6

Re: Install Libc debug file

loqs wrote:
carlesm wrote:

Thanks! But what's the PKGBUILD's directory if I want to install glibc with debug information?

See the links in step 2.

Tanks again, I was able to download the source package using asp, but it is glibc version 2.27. How can I specify version 2.26 to download?

Offline

#8 2018-04-19 12:02:22

progandy
Member
Registered: 2012-05-17
Posts: 5,192

Re: Install Libc debug file

"asp checkout" should give you a git repository. Then you can use "git log" and "git checkout" to choose a specific version.
Edit: You can find the version which is currently in [core] in the glibc/repos/core-x86_64 directory having to choose a different git commit.

Last edited by progandy (2018-04-19 12:04:48)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#9 2018-04-19 12:26:04

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: Install Libc debug file

Hrm...  the relevant glibc files are not particularly striped in Arch.  Not sure what is happening there.

Offline

Board footer

Powered by FluxBB