<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><p style="margin: 0px;" data-mce-style="margin: 0px;">Hi Christian,</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">I looked and there is no log for apport in /var/log/. Also I check dmesg and I <br>now see this error.</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">[2920471.605928] mdadm[26249]: segfault at 8 ip 00007f6cb8f0ed16 sp <br>00007fffd5bb20e8 error 4 in libc-2.23.so[7f6cb8e84000+1c0000]<br>[2920471.606068] Core dump to |/usr/share/apport/apport 15730 11 0 26249 pipe <br>failed</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">Which is different than before. I have never seen the core dump error before. <br>Any ideas on what that means? Sounds like apport isn't working correctly.</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">Thanks!</p><p style="margin: 0px;" data-mce-style="margin: 0px;">Tyler</p></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Christian Ehrhardt" <christian.ehrhardt@canonical.com><br><b>To: </b>"Tyler Petersen" <tpetersen@xes-inc.com><br><b>Cc: </b>"ubuntu-server" <ubuntu-server@lists.ubuntu.com><br><b>Sent: </b>Thursday, June 23, 2016 1:08:09 AM<br><b>Subject: </b>Re: Segfaults<br><div><br></div><div dir="ltr">Hi Tyler,<div>well in that case we have to find why your apport isn't collecting the crash, because that is the start to look deeper into it.</div><div>There is /var/log/apport* which might help you to understand what is going on.</div><div><br></div><div>I quickly ran this:<br><div>#include <signal.h></div><div>int main()</div><div>{</div><div> raise(SIGSEGV);</div><div>}</div></div><div><br></div><div>And got:</div><div><div>cat /var/log/apport.log</div><div>ERROR: apport (pid 26269) Thu Jun 23 07:50:47 2016: called for pid 26268, signal 11, core limit 0</div><div>ERROR: apport (pid 26269) Thu Jun 23 07:50:47 2016: executable: /tmp/segfaultme (command line "./segfaultme")</div><div>ERROR: apport (pid 26269) Thu Jun 23 07:50:47 2016: executable does not belong to a package, ignoring</div></div><div><br></div><div>Well that is fair, but at least it picked up the fault happening for sure.</div><div><br></div><div>Next I let something segfault that is in a package</div><div>md5sum /dev/urandom &<br></div><div>kill --signal SIGSEGV $!<br></div><div><br></div><div>Here I already got my "there was a crash popup by apport" since I'm on a desktop.</div><div>In the log I found:</div><div><div>ERROR: apport (pid 28384) Thu Jun 23 08:01:01 2016: called for pid 28159, signal 11, core limit 0</div><div>ERROR: apport (pid 28384) Thu Jun 23 08:01:01 2016: executable: /usr/bin/md5sum (command line "md5sum /dev/urandom")</div><div>ERROR: apport (pid 28384) Thu Jun 23 08:01:01 2016: gdbus call error: Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files</div><div>ERROR: apport (pid 28384) Thu Jun 23 08:01:01 2016: debug: session gdbus call: </div><div>ERROR: apport (pid 28384) Thu Jun 23 08:01:02 2016: wrote report /var/crash/_usr_bin_md5sum.1000.crash</div></div><div><br></div><div><br></div><div>Debugging starts like:</div><div>sudo apport-retrace --stdout --rebuild-package-info /var/crash/_usr_bin_md5sum.1000.crash<br></div><div>sudo apport-retrace --rebuild-package-info --gdb /var/crash/_usr_bin_md5sum.1000.crash<br></div><div><br></div><div>I hope that helps to find why crashes aren't collected for you and then also about the first few steps into debugging if you like.</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(136,136,136);font-size:12.8px">Christian Ehrhardt</span><div style="color:rgb(136,136,136);font-size:12.8px">Software Engineer, Ubuntu Server</div><div style="color:rgb(136,136,136);font-size:12.8px">Canonical Ltd</div></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, Jun 22, 2016 at 9:45 PM, Tyler Petersen <span dir="ltr"><<a href="mailto:tpetersen@xes-inc.com" target="_blank">tpetersen@xes-inc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"><div>Hi everyone, </div><div><br></div><div>I am still having problems with this. I made sure apport was running and the /var/crash directory exists. But when </div><div>a segfault happens nothing is written to the directory. The segfaults also seem to come and go. </div><div><br></div><div>Thanks,</div><div><br></div><div>Tyler</div><div><br></div><hr><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><span class=""><b>From: </b>"Christian Ehrhardt" <<a href="mailto:christian.ehrhardt@canonical.com" target="_blank">christian.ehrhardt@canonical.com</a>><br><b>To: </b>"Tyler Petersen" <<a href="mailto:tpetersen@xes-inc.com" target="_blank">tpetersen@xes-inc.com</a>><br><b>Cc: </b>"ubuntu-server" <<a href="mailto:ubuntu-server@lists.ubuntu.com" target="_blank">ubuntu-server@lists.ubuntu.com</a>><br><b>Sent: </b>Wednesday, June 15, 2016 10:47:37 AM<br><b>Subject: </b>Re: Segfaults<br><div><br></div></span><div><div class="h5"><div dir="ltr">Hi Tyler,<div>when an appliaction is crashing it should leave a .crash file in /var/crash which stores debugging information.</div><div>Base on that you can automatically report a bug that has most of the info to start with.</div><div>See <a href="https://help.ubuntu.com/community/ReportingBugs#Crash_reports" target="_blank">https://help.ubuntu.com/community/ReportingBugs#Crash_reports</a> for more.</div><div><br></div><div>If you want to look into it more yourself I'd recommend starting with</div><div><a href="https://wiki.ubuntu.com/DebuggingProgramCrash" target="_blank">https://wiki.ubuntu.com/DebuggingProgramCrash</a><br></div><div><a href="https://www.piware.de/2011/08/apport-retrace-made-useful/" target="_blank">https://www.piware.de/2011/08/apport-retrace-made-useful/</a><br></div><div><br></div><div>Kind regards,</div><div>Christian</div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(136,136,136);font-size:12.8px">Christian Ehrhardt</span><div style="color:rgb(136,136,136);font-size:12.8px">Software Engineer, Ubuntu Server</div><div style="color:rgb(136,136,136);font-size:12.8px">Canonical Ltd</div></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, Jun 15, 2016 at 3:55 PM, Tyler Petersen <span dir="ltr"><<a href="mailto:tpetersen@xes-inc.com" target="_blank">tpetersen@xes-inc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"><div><span style="font-family:monospace"><span style="background-color:#ffffff">Hi everyone, </span><br>We are currently experiencing some odd issues on our ubuntu servers (14.04). We <br>keep seeing segfault messages for mdadm but we are not sure if they are a bug or <br>a real problem. The servers are two completely different physical boxes. Both <br>are running the 3.13.0-88-generic kernal and mdadm version 3.2.5-5ubuntu4.3. <br>Here are the two most common errors we see: "[2201076.898901] mdadm[17298]: <br>segfault at 8 ip 00007f3445891d16 sp 00007ffc2cd425f8 error 4 in <br><a href="http://libc-2.23.so" target="_blank">libc-2.23.so</a>[7f3445807000+1c0000]" and "[39304.894195] mdadm[17613]: segfault at <br>0 ip 00007fb29477cd16 sp 00007ffe8ce211d8 error 4 in <br><a href="http://libc-2.23.so" target="_blank">libc-2.23.so</a>[7fb2946f2000+1c0000]". Any help or advice would be greatly <br>apperciated.<br></span></div><div><span style="font-family:monospace">Thanks,</span></div><div><span style="font-family:monospace">Tyler</span></div></div></div><br>--<br>
ubuntu-server mailing list<br>
<a href="mailto:ubuntu-server@lists.ubuntu.com" target="_blank">ubuntu-server@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-server" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-server</a><br>
More info: <a href="https://wiki.ubuntu.com/ServerTeam" rel="noreferrer" target="_blank">https://wiki.ubuntu.com/ServerTeam</a><br></blockquote></div><br></div>
</div></div></div><div><br></div></div></div></blockquote></div><br></div>
</div><div><br></div></div></body></html>