StackOverflowError from StringHelper

Description

Since upgrading from Hibernate 5.2.0 to 5.4.0.Final recently, we've been occasionally running into a StackOverflowError coming from org.hibernate.internal.util.StringHelper#replace. Unfortunately, this has been hard to reproduce at will to figure out the nature of the inputs triggering this condition.

Example:

Environment

Java 8, hibernate-core-5.4.0.Final, MySql 5.7,

Status

Assignee

Unassigned

Reporter

Jithu Menon

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Worked in

5.2.0

Components

Affects versions

Priority

Major
Configure