Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11412 closed Bug Report - Crash (fixed)

Segfault in MythSystemSignalManager::run()

Reported by: stuartm Owned by: Raymond Wagner
Priority: critical Milestone: 0.26.1
Component: MythTV - General Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

It appears that MythSytem? has been deleted from under the running thread.

#0  0x00007f43f17e41b6 in QSemaphore::release(int) () from /usr/lib64/libQtCore.so.4
#1  0x00007f43fac13961 in MythSystem::Unlock (this=0x0) at mythsystem.h:111
#2  0x00007f43fac13b4a in MythSystemPrivate::Unlock (this=0x3e43680) at mythsystem.h:181
#3  0x00007f43fac0ffe5 in MythSystemSignalManager::run (this=0x1efe530) at system-unix.cpp:539
#4  0x00007f43faafe168 in MThreadInternal::run (this=0x1f02800) at mthread.cpp:79
#5  0x00007f43f17e7dec in ?? () from /usr/lib64/libQtCore.so.4
#6  0x00007f43f5546ae4 in ?? () from /usr/lib64/nvidia-current/libGL.so.1
#7  0x00007f43f1557b99 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f43f0b070cd in clone () from /lib64/libc.so.6
#9  0x0000000000000000 in ?? ()

Change History (8)

comment:1 Changed 11 years ago by Raymond Wagner

Owner: set to Raymond Wagner
Status: newaccepted

comment:2 Changed 11 years ago by Raymond Wagner <rwagner@…>

Resolution: fixed
Status: acceptedclosed

In 9c51ad39a65eee7a3f985a127700fbc8473ffb4e/mythtv:

Make sure forked process has stopped when deleting MythSystem?

This forces a termination in a forked MythSystem? process when the
MythSystem? object is destroyed, preventing a situation where the private
internal object tries to access resources from the no-longer-existent
parent object.

Fixes #11412

comment:3 Changed 11 years ago by Raymond Wagner <rwagner@…>

In 060094b10462c9c5494e66c31f4ad80d4dde6990/mythtv:

Make sure forked process has stopped when deleting MythSystem?

This forces a termination in a forked MythSystem? process when the
MythSystem? object is destroyed, preventing a situation where the private
internal object tries to access resources from the no-longer-existent
parent object.

Fixes #11412
(cherry picked from commit 9c51ad39a65eee7a3f985a127700fbc8473ffb4e)

comment:4 Changed 11 years ago by Raymond Wagner

Milestone: unknown0.26.1

comment:5 Changed 11 years ago by Raymond Wagner <rwagner@…>

In e1f14a5380886c6ddf95379341aa0f56481b7587/mythtv:

Called methods against wrong object in destructor.

Refs #11412

comment:6 Changed 11 years ago by Raymond Wagner <rwagner@…>

In c3fff6e88c1ab3c9e39483ef5101f83da38acff1/mythtv:

Called methods against wrong object in destructor.

Refs #11412
(cherry picked from commit e1f14a5380886c6ddf95379341aa0f56481b7587)

comment:7 Changed 11 years ago by Raymond Wagner <rwagner@…>

In 5a34add272dff062bd4368ad0cede866c6007a69/mythtv:

Make sure forked process has stopped when deleting MythSystem?

This forces a termination in a forked MythSystem? process when the
MythSystem? object is destroyed, preventing a situation where the private
internal object tries to access resources from the no-longer-existent
parent object.

Fixes #11412

comment:8 Changed 11 years ago by Raymond Wagner <rwagner@…>

In 5ce4394fa7003cbb7db909997c3b54416a4ced46/mythtv:

Called methods against wrong object in destructor.

Refs #11412

Note: See TracTickets for help on using tickets.