home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: WPS_PM / WPS_PM.zip / pc2v210.zip / TrapInfo.doc < prev    next >
Text File  |  1999-07-01  |  8KB  |  144 lines

  1. ******************************************************************************
  2.                        Problem Determination Instructions
  3.  
  4.                    PC/2 - Program Commander/2 Version 2.10 for
  5.            IBM OS/2 2.x, OS/2 WARP, WARP Srv. SMP Presentation Manager
  6.                     Copyright (C) by Roman Stangl July, 1999
  7.  
  8.                                Version 2.10 Draft
  9. ******************************************************************************
  10.  
  11. In order to help improving PC/2, I would please you to read the following
  12. very carefully. This information may help me to locate possible problems,
  13. and hopefully will allow me to fix it. As you might not be able to access
  14. the online instructions while PC/2 is having a problem, the instructions
  15. are copied hereinto:
  16.  
  17. PC/2 supports 2 independent ways of reporting unrecoverable errors. One
  18. method is that all unrecoverable errors are appended to a file PC2.TRP, the
  19. other method is to dump the registers and process context to disk when an
  20. unrecoverable error occurred. The later one is valid systemwide once
  21. activated and can only be deactivated after the next reboot again.
  22.  
  23. PC/2 will append to a file named PC2.TRP, which is located in the directory
  24. PC2.EXE is located, whenever it detects an unrecoverable error (that is an
  25. access violation exception or commonly called a "trap"). This file will not
  26. only contain some information that would be also logged by SUPPRESSPOPUPS
  27. (though you can disable this setting), but also a dump of the stack and the
  28. sequence of functions called by walking up the chain of stack frames. PC/2
  29. will terminate eventually after this file has been appended.
  30.  
  31. Whenever you detect the PC2.TRP has been created or is growing, I would
  32. appreciate it very much if you can ZIP and E-mail me that archive MIME-64
  33. encoded together with information which version of PC/2 you were running.
  34. The file PC2.TRP should allow me to find most if not all unrecoverable
  35. errors.
  36.  
  37. Despite of the DUMPPROCESS and SUPPRESSPOPUPS settings in your CONFIG.SYS,
  38. which wouldn't record and dump information anyway for a default installation,
  39. PC/2 can activate these settings in a way dumps will be always taken when PC/2
  40. experiences a problem or you request it (by the option "Diagnostics").
  41. These dumps contain information that will hopefully help me to diagnose and
  42. fix problems, that have not shown up during the extensive tests. I said
  43. hopefully, because this is not a trivial task (a detailed problem description
  44. will therefore be appreciated too), and I have not much experience in that
  45. area yet. However, let's be optimistic and see how to handle dumps.
  46.  
  47. Note: Please don't take dumps without contacting me prior, because the dump is
  48. mostly useless except for some recent OS/2 fixpacks, and it is depending on 
  49. the fixpack level (that is, the tools required to read that dump also need to
  50. be downloaded and updated).
  51.  
  52. PC/2 allows you to take a process dump (which does not terminate PC/2), which
  53. may help me to find bugs and especially hangs. A hang is a situation where
  54. user input is not (currectly) processed for a single application or the
  55. whole system.
  56.  
  57. The following steps will guide you on taking a PC/2 dump:
  58.  
  59.    1. To take a dump, just press and hold the CTRL+Key while clicking with
  60.       mouse button 1 onto PC/2's Overview or SessionBar windows and select the
  61.       menuentry Debug->Dump PC/2.
  62.  
  63.       Note: Taking a process dump may take a few seconds. While the dump is
  64.             taken, your system will be unresponsive to user input. Once a dump
  65.             has been requested, OS/2 will start dumping any process that traps,
  66.             regardless of the previous value of the DUMPPROCESS setting in
  67.             your CONFIG.SYS.
  68.  
  69.    2. OS/2 will then write a unique file named PDUMP.nnn into the root
  70.       directory of your boot drive, where nnn is an index that is incremented
  71.       each time a new process dump is created.
  72.  
  73.    3. If there are multiple PDUMP.nnn files, the one with the highest index
  74.       will be the one you have just taken. You can verify this by searching
  75.       for the string PC2 in the dump files.
  76.  
  77.    4. Please archive the dump file, preferably with InfoZip's ZIP utility, and
  78.       encode it in MIME-64 format (only this format please), if you are going
  79.       to send me the dump via E-mail.
  80.  
  81.    5. As the tool to read the dumps is dependent on the level of OS/2 the dump
  82.       was created with, please drop me a note so that I can verify I can read
  83.       the dump. Most likely we will then agree that you send me the dump via
  84.       E-mail.
  85.  
  86. In addition to take a PC/2 process dump manually, such dumps are also
  87. generated by OS/2 when a fatal unrecoverable error occurs within PC/2 (OS/2
  88. does not take such dumps by default unless you have specified the DUMPPROCESS
  89. statement in your CONFIG.SYS, PC/2 will request such a dump by default, unless
  90. you have explicitely disabled PC/2's diagnostics).
  91.  
  92. If a fatal unrecoverable error (e.g. a access violation) occurs, in addition
  93. to the PC/2 process dump, the system error popup will be suppressed and the
  94. information will be added to the file POPUPLOG.OS2 instead (OS/2 will display
  95. a system error popup unless you have specified the SUPPRESSPOPUPS statement
  96. in your CONFIG.SYS, PC/2 will request to replace the system error popup by
  97. logging to this file, unless you have explicitely disabled PC/2's diagnostics):
  98.  
  99.   1. Due to a fatal unrecoverable error, OS/2 will terminate PC/2 without
  100.      displaying a message. If you note that PC/2 disappears without you having
  101.      selected it to exit, most likely such an error occurred.
  102.  
  103.   2. OS/2 will then append the trap information to the file named POPUPLOG.OS2
  104.      located in the root of your boot drive. This file is human readable,
  105.      therefore you don't have to archive or encode it when sending it vial
  106.      E-mail (though it does not harm if you prefer to do so).
  107.  
  108.   3. Please send me this file via E-mail (after prior contacting me please).
  109.  
  110. In addition to any dump, I need to know exactly which version of the PC/2
  111. modules you are using. PC/2 modules contain the same signature as OS/2
  112. modules, which can be read by running the OS/2 BLDLEVEL utility against these
  113. modules. From an OS/2 commandline please capture the output of the BLDLEVEL
  114. runs (to capture the output by redirection to a file named BuildLvl, you
  115. would enter):
  116.  
  117.     BLDLEVEL PC2.EXE >BuildLvl
  118.     BLDLEVEL PC2Hook.dll >>BuildLvl
  119.     BLDLEVEL PC2BRes.dll >>BuildLvl
  120.     BLDLEVEL PC2VRes.dll >>BuildLvl
  121.     BLDLEVEL PC2Spool.dll >>BuildLvl
  122.     BLDLEVEL Wps2PC2.dll >>BuildLvl
  123.  
  124. Please add this information if you report a problem too.
  125.  
  126. Note: Both, the files POPUPLOG.OS2 and PDUMP.nnn will not be cleared or
  127.       removed automatically. In order to reduce disk space (which is only a
  128.       few kB anyway), you may want to delete these files from time to time.
  129.  
  130. Note: Unfortunately once PC/2 activates that dumps and fatal unrecoverable
  131.       errors will be appended to PDUMP.nnn and POPUPLOG.OS2, these settings
  132.       will stay active even after PC/2 has terminated.
  133.       This will have the side effect, that once PC/2 has activated these
  134.       setting, all dumps will be saved into PDUMP.nnn and fatal unrecoverable
  135.       errors will be appended to POPUPLOG.OS2 and no longer displayed with a
  136.       system error popup, the applications terminates silently.
  137.       There is now way to limit the activation of these settings to PC/2's
  138.       process only.
  139.  
  140. Note: Under Warp 4, the file POPUPLOG.OS2 will be written by default,
  141.       regardless of the setting SUPPRESSPOPUPS (if this setting is active, the
  142.       system error popup just won't be displayed).
  143.  
  144.