[haiku-bugs] Re: [Haiku] #6963: BTranslationUtils::GetBitmap() segfaults in EXRTranslator::DerivedIdentify()

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Wed, 08 Dec 2010 13:03:05 -0000

#6963: BTranslationUtils::GetBitmap() segfaults
in EXRTranslator::DerivedIdentify()
-------------------------------------+-------------------------------------
  Reporter:  ttcoder                 |        Owner:  korli
      Type:  bug                     |       Status:  new
  Priority:  normal                  |    Milestone:  R1
 Component:  Add-                    |      Version:  R1/Development
  Ons/Translators/EXR                |     Keywords:  ressource translator
Resolution:                          |  unhandled exception
Blocked By:                          |  Has a Patch:  0
  Platform:  x86                     |     Blocking:
-------------------------------------+-------------------------------------

Comment (by ttcoder):

 I've checked haiku-files.org but builds only go back one week or so, 39571
 is no longer there. And I'm not setup for building from source..

 So I've prepared a bare-bones test case this morning, and found something
 interesting: the crash only occurs if I link against my KISSlib.so (even
 though it's not used at all in this test case); if I remove the -lKISSlib
 parameter when building, the crash no longer occurs.

 Here's an 'overview' of the zip-file I'm going to upload, tell me if it's
 useful for you to troubleshoot this problem or if I should investigate
 more on my own (and if yes, how -- I dunno where to take it from here
 :-)..

 {{{
 ~/_develop/BeOSRADIO_scripter/test-case_ticket-6963> ls -R
 .:
 Application.cpp  Application.o  TuneStacker.rsrc  probably_not_useful
 Application.h    TuneStacker    lib

 ./lib:
 KISSlib.so

 ./probably_not_useful:
 Jamfile
 ~/_develop/BeOSRADIO_scripter/test-case_ticket-6963> head -25
 Application.cpp

 /*
 For convenience, here's a few lines on which to do "Command-Enter" in Pe
 (first line will have to be edited of course):

 INIT:
 cd /boot/home/_develop/test-case_ticket-6963

 BUILD:
 gcc -c -o Application.o -I. Application.cpp
 gcc  -o TuneStacker  Application.o lib/KISSlib.so -lbe -ltranslation
 xres -o TuneStacker TuneStacker.rsrc

 Exec:
 ./TuneStacker

         --> Boom, on execution TuneStacker segfaults with this gdb output:
                 [Switching to team ./TuneStacker (1832) thread TuneStacker
 (1832)]
                 0x005259f0 in __class_type_info::dcast () from
 /boot/system/lib/libroot.so

 */


 // libroot.so
 #include <stdio.h>
 }}}

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6963#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: