Issue Details (XML | Word | Printable)

Key: CORE-5859
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Maxim Kuzmin
Votes: 0
Watchers: 3

If you were logged in you would be able to see more operations.
Firebird Core

Access violation with text value of parameter LockMemSize

Created: 24/Jun/18 10:36 PM   Updated: 27/Jun/18 07:30 AM
Component/s: None
Affects Version/s: 2.5.7
Fix Version/s: None

QA Status: No test

 Description  « Hide
We using FB 2.5.7 x32. When I in firebird.conf changing value of parameter LockMemSize from default value 1048576 to "2M" or other, I can't connect to server - when using fbembed.dll, get access violation in dll, when try connect to server - "Error writing data to the connection.". In FB 3.0 using "2M" work without problem.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Dmitry Yemanov added a comment - 25/Jun/18 04:12 AM
Literal suffixes K/M/G were introduced in FB3, they are not expected to work in FB 2.5. That said, the server surely shouldn't crash.

Alexander Peshkov added a comment - 25/Jun/18 08:06 AM
With 2 bytes of shared lock memory? Which is less than header size? I'd say crash is almost expected behavior :) Certainly we can add some protection but if we decide to do it protection code should be applied systematically to all .conf files, not only single value.

Sean Leyne added a comment - 25/Jun/18 02:16 PM
Based on the comments, it seems this case is "Won't Fix" -- support for K/M/G was only added to v3.x, "protection code" logic for .conf file values is a separate feature request (though related to this issue)

Maxim Kuzmin added a comment - 27/Jun/18 07:30 AM
Sean Leyne, I agree with "Won't Fix". Can you create a ticket for implementation protection logic? It will be a little difficult for me to describe it.