<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://bugs.maemo.com/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>maemo.org wiki - User contributions [en]</title>
		<link>http://bugs.maemo.com/Special:Contributions/173.212.200.243</link>
		<description>From maemo.org wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.5-7</generator>
		<lastBuildDate>Sat, 18 Apr 2026 05:13:52 GMT</lastBuildDate>
		<item>
			<title>Documentation/devtools/maemo5/sp-rich-core</title>
			<link>http://bugs.maemo.com/Documentation/devtools/maemo5/sp-rich-core</link>
			<guid>http://bugs.maemo.com/Documentation/devtools/maemo5/sp-rich-core</guid>
			<description>&lt;p&gt;173.212.200.243:&amp;#32;/* 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;
''sp-rich-core'' 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 ''rich-core-extract'' (from '''sp-rich-core-postproc''' package) to extract the information from a rich core dump.&lt;br /&gt;
&lt;br /&gt;
== Packages ==&lt;br /&gt;
&lt;br /&gt;
'''source''': sp-rich-core&lt;br /&gt;
&lt;br /&gt;
'''binary''': 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'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 ''crasher'' 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://www.mac-how.net Mac-how]&lt;br /&gt;
[[Category:Fremantle]]&lt;/div&gt;</description>
			<pubDate>Thu, 30 Sep 2010 10:06:06 GMT</pubDate>			<dc:creator>173.212.200.243</dc:creator>			<comments>http://bugs.maemo.com/Talk:Documentation/devtools/maemo5/sp-rich-core</comments>		</item>
	</channel>
</rss>