Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2012-10

fpc 2.6.1 seg fault loading dblib

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dimitrios Chr. Ioannidis

Hi all,

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. I downloaded the dblib.dll from ftp contrib and tried to used it but no luck.

"...
=library-loaded,id="C:\\WINDOWS\\system32\\msv1_0.dll",target-name="C:\\WINDOWS\\system32\\msv1_0.dll",host-name="C:\\WINDOWS\\system32\\msv1_0.dll",symbols-loaded="0",thread-group="i1" =library-loaded,id="C:\\WINDOWS\\system32\\cryptdll.dll",target-name="C:\\WINDOWS\\system32\\cryptdll.dll",host-name="C:\\WINDOWS\\system32\\cryptdll.dll",symbols-loaded="0",thread-group="i1" =library-loaded,id="C:\\Programming\\Projects\\MSADomusSync\\bin\\dblib.dll",target-name="C:\\Programming\\Projects\\MSADomusSync\\bin\\dblib.dll",host-name="C:\\Programming\\Projects\\MSADomusSync\\bin\\dblib.dll",symbols-loaded="0",thread-group="i1" =library-loaded,id="C:\\Programming\\Projects\\MSADomusSync\\bin\\libiconv2.dll",target-name="C:\\Programming\\Projects\\MSADomusSync\\bin\\libiconv2.dll",host-name="C:\\Programming\\Projects\\MSADomusSync\\bin\\libiconv2.dll",symbols-loaded="0",thread-group="i1" *stopped,reason="signal-received",signal-name="SIGSEGV",signal-meaning="Segmentation fault",frame={addr="0x03401142",func="??",args=[],from="C:\\Programming\\Projects\\MSADomusSync\\bin\\dblib.dll"},thread-id="1",stopped-threads="all" (gdb)
<info program>
&"info program\n"
~"\tUsing the running image of child Thread 3076.0x1028.\n" ~"Program stopped at 0x3401142.\n"
~"It stopped with signal SIGSEGV, Segmentation fault.\n" ~"Type \"info stack\" or \"info registers\" for more information.\n" ..."

FPC version: 2.6.1
FPC svn revision: 22614

Lazarus version: 1.0.3
Lazarus svn revision: 39044

GDB version: 7.2

Windows XP Professional, SP3, 32 Bit

Any hint ?

Dimitrios Chr. Ioannidis

Reply by email

Mark Morgan Lloyd
to Dimitrios Chr. Ioannidis
Dimitrios Chr. Ioannidis wrote 9 lines
Hi all, 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. I downloaded the dblib.dll from ftp contrib and tried to used it but no luck. FPC version: 2.6.1 FPC svn revision: 22614

What version of FPC were you previously using?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Dimitrios Chr. Ioannidis
to Mark Morgan Lloyd

Hi,

Στις 12/10/2012 11:47 πμ, ο/η Mark Morgan Lloyd έγραψε:

Show quoted text 12 lines
Dimitrios Chr. Ioannidis wrote: > Hi all, > > 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. I downloaded the dblib.dll from ftp contrib and > tried to used it but no luck. > FPC version: 2.6.1 > FPC svn revision: 22614 What version of FPC were you previously using?

The previous version was a 2.6.1, 8 or 10 days old, don't remember exactly.

Dimitrios Chr. Ioannidis

Reply by email

Dimitrios Chr. Ioannidis
to Dimitrios Chr. Ioannidis: when my app try to load the dblib dll i get a segmentation fault. Previously the app…

Hi again,

i can;t find a solution.

Deleted everything. Checked out fpc fixed fixes_2_6 branch and lazarus fixes_1_0 branch.

Compiler builded with the 2.6.0 stable and command line "make all install SVNVERSION="svnversion.exe" COPYTREE=echo UPXPROG=echo OPT="-gl -gw -godwarfsets -gt -Xs -Xg" INSTALL_PREFIX=%FPCDIR%\%FPCVERSION%" . Checked that the binutils are from
"fpcbuild/tags/release_2_6_0/install/binw32".
Checked that the make util has version <= 0.81. Ok. Lazarus builded using the newlly created fpc 2.6.1. The dblib.dll is from the contrib ftp place ( redownloaded just to be sure ).

Nothing ... The same seg fault. It crashes at a dbinit call in mssqlconn unit.

Plz, can someone look at it ?

Dimitrios Chr. Ioannidis

Reply by email

Dimitrios Chr. Ioannidis
to Dimitrios Chr. Ioannidis

Hi,

Στις 12/10/2012 5:23 μμ, ο/η Dimitrios Chr. Ioannidis έγραψε:

i can;t find a solution.

well now my app is working again.

I didn't find the reason why. The solution was to delete the lazarus lpi and lpr and recreate them. Wasn't fpc fault.

regards,

Dimitrios Chr. Ioannidis

Reply by email