qdtk / openshadinglanguage

Automatically exported from code.google.com/p/openshadinglanguage
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

gettextureinfo test fails on Mac OS X with svn version 807 #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using OSL svn version 807, LLVM 2.7 release, Boost 1.44.0 (installed via 
Mac Ports), recent build of OpenImageIO  (in the last week), and LLVM 2.7 
release (installed via Mac Ports).

15/54 Testing: gettextureinfo
15/54 Test: gettextureinfo
Command: "/usr/bin/env" 
"OPENIMAGEIOHOME=/Users/onitunes/tmp/openimageio/dist/macosx/" "python" 
"/Users/onitunes/tmp/openshadinglanguage/src/../testsuite/gettextureinfo/run.py"
 "/Users/onitunes/tmp/openshadinglanguage/src/../testsuite/gettextureinfo" 
"/Users/onitunes/tmp/openshadinglanguage/build/macosx" 
Directory: /Users/onitunes/tmp/openshadinglanguage/build/macosx
"gettextureinfo" start time: Aug 20 14:00 PDT
Output:
----------------------------------------------------------
terminate called after throwing an instance of 
'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injecto
r<std::logic_error> >'
  what():  Attempt to access an uninitialzed boost::match_results<> class.
sh: line 1: 50268 Abort trap              
/Users/onitunes/tmp/openshadinglanguage/build/macosx/testshade/testshade -g 2 2 
test >> out.txt
FAIL CRASH?
----------------------------------------------------------
"gettextureinfo" end time: Aug 20 14:00 PDT
"gettextureinfo" time elapsed: 00:00:02
----------------------------------------------------------

Original issue reported on code.google.com by goo...@erichocean.otherinbox.com on 20 Aug 2010 at 9:18

GoogleCodeExporter commented 9 years ago
I think it's awfully suspicious that the exception involves boost and you are 
using Boost 1.44 which is hot off the presses. (I know I haven't tried it yet.)

Do you have the ability to try Boost 1.43 and see if it works there?

Or does anybody else using Boost 1.43 feel brave enough to check the test, 
upgrade to 1.44, and then try again to confirm if this is related?

If nobody is willing to change Boost versions (I can't right now, too many 
critical things on my plate to have a possible bad boost install), then 
perhaps, Erich, you could compile a debug OIIO and OSL, and quickly run this 
test in gdb so you can find out exactly where this crashes?

(One more thing: if you JUST upgraded to Boost 1.44, are you sure you did a 
full rebuild of both OIIO and OSL since upgrading?  Make sure there isn' some 
kind of versionitis there.)

Original comment by larrygr...@gmail.com on 20 Aug 2010 at 9:55

GoogleCodeExporter commented 9 years ago
I just ran the testsuite on my OSL with boost-1.44 and did not have any 
problems with the gettextureinfo test. (I did have a failure on the geomath, 
but it wasn't a crash).

relevant(?) info:
   boost-1.44 (via Macports)
   llvm-2.7   (I compiled from release tag)
   OIIO release branch 0.8

Original comment by clifford...@gmail.com on 20 Aug 2010 at 10:29

GoogleCodeExporter commented 9 years ago
I will try it out with Boost 1.43 and report back. All of the supporting 
libraries are freshly installed on this machine for both OIIO and OSL.

Original comment by goo...@erichocean.otherinbox.com on 20 Aug 2010 at 10:36

GoogleCodeExporter commented 9 years ago
Cliff's test indicates that the problem is not likely Boost 1.44.
I would recommend recompiling both OIIO and OSL with 'make debug' (and for OSL, 
make sure you are pointed toward the debug OIIO libraries), and trying to catch 
the exception in gdb and see what's triggering it.  Sorry, if I could repro on 
my end, I'd be happy to chase it down myself.

Original comment by larrygr...@gmail.com on 20 Aug 2010 at 10:38

GoogleCodeExporter commented 9 years ago
Oh haha, didn't see Cliff's response before I sent mine. I'll head down the 
debug-build route... 

Original comment by goo...@erichocean.otherinbox.com on 20 Aug 2010 at 11:08