Skip site navigation (1) Skip section navigation (2)

fmgr_oldstyle calls from 8.0.0RC2 trigger

From: strk <strk(at)keybit(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: fmgr_oldstyle calls from 8.0.0RC2 trigger
Date: 2004-12-29 10:08:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
I'm trying to implement a trigger within 8.0.0RC2.
I get a segfault when the trigger is fired, valgrind
reports an illegal read being the line:

        TriggerData *trigdata = (TriggerData *) fcinfo->context;

Valgrind reports:

==941== Use of uninitialised value of size 4
==941==    at 0x3CD9C197: cache_bbox (lwgeom_triggers.c:10)
==941==    by 0x825C274: fmgr_oldstyle (fmgr.c:637)
==941==    by 0x81258C8: ExecCallTriggerFunc (trigger.c:1149)
==941==    by 0x812646F: ExecBRUpdateTriggers (trigger.c:1525)

Isn't fmgr_oldstyle the Version 0 function caller ?
Shouldn't triggers be defined as Version 1 ?



For standing up against patentability of software,

  Thank You, Poland!

Read the intervention:
Send your thanks:
Read/do more:


pgsql-hackers by date

Next:From: Kurt RoeckxDate: 2004-12-29 12:45:04
Subject: Re: race condition for drop schema cascade?
Previous:From: Michael MeskesDate: 2004-12-29 09:32:21
Subject: Re: ECPG CONNECT TO DEFAULT segfault

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group