<p>Following this question:<br>
<a href="https://stackoverflow.com/questions/49224/good-crash-reporting-library-in-c">Good crash reporting library in c#</a></p>

<p>Is there any library like CrashRpt.dll that does the same on Linux?  That is, generate a failure report including a core dump and any necessary environment and notify the developer about it?</p>

<p>Edit: This seems to be a duplicate of <a href="https://stackoverflow.com/questions/18265/getting-stack-traces-on-unix-systems-automatically">this question</a></p>

[{'answer_id': 49264, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>Compile your code with debug symbols, enter unlimit coredumpsize in your shell and you\'ll get a coredump in the same folder as the binary. Use gdb/ddd - open the program first and then open the core dump. You can check <a href="http://www.agsrhichome.bnl.gov/Controls/doc/crashFiles/crashFiles.html" rel="nofollow noreferrer">this</a> out for additional info.</p>\n'}, {'answer_id': 49271, 'author': 'Nathan Fellman', 'author_id': 1084, 'author_profile': 'https://Stackoverflow.com/users/1084', 'pm_score': 1, 'selected': False, 'text': "<p>@Ionut<br>\nThis handles generating the core dump, but it doesn't handle notifying the developer when other users had crashes.</p>\n"}, {'answer_id': 49531, 'author': 'T Percival', 'author_id': 954, 'author_profile': 'https://Stackoverflow.com/users/954', 'pm_score': 3, 'selected': True, 'text': '<p>See <em><a href="https://stackoverflow.com/questions/18265/getting-stack-traces-on-unix-systems-automatically">Getting stack traces on Unix systems, automatically</a></em> on Stack Overflow.</p>\n'}, {'answer_id': 54243, 'author': 'Martin Del Vecchio', 'author_id': 5397, 'author_profile': 'https://Stackoverflow.com/users/5397', 'pm_score': 0, 'selected': False, 'text': "<p>Note:  there are two interesting registers in an <code>x86</code> seg-fault crash.</p>\n\n<p>The first, <strong>EIP</strong>, specifies the code address at which the exception occurred.  In RichQ's answer, he uses addr2line to show the source line that corresponds to the crash address.  But EIP can be invalid; if you call a function pointer that is null, it can be <code>0x00000000</code>, and if you corrupt your call stack, the return can pop any random value into EIP.</p>\n\n<p>The second, <strong>CR2</strong>, specifies the data address which caused the segmentation fault.  In RichQ's example, he is setting up i as a null pointer, then accessing it.  In this case, CR2 would be <code>0x00000000</code>.  But if you change:</p>\n\n<pre><code>int j = *i\n</code></pre>\n\n<p>to:</p>\n\n<pre><code>int j = i[2];\n</code></pre>\n\n<p>Then you are trying to access address <code>0x00000008</code>, and that's what would be found in CR2.  </p>\n"}, {'answer_id': 57144, 'author': 'Martin Del Vecchio', 'author_id': 5397, 'author_profile': 'https://Stackoverflow.com/users/5397', 'pm_score': 0, 'selected': False, 'text': "<p>Nathan, under what circumstances in a segment base non-zero?  I've never seen that occur in my 5 years of Linux application development.</p>\n\n<p>Thanks.</p>\n"}, {'answer_id': 57235, 'author': 'Nathan Fellman', 'author_id': 1084, 'author_profile': 'https://Stackoverflow.com/users/1084', 'pm_score': 0, 'selected': False, 'text': "<p>@Martin</p>\n\n<p>I do architectural validation for x86, so I'm <em>very</em> familiar with the architecture the processor provides, but <em>very un</em>familiar with how it's used.  That's what I based my comment on.  If CR2 can be counted on to give the correct answer, then I stand corrected.</p>\n"}, {'answer_id': 58055, 'author': 'Martin Del Vecchio', 'author_id': 5397, 'author_profile': 'https://Stackoverflow.com/users/5397', 'pm_score': 0, 'selected': False, 'text': "<p>Nathan, I wasn't insisting that you were incorrect; I was just saying that in my (limited) experience with Linux, the segment base is always zero.  Maybe that's a good question for me to ask...</p>\n"}]
['https://Stackoverflow.com/questions/49251', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1084/']