Affects: Spring Framework: 5.3.29 Spring Boot: 2.7.14

Stopping Spring Boot application results in a stackoverflow error.

Logging: 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping bean 'resourcePatternResolver' of type [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] 2023-08-29 11:29:38.787 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483647 2023-08-29 11:29:38.787 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483646 2023-08-29 11:29:38.787 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0 2023-08-29 11:29:38.787 TRACE 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping bean 'resourcePatternResolver' of type [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] 2023-08-29 11:29:38.788 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483647 2023-08-29 11:29:38.788 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483646 2023-08-29 11:29:38.788 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0 2023-08-29 11:29:38.788 TRACE 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping bean 'resourcePatternResolver' of type [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] 2023-08-29 11:29:38.788 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483647 2023-08-29 11:29:38.788 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483646 2023-08-29 11:29:38.788 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0 2023-08-29 11:29:38.788 TRACE 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping bean 'resourcePatternResolver' of type [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] 2023-08-29 11:29:38.788 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483647 2023-08-29 11:29:38.788 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483646 2023-08-29 11:29:38.788 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0 2023-08-29 11:29:38.788 TRACE 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping bean 'resourcePatternResolver' of type [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] 2023-08-29 11:29:38.789 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483647 2023-08-29 11:29:38.789 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483646 2023-08-29 11:29:38.789 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0 2023-08-29 11:29:38.789 TRACE 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping bean 'resourcePatternResolver' of type [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] 2023-08-29 11:29:38.789 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483647 2023-08-29 11:29:38.789 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483646 2023-08-29 11:29:38.789 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0 2023-08-29 11:29:38.789 TRACE 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping bean 'resourcePatternResolver' of type [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] 2023-08-29 11:29:38.790 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483647 2023-08-29 11:29:38.790 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483646 2023-08-29 11:29:38.790 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0 2023-08-29 11:29:38.790 TRACE 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping bean 'resourcePatternResolver' of type [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] 2023-08-29 11:29:38.790 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483647 2023-08-29 11:29:38.790 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483646 2023-08-29 11:29:38.790 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0 2023-08-29 11:29:38.790 TRACE 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping bean 'resourcePatternResolver' of type [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] 2023-08-29 11:29:38.791 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483647 2023-08-29 11:29:38.791 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483646 2023-08-29 11:29:38.791 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0 2023-08-29 11:29:38.791 TRACE 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping bean 'resourcePatternResolver' of type [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] 2023-08-29 11:29:38.791 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483647 2023-08-29 11:29:38.791 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483646 2023-08-29 11:29:38.791 DEBUG 16469 --- [ restartedMain] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0

Comment From: bclozel

Can you provide a minimal sample application that reproduces the problem? Ideally, something we can git clone, or a zip file attached to this issue.

Comment From: haiko-ritense

I will try. The context here is that an assert condition failed.

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.