pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: buggy@trashmail.de
Subject: BUG #15266: libpq: PQgetvalue fails with Break at address "0x8000fb50" Signal : SIGSEGV:Segmentation fault)
Date: Sat, 07 Jul 2018 23:07:43 +0000
Message-ID: <153100486384.1405.1126891640113042710@wrigleys.postgresql.org> (raw)

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



view thread (2+ messages)  latest in thread

Message-ID: <153100486384.1405.1126891640113042710@wrigleys.postgresql.org>
Permalink:  ../153100486384.1405.1126891640113042710@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/153100486384.1405.1126891640113042710@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, buggy@trashmail.de
  Subject: Re: BUG #15266: libpq: PQgetvalue fails with Break at address "0x8000fb50" Signal : SIGSEGV:Segmentation fault)
  In-Reply-To: <153100486384.1405.1126891640113042710@wrigleys.postgresql.org>
  References: <153100486384.1405.1126891640113042710@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox