gerard robin wrote:
> On mer 12 décembre 2007, Melchior FRANZ wrote:
>   
>> * gerard robin -- Wednesday 12 December 2007:
>>     
>>> And, what, about the Bleriot FDM done by David and Lee ?
>>>       
>>     
> OR, 
> we could announce it, being the French Joke of the year   :)
>
>
>   

or,
I can wonder, "How does that aircraft look and fly?", and then get a 
segfault with gdb backtrace...

Conditions to reproduce: turn on Aircraft shadow, bump clouds, and 3d 
clouds, before starting this aircraft.

This model has 46697 vertices and 48172 faces. But loads okay with the 
above mentioned turned off. Reminds me of the segfaults I used to get 
when my model was too big.

It tried to dereference a null pointer.

~> /usr/local/bin/fgfs --fg-root=/usr/local/FlightGear/data 
--enable-game-mode --airport=KBLI --aircraft=bleriot-XI-yasim
Received terminal signal 11 (SIGSEGV) to 1265
Pending signals:
(gdb) (gdb) (gdb) Reading symbols from /usr/local/bin/fgfs...>> 
Segmentation Fault (errno=0, address not mapped to object)
   Fault address: 00000000

Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /usr/local/bin/fgfs, process 1265

Reading symbols from 
/home/steven/soft/linDev/faultCatch.lib/libfaultCatch.so.0...done.
Loaded symbols for 
/home/steven/soft/linDev/faultCatch.lib/libfaultCatch.so.0
Reading symbols from /lib/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 1265)]
[New Thread 32769 (LWP 1266)]
[New Thread 16386 (LWP 1267)]
[New Thread 32771 (LWP 1270)]
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/local/lib/libz.so.1...done.
Loaded symbols for /usr/local/lib/libz.so.1
Reading symbols from /usr/local/lib/libglut.so.3...done.
Loaded symbols for /usr/local/lib/libglut.so.3
Reading symbols from /usr/local/lib/libGLU.so.1...done.
Loaded symbols for /usr/local/lib/libGLU.so.1
Reading symbols from /usr/lib/libGL.so.1...done.
Loaded symbols for /usr/lib/libGL.so.1
Reading symbols from /usr/XOrg-7.0/lib/libXmu.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXmu.so.6
Reading symbols from /usr/XOrg-7.0/lib/libXt.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXt.so.6
Reading symbols from /usr/XOrg-7.0/lib/libSM.so.6...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.6
Reading symbols from /usr/XOrg-7.0/lib/libICE.so.6...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.6
Reading symbols from /usr/XOrg-7.0/lib/libXi.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXi.so.6
Reading symbols from /usr/XOrg-7.0/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/XOrg-7.0/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/local/lib/libopenal.so.0...done.
Loaded symbols for /usr/local/lib/libopenal.so.0
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/local/lib/libstdc++.so.5...done.
Loaded symbols for /usr/local/lib/libstdc++.so.5
Reading symbols from /usr/local/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/local/lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libGLcore.so.1...done.
Loaded symbols for /usr/lib/libGLcore.so.1
Reading symbols from /usr/lib/libnvidia-tls.so.1...done.
Loaded symbols for /usr/lib/libnvidia-tls.so.1
Reading symbols from /usr/XOrg-7.0/lib/libXau.so.6...done.
Loaded symbols for /usr/X11R7/lib/libXau.so.6
Reading symbols from /usr/XOrg-7.0/lib/libXdmcp.so.6...done.
Loaded symbols for /usr/X11R7/lib/libXdmcp.so.6
ssgVtxArray::getTriangle (this=0x2, n=0, v1=0x0, v2=0x0, v3=0x0) at 
ssg.h:577
577       short *get ( unsigned int n ) { return (short *) raw_get ( n ) ; }
 >>>>>Continuing.

Program received signal SIGCONT, Continued.
[Switching to Thread 16384 (LWP 1265)]
Saved corefile core.1265
#0  ssgVtxArray::getTriangle (this=0x2, n=0, v1=0x0, v2=0x0, v3=0x0) at 
ssg.h:577
        vv1 = 32766
        vv2 = 32767
        vv3 = -32768
#1  0x085f250d in SGShadowVolume::ShadowCaster::addLeaf (this=0xefcc648, 
[EMAIL PROTECTED], [EMAIL PROTECTED], geometry_leaf=0x97806f0) at 
shadowvolume.cxx:140
        v2 = 11003
        a = {-1.73717105, -0.235508993, 0.129190996}
        c = {-1.73735094, -0.234582007, 0.127739996}
        v1 = 11063
        v3 = 11062
        b = {-1.73906898, -0.233747005, 0.129186004}
        p = 1276422972
        num_tri = 11308
        num_ind = 0
#2  0x085f4318 in SGShadowVolume::SceneryObject::traverseTree 
(this=0xa47c268, branch=0x95e7e18) at shadowvolume.cxx:686
        i = 158861040
        tri_idx = 12528
        ind_idx = 1725
        new_part = (SGShadowVolume::ShadowCaster *) 0xefcc648
        num_tri = 71018
#3  0x085f422f in SGShadowVolume::SceneryObject::traverseTree 
(this=0xa47c268, branch=0x95e7f88) at shadowvolume.cxx:673
        i = 157187608
        num_tri = 0
#4  0x085f422f in SGShadowVolume::SceneryObject::traverseTree 
(this=0xa47c268, branch=0x9cc4a78) at shadowvolume.cxx:673
        i = 157187976
        num_tri = 0
#5  0x085f422f in SGShadowVolume::SceneryObject::traverseTree 
(this=0xa47c268, branch=0x984ab68) at shadowvolume.cxx:673
        i = 164383352
        num_tri = 0
#6  0x085f422f in SGShadowVolume::SceneryObject::traverseTree 
(this=0xa47c268, branch=0x95e7898) at shadowvolume.cxx:673
        i = 159689576
        num_tri = 0
#7  0x085f39f8 in SGShadowVolume::SceneryObject::computeShadows 
(this=0xa47c268) at ../../../simgear/structure/ssgSharedPtr.hxx:59
        rotation = {{1.26443839e+11, 2.06360245, 3.50917244, 
1.40129846e-45}, {127.409973, 0, 3.50917244, 1.32132636e-38}, 
{127.409973, 5000, -1.99929142, 6.71757415e-34}, {127.488037, 
-1.99928856, -1.99946404, 1.40129846e-45}}
        rotation_translation = {{0, 5.60519386e-45, 3.50917244, 
3.53819454e-40}, {0, 2.06360245, 2.80259693e-45, 9.0020862e-31}, 
{9.00208244e-31, 9.00208338e-31, 9.10844002e-44, 1.40129846e-45}, 
{1.40129846e-44, -1.99931717, 1.40129846e-45, 1.40129846e-45}}
        iShadowCaster = {<std::iterator<std::random_access_iterator_tag, 
SGShadowVolume::ShadowCaster*, int, SGShadowVolume::ShadowCaster**, 
SGShadowVolume::ShadowCaster*&>> = {<No data fields>}, _M_current = 0x0}
#8  0x085f3bb6 in SGShadowVolume::cull (this=0xa47c1b0, b=0x95e7898, 
f=0xbfffeeb0, m=0xbfffee70, test_needed=0) at shadowvolume.cxx:589
        an_occluder = (SGShadowVolume::SceneryObject *) 0x0
        iSceneryObject = {<std::_Rb_tree_base_iterator> = {_M_node = 
0x42fef9e0}, <No data fields>}
        tmp = {{6.44597294e-44, -1.99941444, 1.13156604e-33, 
46.4339066}, {2.5353012e+30, 5.77211857, 6.91899681, 5.51137655e-30}, 
{2.5353012e+30, 9.1710527e-31, 1.40129846e-45, -1.99935055}, {1, 1, 
9.39279938, 1.13488176e-33}}
        transform = {{3.91565514, 1.14113612e-33, 1.14112877e-33, 
3.36311631e-44}, {2.5353012e+30, 512, -384, 4.9832139}, {9.265625, 
1.40129846e-45, 10.1036797, 9.265625}, {12582920, 1.11270238e-33, 
6.86636248e-44, 10.1034698}}
        cull_result = 2
#9  0x085f3ee1 in SGShadowVolume::cull (this=0xa47c1b0, b=0x95e77e0, 
f=0xbfffeeb0, m=0xbfffee70, test_needed=0) at shadowvolume.cxx:611
        e = (class ssgEntity *) 0x2afb
        s = 1
        cull_result = 2
Killed

gcc --version
gcc (GCC) 3.3.2

Stewart



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to