Tue May 9 07:28:34 PDT 2006
- Previous message: [Slony1-general] Segfault with Slony 1.1.5 and PG 8.1.3 on x86_64
- Next message: [Slony1-general] Segfault with Slony 1.1.5 and PG 8.1.3 on x86_64
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 5/9/2006 10:01 AM, Gavin Hamill wrote:
> Jan Wieck wrote:
>
>>
>> In gdb:
>>
>> frame 2
>> print *((TriggerData)*fcinfo->context)->tg_relation->rd_rel
>>
>> In that output you will find the tablename that caused this log
>> trigger call right in the first line {data = "_table_name_here_" ...
>>
>>
> Sorry to be so clueless, working with gdb is complete black magic to me,
> so I'm utterly at the mercy of others:
>
> (gdb) frame 2
> #2 0x00002aaaca4ba348 in _Slony_I_logTrigger (fcinfo=0x9362bd) at
> slony1_funcs.c:783
> 783 col_value =
> slon_quote_literal(SPI_getvalue(old_row, tupdesc, i + 1));
>
> (gdb) print *((TriggerData)*fcinfo->context)->tg_relation->rd_rel
> Cannot access memory at address 0x61746f54222c226d
Ugly ... that looks rather ugly. Could be simply due to some pointer
value held in a register only due to optimization, and gdb using the
still allocated memory location of the variable instead. Well, what about
frame 2
print tab_id
That "should" give you the tables ID in sl_table.
Jan
>
> It doesn't look too hopeful - is this because the data would have been
> in the shared memory used by all postgres instances, and therefore not
> contained in the 6MB coredump?
>
> Cheers,
> Gavin.
>
> _______________________________________________
> Slony1-general mailing list
> Slony1-general at gborg.postgresql.org
> http://gborg.postgresql.org/mailman/listinfo/slony1-general
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck at Yahoo.com #
- Previous message: [Slony1-general] Segfault with Slony 1.1.5 and PG 8.1.3 on x86_64
- Next message: [Slony1-general] Segfault with Slony 1.1.5 and PG 8.1.3 on x86_64
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-general mailing list