Bug #21207 | Connector/J debug version; (3.1.12) crashes and (3.1.13) does not log | ||
---|---|---|---|
Submitted: | 21 Jul 2006 8:35 | Modified: | 19 Sep 2006 1:48 |
Reporter: | Roberto Agostino | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S5 (Performance) |
Version: | 3.1.12 - 3.1.13 | OS: | Windows (Windows XP) |
Assigned to: | CPU Architecture: | Any |
[21 Jul 2006 8:35]
Roberto Agostino
[21 Jul 2006 12:20]
Roberto Agostino
The crash succeeds in the method asSql(boolean), because the parameters array is null (I used a preparedStatement without parameter) and the index is 1; when it arrives to array[1] --> Nullpointer.exception. When I have a higher debug level the asSql(boolean) method is not invoked.
[29 Aug 2006 19:00]
Tonci Grgin
Roberto thanks for your problem report. Looks like the bugfix we used doesn't work for the case of prepared statement with no parameters. Basically, we check if parameters are null which means statement is closed, and eligible for GC as far as the driver's concerned, but client my still have access to it. I don't know what you mean by "log trace (DEBUG) is reduced." though. We were unable to reproduce crash with 3.1.12 so I would have to ask you to provide full stack trace, and your log.
[30 Aug 2006 6:47]
Roberto Agostino
Four log files of versions 3.1.12 and 3.1.13, in debug and error level log.
Attachment: logs.zip (application/x-zip-compressed, text), 15.08 KiB.
[30 Aug 2006 6:52]
Roberto Agostino
I uploaded a zip archive with four log files. There are the 2 files for version 3.1.12 (free crash the error level and debug level with crash), and the other 2 for version 3.1.13, both without crashes, although the log seems the same.
[30 Aug 2006 18:10]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/11096