Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: David  Mosberger <davidm@AZStarNet.com>
Subject: Re: I really don't know
Date: Tue, 3 Sep 1996 20:56:54 -0700 (MST)	[thread overview]
Message-ID: <199609040356.UAA04981@web.azstarnet.com> (raw)

> 1. What does " passing arg1 of xxxx from incompatible pointer type" mean 
 > exactly, the way I understand it, it has to do with a 32 bit number????? 

It means you're passing an actual argument to a formal parameter and
the type of the actual is a pointer that is not compatible with the
type of the formal argument.  Say, passing a pointer to an "int" where
a pointer to a "long" is expected.  You'll be well-served by tracking
and fixing such problems--they usually spell trouble.

 > 2. What is the best way to figure out this memory violation?
 > diald: memory violation at pc=155556be3cc rp=120009770 (bad address = 
 > 00000000)
 > Segmentation fault (core dumped)

 > I've gotten a few of these core dumps since moving to the 081096 rpms for 
 > ELF, I don't know f this has anything to do with it or not since I didn't 
 > try this source before the change.

Compile the program with -g, fire up gdb on that program, then do:

	list *0x155556be3cc

and
	list *0x120009770

This will show you the source line of the call that caused the
fault (first list) and the call-site of the function that caused
the fault (second list).

	--david

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

             reply	other threads:[~1996-09-04  3:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-04  3:56 David Mosberger [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-09-04  3:20 I really don't know Brian Walters
1996-09-04  8:26 ` Fred Roy
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox