Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra whitespaces at the end of callstack frames when file:line are not available #584

Closed
derekbruening opened this issue Nov 28, 2014 · 6 comments

Comments

@derekbruening
Copy link
Contributor

From timurrrr@google.com on September 08, 2011 08:34:49

See the lines below (^M was added by vim)

Error #1: UNADDRESSABLE ACCESS: reading 0x028a8ce6-0x028a8ce7 1 byte(s)^M
...
#11 base_unittests.exe!main [c:\chromium\src\base\test\run_all_unittests.cc:8]^M
#12 base_unittests.exe!__tmainCRTStartup [f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c:266]^M
#13 base_unittests.exe!mainCRTStartup [f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c:181]^M
#14 KERNEL32.dll!BaseThreadInitThunk ^M
#15 ntdll.dll!RtlInitializeExceptionChain ^M
#16 ntdll.dll!RtlInitializeExceptionChain ^M

Original issue: http://code.google.com/p/drmemory/issues/detail?id=584

@derekbruening
Copy link
Contributor Author

From bruen...@google.com on September 08, 2011 07:55:09

the column-aligned format is for human consumption. for scripting perhaps you could just turn that feature off.

@derekbruening
Copy link
Contributor Author

From timurrrr@google.com on September 08, 2011 08:18:11

for scripting perhaps you could just turn that feature off.
indeed.

the column-aligned format is for human consumption.
but anyways what's the point to add extra spaces at the end of a callstack line if there's nothing else to print on this line?

@derekbruening
Copy link
Contributor Author

From bruen...@google.com on September 08, 2011 08:23:09

but anyways what's the point to add extra spaces at the end of a callstack line if
there's nothing else to print on this line?
simpler code to pad each field

@derekbruening
Copy link
Contributor Author

From timurrrr@google.com on September 09, 2011 02:07:03

isn't it like
len1 = print_mod_fun();
print_padding(len1, desired);
if (file_and_line_known) {
print_file_and_line();
}
?
If this is the case then the change should be trivial..

@derekbruening
Copy link
Contributor Author

@derekbruening
Copy link
Contributor Author

From derek.br...@gmail.com on September 22, 2011 14:15:09

This issue was closed by revision r536 .

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant