DynamoRIO / DynamoRIO/drmemory

xp64 cs2bug-cygwin.exe => missing summary output: asserts printing to stderr at leak scan

Open
#1,002 1 comment 0 reactions 0 assignees View on GitHub
Bug-Assert Migrated OpSys-Cygwin Priority-Medium
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

_From [bruen...@google.com](https://code.google.com/u/109494838902877177630/) on August 31, 2012 14:32:47_

hit this testing 1.5.0-4 RC on xp64

cs2bug built by cl or by mingw works fine

but cygwin has truncated summary in release. in debug that's preceded by
an assert failing to print to stderr. not holding up the release for this
b/c we don't support cygwin, but perhaps we need to revisit the whole console
printing mess. I'm not sure what's new here: I don't recall seeing this
assert before.

0:000> kn
# ChildEBP RetAddr
00 2169c798 18f33b9e ntdll!ZwRaiseHardError+0x12
01 2169c7e8 18eeb5a2 dynamorio!nt_messagebox+0xfe [d:\derek\drmemory\withwiki\trunk\dynamorio\core\win32\ntdll.c @ 3469]
02 2169e008 739d530c dynamorio!dr_messagebox+0xf2 [d:\derek\drmemory\withwiki\trunk\dynamorio\core\x86\instrument.c @ 3529]
03 2169e014 739d5353 drmemorylib!wait_for_user+0xc [d:\derek\drmemory\withwiki\trunk\common\utils.c @ 99]
04 2169e060 7396de2a drmemorylib!drmemory_abort+0x33 [d:\derek\drmemory\withwiki\trunk\common\utils.c @ 127]
05 2169e0e8 739a4dc1 drmemorylib!print_buffer+0x58a [d:\derek\drmemory\withwiki\trunk\common\callstack.c @ 1282]
06 2169e148 739a48dd drmemorylib!report_error_from_buffer+0x401 [d:\derek\drmemory\withwiki\trunk\drmemory\report.c @ 1669]
07 2169e168 739b2753 drmemorylib!print_error_report+0x5d [d:\derek\drmemory\withwiki\trunk\drmemory\report.c @ 2011]
08 2169e330 739861fc drmemorylib!report_leak+0x1543 [d:\derek\drmemory\withwiki\trunk\drmemory\report.c @ 2746]
09 2169e390 739c8070 drmemorylib!client_found_leak+0x2ec [d:\derek\drmemory\withwiki\trunk\drmemory\alloc_drmem.c @ 2318]
0a 2169e470 73927bc6 drmemorylib!malloc_iterate_cb+0xaa0 [d:\derek\drmemory\withwiki\trunk\drmemory\leak.c @ 1099]
0b 2169e4ac 73927ac2 drmemorylib!malloc_iterate_internal+0xf6 [d:\derek\drmemory\withwiki\trunk\common\alloc.c @ 3425]
0c 2169e4c0 73925e91 drmemorylib!malloc_wrap__iterate+0x12 [d:\derek\drmemory\withwiki\trunk\common\alloc.c @ 3438]
0d 2169e4d0 739c17a7 drmemorylib!malloc_iterate+0x11 [d:\derek\drmemory\withwiki\trunk\common\alloc.c @ 2916]
0e 2169e78c 739862d4 drmemorylib!leak_scan_for_leaks+0x1217 [d:\derek\drmemory\withwiki\trunk\drmemory\leak.c @ 1309]
0f 2169e798 7380a8b3 drmemorylib!check_reachability+0x34 [d:\derek\drmemory\withwiki\trunk\drmemory\alloc_drmem.c @ 2352]
10 2169e7a4 18ee5843 drmemorylib!event_exit+0x33 [d:\derek\drmemory\withwiki\trunk\drmemory\drmemory.c @ 397]
11 2169e7d8 18cc06b1 dynamorio!instrument_exit+0xa3 [d:\derek\drmemory\withwiki\trunk\dynamorio\core\x86\instrument.c @ 664]
12 2169e800 18cc0d66 dynamorio!dynamo_shared_exit+0x221 [d:\derek\drmemory\withwiki\trunk\dynamorio\core\dynamo.c @ 958]
13 2169e828 18cc0bbb dynamorio!dynamo_process_exit_cleanup+0x196 [d:\derek\drmemory\withwiki\trunk\dynamorio\core\dynamo.c @ 1221]
0:000> .frame 5
05 2169e0e8 739a4dc1 drmemorylib!print_buffer+0x58a [d:\derek\drmemory\withwiki\trunk\common\callstack.c @ 1282]
0:000> dv
f = 0x00000288
buf = 0x2163d788 "~~Dr.M~~ ???"
sz = 0x75
res = -1

disk has enough space

results.txt is complete at the end
it's the dup print to stderr that's failing:
report_error_from_buffer(STDERR, buf, true);

presumably b/c app has shut down csrss connection

_Original issue: http://code.google.com/p/drmemory/issues/detail?id=1002_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.