[fpc-pascal] For Dimitrios Chr. Ioannidis: no fpc 2.6.1 seg fault loading dblib

Reinier Olislagers reinierolislagers at gmail.com
Sat Oct 13 14:28:25 CEST 2012

Responding to
[fpc-devel] fpc 2.6.1 seg fault loading dblib
as I think the subject is more appropriate to the fpc list.... (and I
haven't subscribed to fpc-devel):

> when my app try to load the dblib dll i get a segmentation fault.
> Previously the app worked like a charm. The only change is the
> recompilation of fpc.

Works on Vista x64 with FPC with FPC fixes r22595 x86 and my pasql test
(commit c250ca8)
directory sql

x86 dlls downloaded from contrib site; md5s:
1e2159d07b938524a4a27661b7aead51 *dblib.dll
fd1dc6c680299a2ed1eedcc3eabda601 *libiconv2.dll

pasql.exe --type=SQLSERVER --hostname= --database=master
Connection complete.
Server version:
Microsoft SQL Server 2008 (SP2) - 10.0.4064.0 (X64)
        Feb 25 2011 13:56:11
        Copyright (c) 1988-2008 Microsoft Corporation
        Express Edition with Advanced Services (64-bit) on Windows NT
6.0 <X64>
(Build 6002: Service Pack 2)

Starting SQL console.
Enter your SQL; run it by writing
on a single line.
Enter EXIT and enter to quit. You can then save all your statements to file.
SQL  >select 'dblib x86 with fpc 2.6.1 trunk works for me';
SQL+ >go

dblib x86 with fpc 2.6.1 trunk works for me

fpc -i
Free Pascal Compiler version 2.6.1

Compiler Date      : 2012/10/13
Compiler CPU Target: i386

Also tested the compiled pasql.exe+dblib.dll+libiconv2.dll on Win XP SP3
against a remote MS SQL 2005 server. Success.

Perhaps you can run pasql against your server and see what happens?


More information about the fpc-pascal mailing list