BUG #15266: libpq: PQgetvalue fails with Break at address "0x8000fb50" Signal : SIGSEGV:Segmentation fault)

Started by PG Bug reporting formalmost 8 years ago2 messagesbugs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following bug has been logged on the website:

Bug reference: 15266
Logged by: bug gy
Email address: buggy@trashmail.de
PostgreSQL version: 10.4
Operating system: Windows 10 64 bit
Description:

installation: EnterpriseDB installer 10.4 64 bit

code: 1st example
https://www.postgresql.org/docs/9.1/static/libpq-example.html fails at the
first call to it at line ~100
built with mingw64
gcc "-IC:\\Program Files\\PostgreSQL\\10\\include" -O0 -g3 -Wall -c
-fmessage-length=0 -o testlibpq.o "..\\testlibpq.c"
gcc "-LC:\\Program Files\\PostgreSQL\\10\\lib" -o testcpq.exe testlibpq.o
-lpq -lws2_32

calling PQgetvalue with i=0 j=0 fails with Break at address "0x8000fb50"
with no debug information available, or outside of program code. Thread #1 0
(Suspended : Signal : SIGSEGV:Segmentation fault) 0x8000fb50

console output:
datname datdba encoding datcollate datctype
datistemplate datallowconn datconnlimit datlastsysoid datfrozenxid
datminmxid dattablespace datacl

version 9.6 of libpq.dll & libpq.lib works jsut fine with that code

#2Michael Paquier
michael@paquier.xyz
In reply to: PG Bug reporting form (#1)
Re: BUG #15266: libpq: PQgetvalue fails with Break at address "0x8000fb50" Signal : SIGSEGV:Segmentation fault)

On Sat, Jul 07, 2018 at 11:07:43PM +0000, PG Bug reporting form wrote:

calling PQgetvalue with i=0 j=0 fails with Break at address "0x8000fb50"
with no debug information available, or outside of program code. Thread #1 0
(Suspended : Signal : SIGSEGV:Segmentation fault) 0x8000fb50

version 9.6 of libpq.dll & libpq.lib works jsut fine with that code

Is that MinGW or something else? I have just copied the program from
the 9.1 documentation and it worked for me, on Linux though.
--
Michael