From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 8 Jan 2005 11:46:39 -1000 From: Tim Newsham To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] acid question In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Topicbox-Message-UUID: 2a2f0f02-eace-11e9-9e20-41e7f4b1d025 > a 0x800529a4 > b 0x800529a4 > a == b 0 > > Whats going on here? Signed vs. unsigned issues? Indeed a signed issue -- acid integer values are stored as vlongs. The value of a symbol such as "main" is being converted to a vlong by zero-extension, while the symbol value from strace() (Symbol.value) is a signed long which is sign-extended. One fix is to change /sys/src/cmd/acid/list.c from l->ival = sym->value; to l->ival = (ulong)sym->value; Or perhaps the Symbol value field in should be a ulong? Tim N.