2014-11-27 12:47 GMT+04:00 Dimitry Sibiryakov <[email protected]>:
> 27.11.2014 9:40, Alexpux wrote:
> > I’m already build debug version of firebird.
> > I'm set breakpoint on is_attach_database (why.cpp:1361) but it not go
> there - it just segfault on calling is_attach_database without going to
> this proc. So I think this is can be calling convention issue.
>
> Disassemble failed address and see.
>
I'm not good in disassembler:
C:\SDK\Projects\build-FB_Test-Desktop_Qt_5_3_MinGW_w64_64bit_MSYS2-Debug\debug>g
db FB_Test
GNU gdb (GDB) 7.6.2
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
C:\SDK\Projects\build-FB_Test-Desktop_Qt_5_3_MinGW_w64_64bit_MSYS2-Debug\debug\FB_Test.exe...done.
(gdb) br mainwindows.cpp:19
No source file named mainwindows.cpp.
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb) br mainwindow.cpp:19
Breakpoint 1 at 0x40186a: file ..\FB_Test\mainwindow.cpp, line 19.
(gdb) br why.cpp:1379
Breakpoint 2 at 0x66520323: file ../src/jrd/why.cpp, line 1379.
(gdb) r
Starting program:
C:\SDK\Projects\build-FB_Test-Desktop_Qt_5_3_MinGW_w64_64bit_M
SYS2-Debug\debug/FB_Test.exe
[New Thread 9616.0x1064]
Breakpoint 1, MainWindow::MainWindow (this=0x22fd60, parent=0x0)
at ..\FB_Test\mainwindow.cpp:19
19 m_Db.setDatabaseName(dbpath);
(gdb) br qsql_ibase.cpp:1528
Breakpoint 3 at 0x149e8927: file ../../../sql/drivers/ibase/qsql_ibase.cpp,
line
1528.
(gdb) next
20 m_Db.setUserName("SYSDBA");
(gdb)
21 m_Db.setPassword("masterkey");
(gdb)
22 m_Db.setConnectOptions("ISC_DPB_LC_CTYPE=UTF8");
(gdb)
23 if (!m_Db.open()){
(gdb)
Breakpoint 3, QIBaseDriver::open (this=0x5579d0, db=..., user=...,
password=..., host=..., port=-1, connOpts=...)
at ../../../sql/drivers/ibase/qsql_ibase.cpp:1528
(gdb) next
1530 &d->ibase, ba.size(), ba.data());
(gdb)
1529 isc_attach_database(d->status, 0, const_cast<char
*>(ldb.toLocal8Bit
().constData()),
(gdb)
1530 &d->ibase, ba.size(), ba.data());
(gdb)
Program received signal SIGSEGV, Segmentation fault.
0x00000000149ec4a0 in isc_attach_database ()
from C:\SDK\msys64\mingw64\share\qt5\plugins\sqldrivers\qsqlibased.dll
(gdb) disas 0x00000000149ec4a0
Dump of assembler code for function isc_attach_database:
=> 0x00000000149ec4a0 <+0>: jmpq *0x14a06a58(%rip) # 0x293f2efe
0x00000000149ec4a6 <+6>: nop
0x00000000149ec4a7 <+7>: nop
End of assembler dump.
>
> --
> WBR, SD.
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> Firebird-Devel mailing list, web interface at
> https://lists.sourceforge.net/lists/listinfo/firebird-devel
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel