Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] Release vs Debug mode badness


Chronological Thread 
  • From: Roni Choudhury <roni@cs.utah.edu>
  • To: manta@sci.utah.edu
  • Subject: [Manta] Release vs Debug mode badness
  • Date: Wed, 05 Dec 2007 00:18:00 -0600

Hi all-

I'm trying to run revision 1905 on a PowerBook G4. In Debug mode it works ok. In Release mode, however, I get this upon startup:

roni@UFO-3:build$ bin/manta
Thread "main"(pid 22635) caught signal SIGILL at address 0x0 (illegal instruction)
2684415368: main (state = running)

Abort signalled by pid: 22635
Occured for thread: "main"
resume(r)/dbx(d)/cvd(c)/kill thread(k)/exit(e)? e
roni@UFO-3:build$

The SIGILL seems to be caused by the call to sqrtf() in Core/Math/Expon.h. Does anyone know what could be causing this?

If I run it in Release mode, but with debugging support enabled, the stack trace looks like this:

#0  0x900148a4 in read ()
#1 0x03f4d674 in Manta::Thread::niceAbort (context=0xbfffea10) at /Users/roni/research/Manta/Core/Thread/Thread.cc:308
#2 0x03f51d84 in handle_abort_signals (sig=101, ctx={sc_onstack = -1073746520, sc_mask = 4, sc_ir = -1073746520, sc_psw = -1073746456, sc_sp = 115, sc_regs = 0xc}) at /Users/roni/research/Manta/Core/Thread/Thread_pthreads.cc:672
#3  <signal handler called>
#4 0x026ca820 in Manta::PinholeCamera::setup (this=0x5108d30) at /Users/roni/research/Manta/Core/Math/Expon.h:151
#5 0x026ccb3c in Manta::PinholeCamera::PinholeCamera (this=0x5108d30, args=@0x5108d74) at /Users/roni/research/Manta/Model/Cameras/PinholeCamera.cc:97
#6 0x026ccb3c in Manta::PinholeCamera::PinholeCamera (this=0x407e9000, args=@0x5108d74) at /Users/roni/research/Manta/Model/Cameras/PinholeCamera.cc:97
#7 0x026cd37c in Manta::PinholeCamera::create (args=@0x5108d74) at /Users/roni/research/Manta/Model/Cameras/PinholeCamera.cc:164
#8 0x01013260 in Manta::Factory::createCamera (this=0x5108120, spec=@0x1) at /Users/roni/research/Manta/Engine/Factory/Factory.cc:334
#9 0x0000ab18 in main (argc=84967712, argv=0xbffff800) at /Users/roni/research/Manta/StandAlone/manta.cc:232

I assume one of the calls to Vector::normalize() in the PinholeCamera::setup() is calling Sqrt and causing the problem, but I'm at a loss to understand what the problem is exactly...please help.

roni




  • [Manta] Release vs Debug mode badness, Roni Choudhury, 12/05/2007

Archive powered by MHonArc 2.6.16.

Top of page