public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: RE: [Linux-ia64] Re: malloc problems
Date: Thu, 26 Apr 2001 18:44:12 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590693005478@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590693005474@msgid-missing>

>>>>> On Thu, 26 Apr 2001 11:41:37 -0500, "Donny Cooper" <dcooper@hstc.necsyl.com> said:

  Donny> Bill, This code is a small subset of a very large
  Donny> application, that runs on many platforms, an is being ported
  Donny> and tuned for IA64 Linux.  The executable builds and runs
  Donny> fine, but always grabs a different memory area on the one
  Donny> BigSur, as opposed to the others.

You didn't include a complete test case, so you shouldn't be surprised
if you're sending people off to a wild goose chase.  As Bill said, the
code you quoted is indeed incorrect as it shows no declaration of
malloc(), nor does it include <stdlib.h>.

Since you say your code works fine, let's assume that malloc() does
get declared *somewhere*.  Based on the addresses you quote:

	Result from Tom: (1-way BigSur)
	dyn_area = 40000010 40000010, mem= 2000018

	Result from Dick & Harry:(2-way BigSur & 4-way Lion)
	dyn_area = 10 2000000000000010, mem= 2000018

I'd say that the binary on "Tom" is an IA-32 binary.  Please use
"file" to verify and let us know (if it's not an IA-32 binary, then a
kernel bug would be the next candidate).

For example, if I compile the attached test program once for IA-32
(t.x86) and once for IA-64 (t.ia64), I get:

	$ ./t.x86
	0x40134008
	$ ./t.ia64 
	0x20000000002a0010

Hope this helps,

	--david

--
#include <stdio.h>
#include <stdlib.h>

int main (int argc, char **argv) {
        return printf ("%p\n", malloc(2000018));
}


      parent reply	other threads:[~2001-04-26 18:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-26 15:03 [Linux-ia64] Re: malloc problems Bill Nottingham
2001-04-26 16:41 ` Donny Cooper
2001-04-26 18:44 ` David Mosberger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-ia64-105590693005478@msgid-missing \
    --to=davidm@hpl.hp.com \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox