Core Dump Occurs When glibc 2.28 Is Used to Run Services and the malloc Interface Is Invoked
Symptom
Core dump occurs when video parsing and object recognition services are running in the Docker environment of glibc 2.28. The stack information shows that an exception occurs when the malloc interface of glibc is invoked, as shown in the following figure.
Figure 1 Stack information
Solution
This issue is caused by a bug in glibc 2.28, which has been fixed in glibc 2.29. You can modify the malloc interface by setting the corresponding environment variable before executing services. The configuration command is as follows:
1
|
export GLIBC_TUNABLES=glibc.malloc.tcache_count=0 |
Parent topic: Appendix C: Installation Troubleshooting