info-inventor-dev
[Top] [All Lists]

Re: Solaris g++/gcc: crashes in Material Editor and Color Editor..

To: "Vincent S. Cojot" <coyote@xxxxxxxxxxxxxxx>
Subject: Re: Solaris g++/gcc: crashes in Material Editor and Color Editor..
From: Simon Ney <Simon.Ney@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 06 Sep 2002 19:15:57 +0200
Cc: info-inventor-dev@xxxxxxxxxxx
Organization: KOMMUNIKATOR
References: <1721.212.208.45.51.1031315574.squirrel@mail.step.polymtl.ca>
Reply-to: Simon.Ney@xxxxxxxxxxxxxxxxxxxxxxxxxxx
Sender: info-inventor-dev-bounce@xxxxxxxxxxx
Hi,

see C-Lang comment ... the macro:

#define SV_OFFSET(m,b) ( ((char *) (m)) - ((char *) (b)) )

calculates dynamic sub-menu entries in the "Light" menu-entry...

if this fix is not applied it results in a core dump on click of "Light"
menu.

(
 )imon

-----------------8<-----------------------------------------------------------------------
Index: apps/demos/SceneViewer/SoSceneMenu.h
===================================================================
RCS file:
/var/opt/KUKisdn/cvs-repository/inventor/apps/demos/SceneViewer/SoSceneMenu.h,v
retrieving revision 1.1.1.1
retrieving revision 1.3
diff -r1.1.1.1 -r1.3
458a459
> #ifdef NOBBI
465a467,481
> #else
> /**
>  **   BUG FIX:
>  **           the assembler cant calculate offset between different sections 
> (data and bss in this case).
>  **           the fix is to change bss to data by initializing the struct.
>  **           this occurs with gcc-3.2
>  **/
> static struct {
>     char *headlight;
>     char *editlight;
>     char *directionallight;
>     char *spotlight;
>     char *pointlight;
> } Light = {"XXXhead","XXXedit","XXXdirectional","XXXspot", "XXXpoint"};
> #endif

-----------------8<-----------------------------------------------------------------------

"Vincent S. Cojot" wrote:
> 
> Hello All,
> 
> I have verified this morning that textomatic doesn't display any text on SUN
> (with libFL.a or with freetype2).. That's unfortunate but I guess I'll
> investigate.. On another subject, I have noticed that "Material Editor" and
> "Color Editor" don't work.. At least, they crash SceneViewer. Both crashes
> show pretty similar backtraces (see one below).. Has anyone seen something
> like that..? Can anyone give me a head start about where I should start
> investigating into the OpenInventor source (I'm new to that huge source so
> I'm not too sure about where to start).. Here's the backtrace I'm seeing
> with gcc-2.95.3/Solaris 8 02/02 and gdb-5.0 (I'm selecting a part of the
> object and then I choose "Material Editor" from the menu..):
> 
> PS: The "transform editor" -DOES- work and displays 5 "choosers" (no
> pictures, graphics, etc..) I guess that's normal but I've never used it.
<snip>
> Thanks for reading...
> 
> Vincent

-- 
---------------------------------------------------------------------
| Simon Ney, Bischofsweg 46 60598 Frankfurt/M Tel: ++49 69 68600055 |
| Email Simon.Ney@xxxxxxxxxxxxxxxxxxxxxxxxxxx Fax: ++49 69 68600052 |
---------------------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>