[mythtv] Unable to hit segfault within GDB, but no problem outside of GDB

Michael T. Dean mtdean at thirdcontact.com
Tue May 22 22:41:02 UTC 2012


On 05/22/2012 06:29 PM, danielk wrote:
> On 05/22/2012 06:20 PM, A McDermott wrote:
>> Have a backend segfault which happens every couple of days.  I cannot
>> provide a backtrace as I only hit the segfault when running outside of
>> GDB.  Is there anything in the available information which can assist
>> in debug?
>
> put "ulimit -c unlimited" in your backend startup script and the
> backend will generate a core. Then you can load that into gdb
> with "gdb `which mythbackend` name-of-core-file" and produce
> a backtrace using the normal procedure.

Details: http://www.mythtv.org/wiki/Debugging#Using_core_files

Mike


More information about the mythtv-dev mailing list