]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: deinit: correctly deinitialize the proxy and global listener tasks
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Nov 2017 15:53:53 +0000 (16:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Nov 2017 15:57:05 +0000 (16:57 +0100)
commit1f89b1805b308df51a1329aea9a81d2ba55dfedc
tree9f57ea393b215aa73252fdb9346a2b3211b0cad9
parente899af89b5f76bb79efae9fa3d7dda23d7a6f537
BUG/MEDIUM: deinit: correctly deinitialize the proxy and global listener tasks

While using mmap() to allocate pools for debugging purposes, kill -USR1 caused
libc aborts in deinit() on two calls to free() on proxies' tasks and the global
listener task. The issue comes from the fact that we're using free() to release
a task instead of task_free(), so the task was allocated from a pool and released
using a different method.

This bug has been there since at least 1.5, so a backport is desirable to all
maintained versions.
src/haproxy.c