[Firebird-devel] FB3 crash
Hi Work with server from multiple clients [IBProvider test system]: firebird.exe!set_server(rem_port * port=0x, unsigned short flags=56) Строка 5455 + 0x6 байт C++ > firebird.exe!SRVR_main(rem_port * main_port=0x, unsigned short flags=56) Строка 1058 + 0xe байт C++ firebird.exe!service_connection(rem_port * port=0x) Строка 537 + 0x14 байт C++ firebird.exe!process_connection_thread(void * arg=0x) Строка 370 + 0x9 байт C++ firebird.exe!`anonymous namespace'::ThreadArgs::run() Строка 73 + 0x1f байт C++ firebird.exe!threadStart(void * arg=0x47d8cdf8) Строка 89 C++ msvcr100d.dll!_callthreadstartex() Строка 314 + 0xf байт C msvcr100d.dll!_threadstartex(void * ptd=0x034c7688) Строка 297 C I think, crash can reproduced without any problem ... Regards, Kovalenko Dmitry. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_marFirebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] FB3 crash
19.03.2013 21:52, Dmitry Kovalenko wrote: > Hi > > Work with server from multiple clients [IBProvider test system]: > > firebird.exe!set_server(rem_port * port=0x, unsigned short flags=56) > Строка 5455 + 0x6 байтC++ > >firebird.exe!SRVR_main(rem_port * main_port=0x, unsigned short > flags=56) Строка 1058 + 0xe байтC++ > firebird.exe!service_connection(rem_port * port=0x) Строка 537 + > 0x14 байтC++ > firebird.exe!process_connection_thread(void * arg=0x) Строка 370 + > 0x9 байтC++ > firebird.exe!`anonymous namespace'::ThreadArgs::run() Строка 73 + 0x1f > байтC++ > firebird.exe!threadStart(void * arg=0x47d8cdf8) Строка 89C++ > msvcr100d.dll!_callthreadstartex() Строка 314 + 0xf байтC > msvcr100d.dll!_threadstartex(void * ptd=0x034c7688) Строка 297C Do you have something at firebird.log ? Regards, Vlad -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] FB3 crash
Yes, something exists :) - [fresh crash] > firebird.exe!set_server(rem_port * port=0x, unsigned short flags=56) Строка 5455 + 0x6 байт C++ firebird.exe!SRVR_main(rem_port * main_port=0x, unsigned short flags=56) Строка 1058 + 0xe байт C++ firebird.exe!service_connection(rem_port * port=0x) Строка 537 + 0x14 байт C++ firebird.exe!process_connection_thread(void * arg=0x) Строка 370 + 0x9 байт C++ firebird.exe!`anonymous namespace'::ThreadArgs::run() Строка 73 + 0x1f байт C++ firebird.exe!threadStart(void * arg=0x3af533b4) Строка 89 C++ msvcr100d.dll!_callthreadstartex() Строка 314 + 0xf байт C msvcr100d.dll!_threadstartex(void * ptd=0x056c9408) Строка 297 C - [firebird .log] VXP-FB30 Wed Mar 20 08:20:17 2013 unable to allocate memory from operating system VXP-FB30 Wed Mar 20 08:20:28 2013 XNET error: Failed to allocate server port for communication operating system directive CreateFileMapping at line 2050 failed Файл подкачки слишком мал для завершения операции. VXP-FB30 Wed Mar 20 08:20:28 2013 XNET error: Server failed to respond on connect request - [test.log] [20.03.2013 08:20:16] [Thread #3] [START ] cmd|cmd.011.create_cn_WIN1251.work_cn_WIN1251 [#930] [20.03.2013 08:20:17] [Thread #4] [FAILED ] cmd|cmd.010.cn_UNICODE_FSS.marker_win1251.str_3 [20.03.2013 08:20:17] [Thread #4] [START ] cmd|cmd.011.create_cn_WIN1251.work_cn_UNICODE_FSS [#931] [20.03.2013 08:20:21] [Thread #2] [FAILED ] cmd|cmd.010.cn_UNICODE_FSS.marker_unicode_fss.str_7 [20.03.2013 08:20:21] [Thread #2] [START ] cmd|cmd.011.create_cn_WIN1251.work_cn_NONE [#932] [20.03.2013 08:20:28] [Thread #5] [STOP ] cmd|cmd.010.cn_UNICODE_FSS.marker_win1251.str_4 [20.03.2013 08:20:28] [Thread #5] [START ] cmd|cmd.011.create_cn_UNICODE_FSS.work_cn_WIN1251 [#933] [20.03.2013 08:20:28] [Thread #6] [FAILED ] cmd|cmd.010.cn_UNICODE_FSS.marker_win1251.str_5 [20.03.2013 08:20:28] [Thread #6] [START ] cmd|cmd.011.create_cn_UNICODE_FSS.work_cn_UNICODE_FSS [#934] - [test thread #4] [THR:008800] [20.03.2013 08:20:17] [cmd.010] cmd_props.attach_command(cmd.command_obj()) [THR:008800] [20.03.2013 08:20:17] [cmd.010] PREPARE STMT:[bstr"select _win1251'z'/*'*/ from dual"] [THR:008800] [20.03.2013 08:20:17] ERROR: [cmd|cmd.010.cn_UNICODE_FSS.marker_win1251.str_3] Preparing a command 1. [LCPI.IBProvider.3]: Ошибка подготовки SQL выражения. unable to allocate memory from operating system Result code=DB_E_ERRORSINCOMMAND [test thread #2] [THR:006176] [20.03.2013 08:20:17] [cmd.010] cmd_props.attach_command(cmd.command_obj()) [THR:006176] [20.03.2013 08:20:21] [cmd.010] PREPARE STMT:[bstr"select _unicode_fss 'раздва' from dual"] [THR:006176] [20.03.2013 08:20:21] ERROR: [cmd|cmd.010.cn_UNICODE_FSS.marker_unicode_fss.str_7] Preparing a command 1. [LCPI.IBProvider.3]: Ошибка подготовки SQL выражения. unable to allocate memory from operating system Result code=DB_E_ERRORSINCOMMAND - [test thread #6] [THR:008824] [20.03.2013 08:20:28] [cmd.010] Prepare Command: "select _win1251 '""' from dual" [THR:008824] [20.03.2013 08:20:28] [cmd.010] cmd_props.attach_command(cmd.command_obj()) [THR:008824] [20.03.2013 08:20:28] [cmd.010] PREPARE STMT:[bstr"select _win1251 '""' from dual"] [THR:008824] [20.03.2013 08:20:28] ERROR: [cmd|cmd.010.cn_UNICODE_FSS.marker_win1251.str_5] Preparing a command 1. [LCPI.IBProvider.3]: Ошибка подготовки SQL выражения. unable to allocate memory from operating system Result code=DB_E_ERRORSINCOMMAND - [VM configuration] Virtual Box, XP SP2, RAM: 512MB Kovalenko Dmitry. PS. Hm. Seem I should convert your "unable to allocate memory from operating system" into E_OUTOFMEMORY error code :) 2013/3/20 Vlad Khorsun > 19.03.2013 21:52, Dmitry Kovalenko wrote: > > Hi > > > > Work with server from multiple clients [IBProvider test system]: > > > > firebird.exe!set_server(rem_port * port=0x, unsigned short > flags=56) Строка 5455 + 0x6 байтC++ > > >firebird.exe!SRVR_main(rem_port * main_port=0x, unsigned short > flags=56) Строка 1058 + 0xe байтC++ > > firebird.exe!service_connection(rem_port * port=0x) Строка 537 > + 0x14 байтC++ > > firebird.exe!process_connection_thread(void * arg=0x) Строка > 370 + 0x9 байтC++ > > firebird.exe!`anonymous namespace'::ThreadArgs::run() Строка 73 + 0x1f > байтC++ > > firebird.exe!threadStart(void * arg=0x47d8cdf8) Строка 89C++ > > msvcr100d.dll!_callthreadstartex() Строка 314 + 0xf байтC > > msvcr100d.dll!_threadstartex(void * ptd=0x034c7688) Строка 297C > >Do you have something at firebird.log ? > > Regards, > Vlad > > > > -- > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > Firebird-Devel mai
Re: [Firebird-devel] FB3 crash
On Wed, Mar 20, 2013 at 08:36:43AM +0400, Dmitry Kovalenko wrote: > - [fresh crash] > > firebird.exe!set_server(rem_port * port=0x, unsigned short flags=56) > Строка 5455 + 0x6 байт C++ > firebird.exe!SRVR_main(rem_port * main_port=0x, unsigned short > flags= > 56) Строка 1058 + 0xe байт C++ > firebird.exe!service_connection(rem_port * port=0x) Строка 537 + > 0x14 байт C++ > firebird.exe!process_connection_thread(void * arg=0x) Строка 370 + > 0x9 байт C++ > firebird.exe!`anonymous namespace'::ThreadArgs::run() Строка 73 + 0x1f байт > C++ > firebird.exe!threadStart(void * arg=0x3af533b4) Строка 89 C++ > msvcr100d.dll!_callthreadstartex() Строка 314 + 0xf байт C > msvcr100d.dll!_threadstartex(void * ptd=0x056c9408) Строка 297 C > > - [firebird .log] > VXP-FB30 Wed Mar 20 08:20:17 2013 > unable to allocate memory from operating system > > VXP-FB30 Wed Mar 20 08:20:28 2013 > XNET error: Failed to allocate server port for communication > operating system directive CreateFileMapping at line 2050 failed > Файл подкачки слишком мал для завершения операции. Apparently the problem is that xnet_connect_wait_thread() expects XNET_connect() to throw an exception upon error but for some errors, XNET_connect() simply returns NULL. So the solution is either to check return value for NULL in xnet_connect_wait_thread() (as inet_connect_wait_thread() does) or throw exception instead of returning NULL, either in XNET_connect() or as deep as in connect_server() (in src/remote/os/win32/xnet.cpp). I'm not familiar with the code enough to decide which option is preferrable. BtW, the same problem is likely with wnet_connect_wait_thread() which doesn't check return value of WNET_connect() either (but I didn't check whether it can actually return NULL). Michal Kubeček -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] FB3 crash
> So the solution is either to check return value for NULL in > xnet_connect_wait_thread() (as inet_connect_wait_thread() does) or throw > exception instead of returning NULL, either in XNET_connect() or as deep > as in connect_server() (in src/remote/os/win32/xnet.cpp). I'm not > familiar with the code enough to decide which option is preferrable. > > BtW, the same problem is likely with wnet_connect_wait_thread() which > doesn't check return value of WNET_connect() either (but I didn't check > whether it can actually return NULL). Yes, the bug is in xnet_connect_wait_thread() and in wnet_connect_wait_thread(). But in v2.5 there was correct code, so bug was introduced in trunk only. So far i'm failed to see revision before 51654, i.e. before srvr_w32.cpp was moved from src/remote/os/win32 to the src/remote/server/os/win32... Regards, Vlad -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] FB3 crash
On Wed, Mar 20, 2013 at 01:51:31PM +0200, Vlad Khorsun wrote: > But in v2.5 there was correct code, so bug was introduced in trunk only. > > So far i'm failed to see revision before 51654, i.e. before srvr_w32.cpp > was moved > from src/remote/os/win32 to the src/remote/server/os/win32... It seems to be introduced after the move, by SVN revision 51742 / git commit 88c0578f (Corrections for new build system. Work in progress...). Michal Kubeček -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] FB3 crash
>> But in v2.5 there was correct code, so bug was introduced in trunk only. >> >> So far i'm failed to see revision before 51654, i.e. before srvr_w32.cpp >> was moved >> from src/remote/os/win32 to the src/remote/server/os/win32... > > It seems to be introduced after the move, by SVN revision 51742 / git > commit 88c0578f (Corrections for new build system. Work in progress...). You are correct, thanks. Fix is committed. Regards, Vlad -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] FB3 crash
> I think, crash can reproduced without any problem ... Could you test just committed patch for it ? Thanks, Vlad -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] FB3 crash
Uge ... sorry - yes, of course :) Kovalenko Dmitry 2013/3/20 Vlad Khorsun > > I think, crash can reproduced without any problem ... > > Could you test just committed patch for it ? > > Thanks, > Vlad > > > -- > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > Firebird-Devel mailing list, web interface at > https://lists.sourceforge.net/lists/listinfo/firebird-devel > -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_marFirebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] FB3 crash
Hi again Stack of crash: > engine12.dll!EXE_unwind(Jrd::thread_db * tdbb=0x0145f8e8, Jrd::jrd_req * request=0x) Строка 939 + 0x3 байт C++ engine12.dll!JRD_start(Jrd::thread_db * tdbb=0x0145f8e8, Jrd::jrd_req * request=0x, Jrd::jrd_tra * transaction=0x452502c8) Строка 7188 + 0xd байт C++ engine12.dll!Jrd::DsqlDmlRequest::execute(Jrd::thread_db * tdbb=0x0145f8e8, Jrd::jrd_tra * * traHandle=0x0145f9a8, Firebird::IMessageMetadata * inMetadata=0x02cadb18, const unsigned char * inMsg=0x5124868c, Firebird::IMessageMetadata * outMetadata=0x04995f54, unsigned char * outMsg=0x, bool singleton=false) Строка 749 + 0x17 байт C++ engine12.dll!DSQL_execute(Jrd::thread_db * tdbb=0x0145f8e8, Jrd::jrd_tra * * tra_handle=0x0145f9a8, Jrd::dsql_req * request=0x52c01104, bool flOpenCursor=true, Firebird::IMessageMetadata * in_meta=0x02cadb18, const unsigned char * in_msg=0x5124868c, Firebird::IMessageMetadata * out_meta=0x04995f54, unsigned char * out_msg=0x) Строка 188 + 0x2c байт C++ engine12.dll!Jrd::JStatement::openCursor(Firebird::IStatus * user_status=0x0145fb14, Firebird::ITransaction * transaction=0x0867b560, Firebird::IMessageMetadata * inMetadata=0x02cadb18, void * inBuffer=0x5124868c, Firebird::IMessageMetadata * outMetadata=0x04995f54) Строка 4255 + 0x46 байт C++ fbclient.dll!Why::YStatement::openCursor(Firebird::IStatus * status=0x0145fb14, Firebird::ITransaction * transaction=0x04dba80c, Firebird::IMessageMetadata * inMetadata=0x02cadb18, void * inBuffer=0x5124868c, Firebird::IMessageMetadata * outMetadata=0x04995f54) Строка 3979 + 0x40 байт C++ firebird.exe!rem_port::fetch(p_sqldata * sqldata=0x1870c87c, packet * sendL=0x1870c350) Строка 3053 + 0x68 байт C++ firebird.exe!process_packet(rem_port * port=0x3f80dde8, packet * sendL=0x1870c350, packet * receive=0x1870c644, rem_port * * result=0x0145fea4) Строка 4171 C++ firebird.exe!loopThread(void * __formal=0x003a) Строка 5675 + 0x4f байт C++ firebird.exe!`anonymous namespace'::ThreadArgs::run() Строка 73 + 0x1f байт C++ firebird.exe!threadStart(void * arg=0x008315a8) Строка 89 C++ msvcr100d.dll!_callthreadstartex() Строка 314 + 0xf байт C msvcr100d.dll!_threadstartex(void * ptd=0x007c4f38) Строка 297 C No messages in firebird.log. Common error on client side: [THR:007096] [20.03.2013 18:12:30] [cmd.009] cmd_props.attach_command(cmd.command_obj()) [THR:007096] [20.03.2013 18:12:30] [cmd.009] PREPARE STMT:[bstr"dual /*раздва*/"] [THR:007096] [20.03.2013 18:12:30] [cmd.009] [THR:007096] [20.03.2013 18:12:30] ERROR: [cmd.009] Preparing a command 1. [LCPI.IBProvider.3]: Ошибка выборки данных результирующего множества. Error reading data from the connection. Неопознанная ошибка --- Kovalenko Dmitry 2013/3/20 Dmitry Kovalenko > Uge ... sorry - yes, of course :) > > Kovalenko Dmitry > > > 2013/3/20 Vlad Khorsun > >> > I think, crash can reproduced without any problem ... >> >> Could you test just committed patch for it ? >> >> Thanks, >> Vlad >> >> >> -- >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_d2d_mar >> Firebird-Devel mailing list, web interface at >> https://lists.sourceforge.net/lists/listinfo/firebird-devel >> > > -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_marFirebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel