BUG #13650: getTypeBinaryStringInfo segfault

From: sivanov99901(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #13650: getTypeBinaryStringInfo segfault
Date: 2015-09-29 10:58:36
Message-ID: 20150929105836.1465.73436@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 13650
Logged by: Sergey
Email address: sivanov99901(at)gmail(dot)com
PostgreSQL version: 9.5alpha2
Operating system: Debian 8
Description:

Hi, i'm trying to write custom background worker.
I call BackgroundWorkerInitializeConnection() to initialize connection in
worker main function.
I'm trying to call getTypeBinaryInputInfo(typoid, &typrecv, &typioparam)
with typoid = 20 (int8).
And then i want to call OidReceiveFunctionCall to get datum from binary
buffer.
But i have segmentation fault in getTypeBinaryInputInfo.
Can i use this functions in background worker?
How i can solve my problem?

Browse pgsql-bugs by date

  From Date Subject
Next Message digoal 2015-09-29 11:57:37 BUG #13651: trigger security invoker attack
Previous Message Tom Lane 2015-09-29 04:13:43 Re: BUG #13638: Exception texts from plperl has bad encoding