Guardian abnormally terminates SuperServer.exe with code=4294967295 when someone issues call of iscDatabaseInfo() with error buffer size = 0 --------------------------------------------------------------------------------------------------------------------------------------------
Key: CORE-4300 URL: http://tracker.firebirdsql.org/browse/CORE-4300 Project: Firebird Core Issue Type: Bug Components: Guardian Reporter: Pavel Zotov Attachments: FbGetDatabaseinfo_java.zip It seems that there is somewhat like flaw in protection from invalid arguments inside function iscDatabaseInfo. For example, gardian of FB SuperServer 2.5.2 will stops service if we pass buffer size = 0 instead of returning (for instance) just empty buffer. Sample for JayBird (source .java see in attah, class FbGetDatabaseInfo). window #1 ========= java -cp .;jaybird-full-2.2.4.jar FbGetDatabaseInfo output: --------- 23:28:46.421 trying to attach. . . 23:28:46.531 attached to 192.168.0.201/3252:employee 23:28:46.546 trying to gather db statistics. . . --- hangs! no output any more --- After few seconds in firebird.log on host 192.168.0.201: CSMIRROR (Client) Sun Dec 15 23:29:10 2013 "C:\1Install\FIREBIRD_2_5\bin\fbserver.exe": terminated abnormally (4294967295) Window #1 will hang infinitely after that moment. window #2 ======== isql 192.168.0.201/3252:employee -- also hangs :( // no answer during five minutes; after this I've cancelled this waiting BTW, even if we kill window #1 Firebird will not answered for further attempts to connect via ISQL. Guardian service can be terminated only after ~ 1 minute rather than in 1-2 seconds as in common case. =========================== SQL> show version; ISQL Version: WI-V2.5.3.26722 Firebird 2.5 Server version: Firebird/x86/Windows NT (access method), version "WI-V2.5.3.26682 Firebird 2.5" Firebird/x86/Windows NT (remote server), version "WI-V2.5.3.26682 Firebird 2.5/tcp (CSMIRROR)/P12" Firebird/x86/Windows NT (remote interface), version "WI-V2.5.3.26722 Firebird 2.5/tcp (csprog)/P12" on disk structure version 11.2 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel