Crash logs and dumps
It is inevitable that software will occasionally fail: sometimes in a controlled and predicted manner that the software itself can cater for, and more rarely in an unexpected and uncontrolled manner, such that the software locks up or just terminates.
When an application crashes in an unexpected manner, the operating system often creates some form of log or dump file to help the developers investigate the reason for the crash. This document describes how to find or create these files for UPDD components on Windows, macOS and Linux. Send them to us, along with any information that helps us reproduce the problem, in a ticket raised at https://www.touch-base.com/contact.
UPDD's own crash dumps and reports are included in the dumps folder of a diagnostics package, so running diagnostics after a crash is often all that is needed.
Windows
On Windows an error in our software may cause the individual program to crash or, in more extreme circumstances, the whole system to crash (often referred to as a blue screen, or BSOD). In both cases we need a memory dump taken at the time of the crash to investigate the issue.
Program crash
The term crash has a specific meaning, and this section only applies to crashes, not general malfunctions. A crash means a software module has stopped executing unexpectedly. There is usually a message to this effect, either a dialog window or an entry in the Windows event log.
UPDD programs use their own exception handlers: when an exception occurs the handler writes a minidump to the UPDD dumps folder (C:\Program Files\UPDD\dumps), and the UPDD diagnostic procedure includes these files in its dumps folder.
To analyse a program crash we need at least a minidump, and in some situations a full process memory dump. If enabled, Windows also takes a minidump, and the path to it is shown under the dialog's technical information or 'view problem details' link. Do not close the dialog until you have located and copied the minidump, as it is often deleted when the dialog is closed. Depending on the configuration of your system you might also find a minidump in the folder <windows>\minidump.
Only the dump files (typically with the suffix .dmp or .mdmp) are useful. If there are several, please send only the relevant ones (i.e. those timestamped around the time of the reported error), as analysing them can be time consuming and this avoids analysing unrelated issues.
On a system with JIT (just in time) debugging installed you might be prompted to open or select a JIT debugger, or third party software might suppress the message altogether or even shut down the system. The dialog shown varies with the Windows version and configuration; this example was taken on a Windows 7 system with JIT installed:

If you use custom exception handling software, the behaviour will likely be different; consult its documentation. Because UPDD components use structured exception handling, which treats system errors as software exceptions, most if not all crashes are reported as 'unhandled exceptions'. The information about the exception itself is not enough to diagnose the issue: we always need the dump.
Using procdump to capture a dump
Where the dump files cannot be obtained as above, this procedure captures one. Download procdump and extract procdump64.exe for UPDD V7 (procdump.exe for UPDD V6). In a command window with admin privileges enter the following commands:
md c:\dumps procdump64 -mp -i c:\dumps

System crash (BSOD)
Request the dump in Control Panel > System > Advanced > Startup and Recovery: select Small memory dump. After a blue screen crash the dump file is in %SystemRoot%\Minidump (or the folder set in the Control Panel). Send the file related to the crash, using its timestamp to find the correct one.
macOS
On macOS, if a program locks up the system shows a spinning beach ball while the program has focus; if a program crashes its functionality is lost and its visual elements, such as menu bar icons or dialogs, just disappear. In both cases you can retrieve a crash or spin log to send us.
Crashes
If one of our components crashes, be it the driver or a program such as the UPDD Daemon or UPDD Commander, macOS may create a crash log in one of two places, depending on whether a user or a system component crashed.
User component crash (UPDD Daemon, UPDD Calibrate, UPDD Commander etc.): the crash log is in the user-level library folder (hence the ~ character) at ~/Library/Logs/DiagnosticReports. It includes the name of the crashing component, such as 'UPDD Commander_[timestamp]_[computer name].crash' as in the example below, or [app name]-[timestamp].ips on macOS 12 and above:


System component crash (the driver): the crash log is in the system-level library folder at /Library/Logs/DiagnosticReports, with a name such as 'updd_[timestamp]_[computer name].crash' or [app name]-[timestamp].ips on macOS 12 and above.
The UPDD diagnostic copies the UPDD reports from both folders into its dumps folder, with a .crash conversion of each .ips file.
The Library folder may be hidden. To open it, choose Go to Folder from the Finder's Go menu and type ~/Library/Logs/DiagnosticReports/ or /Library/Logs/DiagnosticReports/. To make your Library folder permanently visible, type this command in Terminal:
chflags nohidden ~/Library
Lockups
When the beach ball is shown while a menu bar icon or dialog has focus, the application has locked up. Sometimes a lockup eventually makes the application crash, in which case a crash log is created as above. In other cases the beach ball remains until you Force Quit the program:

A locked up program is listed in red text in the list of programs. Before forcing it to quit, take a spin log, which helps identify the point in the program that caused the failure: highlight the locked program in Activity Monitor, where it is listed in red as (Not Responding), run Sample Process and Run Spindump, and send us the output of both. The spin log is in one of the Library folders with the suffix .spin:

Sample request
Occasionally it is appropriate to take a sample of a specific process, for example one using excessive CPU, over a period of time. Start the sample from the command line and give its duration with a command of the form:
sample "process name" 30 -f ~/Desktop/updd_sample_filename.txt
For example:
sample "UPDD Daemon" 30 -f ~/Desktop/updd_daemon_sample.txt sample "UPDD Commander" 30 -f ~/Desktop/updd_commander_sample.txt sample "updd" 30 -f ~/Desktop/updd_sample.txt
The second parameter is the number of seconds to sample for, so these commands sample for 30 seconds and save the file to the desktop. There may be more than one UPDD process with the same name if several accounts are logged in at the same time; the sample command picks the process of the current user, which is the one we need.
Linux
A very useful guide to investigating Linux issues is the Arch Linux step-by-step debugging guide.
If any of our software crashes, most likely with a segmentation fault, we would like a core dump as a minimum to investigate the crash. Typically, to create a core dump:
- Run the command
ulimit -c unlimited. - Make the crash occur again.
- Check there is a core file in the current folder, then run the commands below.
gdb path/to/the/binary path/to/the/corebt
A backtrace is generated, which allows the location of the error to be identified. Send us the backtrace and the core file.
For review
- 50363 said to run
ulimit -c, which only prints the current limit; written asulimit -c unlimited. On distributions using systemd-coredump the core is not written to the current folder (coredumpctl); confirm what we want to say. - 50360 said the UPDD exception handlers write to 'the UPDD dumps folder'; the folder is the dumps folder beside the programs,
C:\Program Files\UPDD\dumps(common/rundiagnostics.cpp:186, and present in an installed V7). The collected_error_count / disable_error_collection settings were already removed by the correction pass (E11). - Dropped the Windows XP crash dialog screenshot ('updd daemon crash.jpg'). A current Windows crash dialog screenshot would be welcome. The macOS crash screenshots date from the .crash era; the .ips names are described in the text.
- The procdump command is written with
procdump64for V7, as the article instructed in words.