Re: 7.1 on DEC/Alpha - Mailing list pgsql-hackers

From Brent Verner
Subject Re: 7.1 on DEC/Alpha
Date
Msg-id 20001225210106.A28817@rcfile.org
Whole thread Raw
In response to Re: 7.1 on DEC/Alpha  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Tuple-valued datums on Alpha (was Re: 7.1 on DEC/Alpha)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 24 Dec 2000 at 01:19 (-0500), Tom Lane wrote:
| Brent Verner <brent@rcfile.org> writes:
| > (gdb) p *resSlot
| > Error accessing memory address 0x40141830: Invalid argument.
| 
| Oooh.  resSlot has been truncated to 32 bits --- judging by the other
| nearby pointer values, it almost certainly should have been 0x140141830.
| Now we have a lead.

FWIW, saying 'set econtext->ecxt_param_list_info->value 0x14014183' in
geb allows the process to not SEGV where it _was_ destined to do so, 
though it does SEGV in a later return to the function. I've tried to
determine where this value is originating, and where it is subsequently
modified, but have not been able to do so. lost in gdb. 

Q: I tried doing 'watch <address>', but this (appeared) to just hang. is there some trick to using 'watch' on addresses
thatI might be overlooking?
 

| I am guessing that the truncation happened somewhere in
| executor/functions.c, but don't see it right away...

more observations WRT sql that blows up postgres on Alpha.

works: SELECT p.hobbies.equipment.name, p.hobbies.name, p.name    FROM ONLY person p;

breaks: SELECT p.hobbies.equipment.name, p.hobbies.name, p.name    FROM person p; SELECT p.hobbies.equipment.name,
p.hobbies.name,p.name    FROM person* p;
 

whatever it is that ONLY causes, avoids the breakage. I've spent the
past two days in a gdb-hole, going in circles. I just think don't know 
enough (about gdb or postgres) to make any further progress. anyway, 
if someone could tell me what difference the ONLY keyword makes WRT
pg internally, it might help me quit running in circles.

thanks. brent



pgsql-hackers by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: [GENERAL] COUNT(Distinct city) HELP!!!
Next
From: "Abe"
Date:
Subject: Re: COUNT(Distinct city) HELP!!!