My program uses github.com/shirou/gopsutil/v3/disk for getting disk usage data once a minute, which for aix calls perfstat.FileSystemStat(). About once a day the program dies with SIGTRAP and is restartet by the system resource controller.
When analyzing the /core file i get the following stack trace:
_internal_error(??, ??, ??) at 0xd057df80
_cleanup_push@AF83_37(??, ??, ??, ??) at 0xd058300c
pthread_cleanup_push(??, ??) at 0xd05815ec
__modinit_lock(??) at 0xd0129974
__modfini() at 0xd0196fc8
exit(??) at 0xd018b368
runtime.throw(??, ??) at 0x10054acc
runtime.sigpanic() at 0x1006e51c
runtime.sigtrampgo(??, ??, ??) at 0x10086614
runtime.sigtramp(??, ??, ??) at 0x108168a0
strncpy() at 0x10306768
getfsinfo(??, ??, ??, ??, ??, ??, ??) at 0x103f7f30
get_all_fs(??) at 0x103f80c4
_cgo_022023b15f11_Cfunc_get_all_fs(??) at 0x103f7178
github_0com_1power_x2ddevops_1perfstat.FileSystemStat() at 0x103dc334
github_0com_1shirou_1gopsutil_1v3_1disk.UsageWithContext(??, ??, ??, ??) at 0x10622278
github_0com_1shirou_1gopsutil_1v3_1disk.Usage(??, ??) at 0x1062264c
main.startMetrics(??) at 0x10801438
runtime.kickoff() at 0x10092e90
After some Google-ing i've found https://peeterjoot.wordpress.com/2010/05/05/fun-with-aix-nested-signal-handlers/.
Maybe the SIGTRAP occurs because devname or fsname sometimes is NULL or calloc failed in getfsinfo()
My program uses github.com/shirou/gopsutil/v3/disk for getting disk usage data once a minute, which for aix calls perfstat.FileSystemStat(). About once a day the program dies with SIGTRAP and is restartet by the system resource controller.
When analyzing the /core file i get the following stack trace:
_internal_error(??, ??, ??) at 0xd057df80
_cleanup_push@AF83_37(??, ??, ??, ??) at 0xd058300c
pthread_cleanup_push(??, ??) at 0xd05815ec
__modinit_lock(??) at 0xd0129974
__modfini() at 0xd0196fc8
exit(??) at 0xd018b368
runtime.throw(??, ??) at 0x10054acc
runtime.sigpanic() at 0x1006e51c
runtime.sigtrampgo(??, ??, ??) at 0x10086614
runtime.sigtramp(??, ??, ??) at 0x108168a0
strncpy() at 0x10306768
getfsinfo(??, ??, ??, ??, ??, ??, ??) at 0x103f7f30
get_all_fs(??) at 0x103f80c4
_cgo_022023b15f11_Cfunc_get_all_fs(??) at 0x103f7178
github_0com_1power_x2ddevops_1perfstat.FileSystemStat() at 0x103dc334
github_0com_1shirou_1gopsutil_1v3_1disk.UsageWithContext(??, ??, ??, ??) at 0x10622278
github_0com_1shirou_1gopsutil_1v3_1disk.Usage(??, ??) at 0x1062264c
main.startMetrics(??) at 0x10801438
runtime.kickoff() at 0x10092e90
After some Google-ing i've found https://peeterjoot.wordpress.com/2010/05/05/fun-with-aix-nested-signal-handlers/.
Maybe the SIGTRAP occurs because devname or fsname sometimes is NULL or calloc failed in getfsinfo()