This is short description of the BugCatcher Mode. This is a running mode, which allows to catch a BOINC client and a BOINC apps bugs caused by signals (SIGSEGV, SIGILL etc). These errors causes a 'compute error'. I decided to add possibility to catch these errors on the user smartphone by a special running mode.
BugCatcher Mode. Option in Native Client and same screen.
BugCatcher mode uses a 'ptrace' syscall to get informations about a process state and a process stack. A stock Android needs a debuggable application. A debuggable (a eligible to run a BugCatch mode) NativeBOINC version is available here.
A BugCatcher notification (inform about bugs).
To enable this mode, a 'Bug catcher mode' checkbox should be checked and a BOINC client should be restarted. Now a BOINC client is in BugCatcher mode. NativeBOINC waits for signals and saves them in its files (user will be notified via special notification'). Saved a bug reports can be saved in SDCard (Save to SDCard option) and can be sent to me (author) ('Send bugs' option).
NOTICE: a 'Send Bugs' causes a clearing bug list. A 'Save to SDCard' option should be used before.
A Bug report contains:
- a Android version
- a kernel version
- a smaprthone model info
- a NativeBOINC version
- a catch time
- program command line
- signal informations (signal number, signal code, exit code)
- additional signal info (system time and user time for process)
- process state (registers, memory mappings list)
- a process stack
Comments: