Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #192474

Re: strace (brk) output - how to interpret this?

From Don Armstrong <don@debian.org>
Newsgroups linux.debian.user
Subject Re: strace (brk) output - how to interpret this?
Date 2018-02-15 23:20 +0100
Message-ID <vjA2J-bL-7@gated-at.bofh.it> (permalink)
References <vjxHA-70W-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, 15 Feb 2018, Kamil Jońca wrote:
> Recently I have to debug some program and got one line 
> 
> --8<---------------cut here---------------start------------->8---
> execve("..something...") 
> brk(NULL)                               = 0x5564a8662000
> --8<---------------cut here---------------end--------------->8---
> surprised me
> I understand that brk (NULL) is called to get current break value but
> return value is far too high for me. Can anybody explain this?

That's actually about right for brk(), given an amd64 architecture.

You can actually cat /proc/$pid/maps; if you want to know what is really
going on there.


-- 
Don Armstrong                      https://www.donarmstrong.com

This can't be happening to me. I've got tenure.
 -- James Hynes _Publish and Perish_

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

strace (brk) output - how to interpret this? kjonca@poczta.onet.pl (Kamil Jońca) - 2018-02-15 20:50 +0100
  Re: strace (brk) output - how to interpret this? Don Armstrong <don@debian.org> - 2018-02-15 23:20 +0100

csiph-web