Professional Documents
Culture Documents
- Ramanpreet Singh
Technology Architect ENG
Introduction
Types of exceptions
SRV*<Local-Path>*http://msdl.
microsoft.com/download/symbols
program.
and Settings.
program.
Loading symbols
libraries.
!uniqstack
uf <function-name>
Parameter Validation
The stack trace displays the sequence
of functions/calls executed that led to
crash. Along with the functions, the
actual arguments passed to the calls are
also shown. The argument values can be
analyzed to see if they are different from
the expected values and in that case it
can be compared with the source code to
detect the flaw in the code.
Sometimes, some argument might be
containing NULL which could be the
culprit. So the solution for this would be to
see why it is pointing to NULL and fix the
issue accordingly.
Also good programming practice requires
adding NULL checks this would at least
avoid crash situations.
Viewing Disassembly
Viewing disassembly could help in
debugging the core by mapping the
disassembly with the source code and
finding out which source code line actually
caused the crash.
The disassembly can be viewed by using
the following command:
dis <memory address of the function>
General guidelines
1. Symbols should be loaded correctly before analyzing the core dump so that correct call stack etc. is displayed.
2. Call stack, disassembly, registers contents, memory contents can be helpful in debugging the crash issue and fixing it.
3. Core can be debugged on the different machine and need not to be the same machine where core was created.
About Infosys
Infosys is a global leader in consulting, technology and outsourcing solutions. We enable clients, in
more than 30 countries, to stay a step ahead of emerging business trends and outperform the
competition. We help them transform and thrive in a changing world by co-creating breakthrough
solutions that combine strategic insights and execution excellence.
Visit www.infosys.com to see how Infosys (NYSE: INFY), with $7.4B in annual revenues and 155,000+
employees, is Building Tomorrow's Enterprise today.
www.infosys.com
2013 Infosys Limited, Bangalore, India. All Rights Reserved. Infosys believes the information in this document is accurate as of its publication date; such information is subject to change without notice.
Infosys acknowledges the proprietary rights of other companies to the trademarks, product names and such other intellectual property rights mentioned in this document. Except as expressly permitted,
neither this documentation nor any part of it may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, printing, photocopying, recording or
otherwise, without the prior permission of Infosys Limited and/ or any named intellectual property rights holders under this document.