(gdb) bt
#0 0x00007f51feb093bd in read () at ../sysdeps/unix/syscall-template.S:81
#1 0x000000000040ee11 in read (__nbytes=1024, __buf=0x7f51e17f9330, __fd=158) at /usr/include/x86_64-linux-gnu/bits/unistd.h:44
#2 close_socket_gracefully (sock=sock@entry=158) at httpserver.c:435
#3 0x000000000040fddb in accept_socket (http_server=0x2308d00) at httpserver.c:507
#4 listen_thread (data=0x2308d00) at httpserver.c:663
#5 0x00007f51fef8df05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6 0x00007f51feb02182 in start_thread (arg=0x7f51e17fa700) at pthread_create.c:312
#7 0x00007f51fe15447d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
close_socket_gracefully函数中调用read的时候挂住