Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: I really don't know
@ 1996-09-04  3:56 David Mosberger
  0 siblings, 0 replies; 3+ messages in thread
From: David Mosberger @ 1996-09-04  3:56 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 3+ messages in thread
* I really don't know
@ 1996-09-04  3:20 Brian Walters
  1996-09-04  8:26 ` Fred Roy
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Walters @ 1996-09-04  3:20 UTC (permalink / raw)


I've looked around the web and I swear I've seen the answers in this list 
before but I can't seem to find them now.

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????? 

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.

If anybody has had luck with diald I'd like to here how you did it.

TIA!!

 

Brian Walters<------------------------------macbnr@saratoga.compassnet.com
      "How many computers can one have before they become obsessed???"
________________________________Systems__________________________________
Dec Alpha     24mgs     3.2gigs             RedHat 3.0.3 Linux
PM6100w/dos   40mgs     1.5gigs             Mac7.5, Win3.11, Mklinux
486dx50       20mgs      .5gigs             Slackware Linux, Dos
_________________________________________________________________________
http://www.compassnet.com/~macbnr/bill_in_hell.html Joke about Bill Gates
    http://www.compassnet.com/~macbnr               My home page

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-09-04  8:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-04  3:56 I really don't know David Mosberger
  -- strict thread matches above, loose matches on Subject: below --
1996-09-04  3:20 Brian Walters
1996-09-04  8:26 ` Fred Roy

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