[sldev] OpenJPEG breakage and debugging

Paul TBBle Hampson Paul.Hampson at Pobox.com
Thu Apr 19 07:24:26 PDT 2007


On Tue, Apr 17, 2007 at 01:22:46PM -0500, Callum Lerwick wrote:
> So, I rebased all my patches on top of the latest OpenJPEG SVN trunk.
> But I discovered that texture baking seems to have broken. Turns out its
> not my fault, using the stock snapshot, its still broken. Unfortunately,
> for some reason backtraces are broken in gdb. This is what I get:

> 2007-04-17T18:06:45Z INFO: forceBakeAllTextures: TAT: forced full rebake. 
> 2007-04-17T18:06:45Z INFO: readBackAndUpload: Baked eyes

> Program received signal SIGFPE, Arithmetic exception.
> [Switching to Thread -1208174896 (LWP 4560)]
> 0x002fae71 in pi_initialise_encode () at llcommon/llerror.h:146
> 146                             { return mCached ? mShouldLog : Log::shouldLog(*this); }
> (gdb) bt
##0  0x002fae71 in pi_initialise_encode () at llcommon/llerror.h:146
##1  0x002f4ccb in j2k_calculate_tp () at llcommon/llerror.h:146
##2  0x002f5377 in j2k_encode () at llcommon/llerror.h:146
##3  0x002f8e20 in opj_encode () at llcommon/llerror.h:146
##4  0x09161821 in LLImageJ2COJ::encodeImpl (this=0x0, base=@0xb200c20, 
>     raw_image=@0xb23ff60, comment_text=0x0, encode_time=0)
>     at i386-linux-client-release/llimagej2coj/llimagej2coj.cpp:303
The fact that (this == 0x0) here seems to agree with the idea that the
stack unwinding has barfed.

> Once inside a library, it seems to think everything is
> llcommon/llerror.h:146. Is this something slviewer is doing, or is gdb
> broken, or what?

I'd suggest the OpenJPEG libs (as that's where the crash appears to be
happening) have been stripped, so they don't have enough information,
and gdb's having a guess based upon... I don't know what. ^_^

I dunno if you noticed, but OpenJPEG's Makefile (at least in the 1.1.1
release, haven't looked at SVN) strips the library as it builds it. ^_^

-- 
-----------------------------------------------------------
Paul "TBBle" Hampson, B.Sc, LPI, MCSE
On-hiatus Asian Studies student, ANU
The Boss, Bubblesworth Pty Ltd (ABN: 51 095 284 361)
Paul.Hampson at Pobox.Com

Of course Pacman didn't influence us as kids. If it did,
we'd be running around in darkened rooms, popping pills and
listening to repetitive music.
 -- Kristian Wilson, Nintendo, Inc, 1989

License: http://creativecommons.org/licenses/by/2.1/au/
-----------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20070420/d90abda5/attachment.pgp


More information about the SLDev mailing list