β

mac osx 下valgrind 检测localtime 内存异常

Fishnet-SOA架构引擎 164 阅读

still reachable

==31040== 16 bytes in 1 blocks are still reachable in loss record 5 of 81
==31040==    at 0x1013B3D81: malloc (vg_replace_malloc.c:303)
==31040==    by 0x1017DCF74: _nc_table_new (in /usr/lib/system/libsystem_notify.dylib)
==31040==    by 0x1017D88D5: _notify_init_globals (in /usr/lib/system/libsystem_notify.dylib)
==31040==    by 0x1017E6FC3: _os_once (in /usr/lib/system/libsystem_platform.dylib)
==31040==    by 0x1017E6F8F: _os_alloc_once (in /usr/lib/system/libsystem_platform.dylib)
==31040==    by 0x1017DA2C0: notify_register_check (in /usr/lib/system/libsystem_notify.dylib)
==31040==    by 0x1015A8408: notify_register_tz (in /usr/lib/system/libsystem_c.dylib)
==31040==    by 0x1015A7E73: tzsetwall_basic (in /usr/lib/system/libsystem_c.dylib)
==31040==    by 0x1015A98AA: localtime_r (in /usr/lib/system/libsystem_c.dylib)
==31040==    by 0x10000158C: logWrite (log.c:66)
==31040==    by 0x1000029EA: fishnetWorkerRun (fishnet.c:119)
==31040==    by 0x1000010FA: main (main.c:56)
作者:Fishnet-SOA架构引擎
原文地址:mac osx 下valgrind 检测localtime 内存异常, 感谢原作者分享。