Re: [GENERAL] PostgreSQL 8.4 crash on user defined C language function

2012-04-05 Thread iihero
: "iihero"; Cc: "Merlin Moncure"; "pgsql-general"; Subject: Re: [GENERAL] PostgreSQL 8.4 crash on user defined C language function Yeah, original example took command from arguments, I simply forgot to revert changes to original. Though it's not th

Re: [GENERAL] PostgreSQL 8.4 crash on user defined C language function

2012-04-04 Thread Vincas Dargis
Yeah, original example took command from arguments, I simply forgot to revert changes to original. Though it's not the problem, it is something with calling other functions under some kind environment I got. Your test was successful for "obviously it should work" reason, but it's something wro

Re: [GENERAL] PostgreSQL 8.4 crash on user defined C language function

2012-04-04 Thread iihero
is"; Cc: "pgsql-general"; Subject: Re: [GENERAL] PostgreSQL 8.4 crash on user defined C language function On Wed, Apr 4, 2012 at 10:46 AM, Vincas Dargis wrote: > SORRY FOR DUPLICATE EMAIL, I guess I'm really in pretty bad shape... > > Hello, > > I am e

Re: [GENERAL] PostgreSQL 8.4 crash on user defined C language function

2012-04-04 Thread Vincas Dargis
2012.04.04 20:37, Merlin Moncure rašė: did you remember to set up the V1 calling convention macro? merlin Yes, I did remember. This kind of inconsistency bugs me, why SPI_* works, pmalloc not? Vincas. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes

Re: [GENERAL] PostgreSQL 8.4 crash on user defined C language function

2012-04-04 Thread Merlin Moncure
On Wed, Apr 4, 2012 at 10:46 AM, Vincas Dargis wrote: > SORRY FOR DUPLICATE EMAIL, I guess I'm really in pretty bad shape... > > Hello, > > I am experimenting with user defined functions in C, though I have > problem with stability. > > It always crash on palloc() call, SPI_tuptable->tupdesc deref