[haiku-bugs] Re: [Haiku] #11875: Crash after quitting Haiku3D

  • From: "vrkosk" <trac@xxxxxxxxxxxx>
  • Date: Fri, 13 Mar 2015 20:05:08 -0000

#11875: Crash after quitting Haiku3D
------------------------------------+----------------------------
   Reporter:  humdinger             |      Owner:  aldeck
       Type:  bug                   |     Status:  new
   Priority:  normal                |  Milestone:  R1
  Component:  Applications/Haiku3D  |    Version:  R1/Development
 Resolution:                        |   Keywords:
 Blocked By:                        |   Blocking:
Has a Patch:  0                     |   Platform:  All
------------------------------------+----------------------------

Comment (by vrkosk):

 gdb gives a more detailed backtrace:

 {{{
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to team /boot/system/demos/Haiku3d (1863) thread w>Haiku3d
 (1870)]
 0x0100f2c4 in glIsTexture () from /boot/system/lib/libGL.so
 (gdb) bt
 #0  0x0100f2c4 in glIsTexture () from /boot/system/lib/libGL.so
 #1  0x01467694 in Texture::~Texture ()
 #2  0x014682a8 in BitmapTexture::~BitmapTexture ()
 #3  0x00e5009a in BReferenceable::LastReferenceReleased ()
    from /boot/system/lib/libbe.so
 #4  0x00e50057 in BReferenceable::ReleaseReference ()
    from /boot/system/lib/libbe.so
 #5  0x01465573 in MeshInstance::~MeshInstance ()
 #6  0x014670d9 in RenderView::_DeleteScene ()
 #7  0x01466472 in RenderView::~RenderView ()
 #8  0x00db7823 in BView::~BView () from /boot/system/lib/libbe.so
 #9  0x00dc4c56 in BWindow::~BWindow () from /boot/system/lib/libbe.so
 #10 0x02217a6e in BDirectWindow::~BDirectWindow ()
    from /boot/system/lib/libgame.so
 #11 0x01464f88 in MainWindow::~MainWindow ()
 #12 0x00ce95ea in BLooper::Quit () from /boot/system/lib/libbe.so
 #13 0x00dc53b2 in BWindow::Quit () from /boot/system/lib/libbe.so
 #14 0x02217ad7 in BDirectWindow::Quit () from /boot/system/lib/libgame.so
 #15 0x00ceaa69 in BLooper::_QuitRequested () from
 /boot/system/lib/libbe.so
 #16 0x00ce9112 in BLooper::DispatchMessage () from
 /boot/system/lib/libbe.so
 #17 0x00dc80e1 in BWindow::DispatchMessage () from
 /boot/system/lib/libbe.so
 #18 0x02217b07 in BDirectWindow::DispatchMessage ()
    from /boot/system/lib/libgame.so
 #19 0x00dcbeee in BWindow::task_looper () from /boot/system/lib/libbe.so
 #20 0x02217e5b in BDirectWindow::task_looper ()
    from /boot/system/lib/libgame.so
 #21 0x00cea58b in BLooper::_task0_ () from /boot/system/lib/libbe.so
 #22 0x01dcc527 in thread_entry () from /boot/system/lib/libroot.so
 #23 0x603ce250 in ?? ()
 }}}

 The glIsTexture() call is made in the Texture class destructor of haiku3d,
 so my guess is its parameter (fId) is somehow invalid, maybe null or it's
 being freed twice.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11875#comment:1>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: