<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=91.196.159.119</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=91.196.159.119"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/91.196.159.119"/>
	<updated>2026-04-22T01:50:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Documentation/devtools/maemo5/sp-rich-core&amp;diff=8410</id>
		<title>Documentation/devtools/maemo5/sp-rich-core</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Documentation/devtools/maemo5/sp-rich-core&amp;diff=8410"/>
		<updated>2010-10-26T12:37:26Z</updated>

		<summary type="html">&lt;p&gt;91.196.159.119: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Devtools}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;sp-rich-core&#039;&#039; is a package that installs an init script that pipes core dumps through a script. This script collects lots of information from the system and then saves that and the core dump data compressed into a file. The collected information includes process SMAPS data, most of /proc data, last lines from syslog, df and ifconfig output etc.&lt;br /&gt;
&lt;br /&gt;
Compressing the core dumps (with lzo) actually speeds up saving them.&lt;br /&gt;
&lt;br /&gt;
Use &#039;&#039;rich-core-extract&#039;&#039; (from &#039;&#039;&#039;sp-rich-core-postproc&#039;&#039;&#039; package) to extract the information from a rich core dump.&lt;br /&gt;
&lt;br /&gt;
== Packages ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;source&#039;&#039;&#039;: sp-rich-core&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;binary&#039;&#039;&#039;: sp-rich-core, sp-rich-core-postproc&lt;br /&gt;
&lt;br /&gt;
== Usage Examples ==&lt;br /&gt;
&lt;br /&gt;
Create a small program that&#039;s sure to crash:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
- - - snip crasher.c - - -&lt;br /&gt;
#include &amp;lt;string.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
   char *p = 0;&lt;br /&gt;
   memcpy(p, 0x00, sizeof(p));&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
- - - snap crasher.c - - -&lt;br /&gt;
&lt;br /&gt;
# gcc -g -o crasher crasher.c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After copying the &#039;&#039;crasher&#039;&#039; program to your device and having installed the sp-rich-core package, you can now run the program.&lt;br /&gt;
&lt;br /&gt;
NOTE: The daemon /usr/bin/crash_reporter_daemon that is installed with sp-rich-core package will create the /home/user/MyDocs/core-dumps directory and also on all MMC media, so if you are not seeing any files appear in /home/user/MyDocs/core-dumps/ then check the locations /media/mmc*/core-dumps/ as well.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Nokia-N900-40-12:~# ./crasher &lt;br /&gt;
Segmentation fault (core dumped)&lt;br /&gt;
&lt;br /&gt;
Nokia-N900-40-12:~# cd /home/user/MyDocs/core-dumps/&lt;br /&gt;
Nokia-N900-40-12:/home/user/MyDocs/core-dumps# rich-core-extract crasher-7764-11-2887.rcore.lzo &lt;br /&gt;
&lt;br /&gt;
# by default this will create a directory of the same name without the suffix&lt;br /&gt;
&lt;br /&gt;
Nokia-N900-40-12:/home/user/MyDocs/core-dumps# ls -l crasher-7764-11-2887&lt;br /&gt;
-rw-r--r--    1 user     root            9 Oct  6 12:18 cmdline&lt;br /&gt;
-rw-r--r--    1 user     root           74 Oct  6 12:18 component_version&lt;br /&gt;
-rw-r--r--    1 user     root       135168 Oct  6 12:18 coredump&lt;br /&gt;
-rw-r--r--    1 user     root           31 Oct  6 12:18 date&lt;br /&gt;
-rw-r--r--    1 user     root          646 Oct  6 12:18 df&lt;br /&gt;
-rw-r--r--    1 user     root          217 Oct  6 12:18 fd&lt;br /&gt;
-rw-r--r--    1 user     root         2665 Oct  6 12:18 ifconfig&lt;br /&gt;
-rw-r--r--    1 user     root         1860 Oct  6 12:18 ls_proc&lt;br /&gt;
-rw-r--r--    1 user     root          403 Oct  6 12:18 osso-product-info&lt;br /&gt;
-rw-r--r--    1 user     root           34 Oct  6 12:18 osso_software_version&lt;br /&gt;
-rw-r--r--    1 user     root        21495 Oct  6 12:18 packagelist&lt;br /&gt;
-rw-r--r--    1 user     root        78002 Oct  6 12:18 proc2csv&lt;br /&gt;
-rw-r--r--    1 user     root         5449 Oct  6 12:18 slabinfo&lt;br /&gt;
-rw-r--r--    1 user     root         3723 Oct  6 12:18 smaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The directory will contain lots of potentially useful information in addition to the core dump file.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
[rich-core-dumper man page](/development/documentation/man_pages/rich-core-dumper.html)&lt;br /&gt;
&lt;br /&gt;
[rich-core-extract man page](/development/documentation/man_pages/rich-core-extract.html)&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
[[Documentation/devtools/maemo5/crash-reporter|crash-reporter]], [[Documentation/devtools/maemo5/sp-endurance|sp-endurance]]&lt;br /&gt;
[http://mackeeper.zeobit.com/macbook-pro-running-slow macbook running slow]&lt;br /&gt;
[[Category:Fremantle]]&lt;/div&gt;</summary>
		<author><name>91.196.159.119</name></author>
	</entry>
</feed>