[Flightgear-devel] My day for segfaults...

2004-04-28 Thread Jonathan Richards
Firstly, can I say that with OpenAL, and Erik's tip for .openalrc I get much 
better sound quality from a SoundBlaster Live! and a 5.1 speaker setup.

However, if I exchange frequencies on com1, and then swap them back again, I 
get a segmentation fault.  I know Dave Luff reported a problem with ATIS, but 
I understood that Curt had submitted a fix.  This seems to be something to do 
with deleting a sound sample.

[EMAIL PROTECTED] jonathan]$ gdb /usr/local/bin/fgfs
GNU gdb 5.3-22mdk (Mandrake Linux)
Copyright 2002 Free Software Foundation, Inc.
This GDB was configured as i586-mandrake-linux-gnu...
(gdb) run
Starting program: /usr/local/bin/fgfs
[New Thread 16384 (LWP 5561)]
[New Thread 32769 (LWP 5568)]
[New Thread 16386 (LWP 5569)]
Initializing OpenAL sound manager
[New Thread 32771 (LWP 5571)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 5561)]
0x4053bdc9 in free () from /lib/i686/libc.so.6
Current language:  auto; currently c
(gdb) where
#0  0x4053bdc9 in free () from /lib/i686/libc.so.6
#1  0x083130dc in ~SGSoundSample (this=0x4e0aa008) at sample_openal.cxx:194
#2  0x0831436d in SGSoundMgr::remove(std::string const) (this=0x9694100, 
[EMAIL PROTECTED])
at soundmgr_openal.cxx:188
#3  0x080a2489 in FGATC::NoRender(std::string) (this=0x4e104e58, refname=
{static npos = 4294967295, _M_dataplus = {allocatorchar = {No 
data fields}, _M_p = 0x4b715954 atis}, static _S_empty_rep_storage = {0, 
0, 0, 0}}) at ../../src/Main/globals.hxx:273
#4  0x080a2c9e in FGATIS::Update(double) (this=0x4e104e58, 
dt=0.0083306) at atis.cxx:85
#5  0x0808979c in FGATCMgr::RemoveFromList(std::string, atc_type) 
(this=0x95e3770, id=
{static npos = 4294967295, _M_dataplus = {allocatorchar = {No 
data fields}, _M_p = 0x49e8d41c KSFO}, static _S_empty_rep_storage = {0, 
0, 0, 0}}, tp=ATIS) at /usr/include/c++/3.2.2/bits/stl_list.h:138
#6  0x080894eb in FGATCMgr::CommRemoveFromList(std::string, atc_type, int) 
(this=0x95e3770, id=
{static npos = 4294967295, _M_dataplus = {allocatorchar = {No 
data fields}, _M_p = 0x49e8d41c KSFO}, static _S_empty_rep_storage = {0, 
0, 0, 0}}, tp=ATIS, chan=0) at ATCmgr.cxx:349
#7  0x0808a6c7 in FGATCMgr::FreqSearch(int) (this=0x95e3770, channel=1) at 
ATCmgr.cxx:549
#8  0x08087db6 in FGATCMgr::update(double) (this=0x0, dt=0.051132) 
at ATCmgr.cxx:186
#9  0x08055592 in fgMainLoop () at ../../src/Main/globals.hxx:261
#10 0x0807e924 in GLUTidle () at fg_os.cxx:110
#11 0x4008ffb8 in __glutRegisterEventParser () from 
/usr/X11R6/lib/libglut.so.3
#12 0x080520af in main (argc=1, argv=0xb5f4) at bootstrap.cxx:148
#13 0x404de7f7 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] My day for segfaults...

2004-04-28 Thread David Luff
Jonathan Richards writes:

 However, if I exchange frequencies on com1, and then swap them back again, I 
 get a segmentation fault.  I know Dave Luff reported a problem with ATIS, but 
 I understood that Curt had submitted a fix.  This seems to be something to do 
 with deleting a sound sample.
 

Yes, it segfaults when ATIS is switched off now, rather than when switched on as 
before.  I haven't had time to look at it properly yet though.

Cheers - Dave

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] My day for segfaults... still

2004-04-28 Thread Jonathan Richards
On Wednesday 28 Apr 2004 9:00 pm, David Luff wrote:
 Jonathan Richards writes:
  However, if I exchange frequencies on com1, and then swap them back
  again, I get a segmentation fault.  I know Dave Luff reported a problem
  with ATIS, but I understood that Curt had submitted a fix.  This seems to
  be something to do with deleting a sound sample.

 Yes, it segfaults when ATIS is switched off now, rather than when switched
 on as before.  I haven't had time to look at it properly yet though.


Just one more, then I'll stop finding faults for the day :-)

This is a SIGABRT (just for variety) that happens when I exchange frequencies 
on nav1 - I suspect that it is rooted in the sound changes, via the morse 
sound outputs...

[EMAIL PROTECTED] jonathan]$ gdb /usr/local/bin/fgfs
GNU gdb 5.3-22mdk (Mandrake Linux)
This GDB was configured as i586-mandrake-linux-gnu...
(gdb) run
Starting program: /usr/local/bin/fgfs
[New Thread 16384 (LWP 6229)]
[New Thread 32769 (LWP 6236)]
[New Thread 16386 (LWP 6237)]
Initializing OpenAL sound manager
[New Thread 32771 (LWP 6239)]

Program received signal SIGABRT, Aborted.
[Switching to Thread 16384 (LWP 6229)]
0x404f1481 in kill () from /lib/i686/libc.so.6
Current language:  auto; currently c
(gdb) where
#0  0x404f1481 in kill () from /lib/i686/libc.so.6
#1  0x40029acd in pthread_kill () from /lib/i686/libpthread.so.0
#2  0x40029deb in raise () from /lib/i686/libpthread.so.0
#3  0x404f1224 in raise () from /lib/i686/libc.so.6
#4  0x404f276b in abort () from /lib/i686/libc.so.6
#5  0x40133ec7 in __cxxabiv1::__terminate(void (*)()) () from 
/usr/X11R6/lib/libGLU.so.1
#6  0x40133f14 in std::terminate() () from /usr/X11R6/lib/libGLU.so.1
#7  0x40134086 in __cxa_throw () from /usr/X11R6/lib/libGLU.so.1
#8  0x08312c8e in SGSoundSample (this=0x401499dc, _data=0x0, len=0, 
_freq=178907312) at sample_openal.cxx:160
#9  0x082c51d9 in FGMorse::make_ident(std::string const, int) 
(this=0x4ad651ad, [EMAIL PROTECTED], freq=1075091932)
at morse.cxx:263
#10 0x080f5f09 in FGNavCom::search() (this=0x4ad651a8) at navcom.cxx:657
#11 0x080e7092 in FGRadioStack::search() (this=0x4ad42008) at 
radiostack.cxx:129
#12 0x080e720b in SGMethodCallbackFGRadioStack*, void 
(FGRadioStack::*)()::operator()() (this=0x40030bd8)
at /usr/local/include/simgear/structure/callback.hxx:117
#13 0x0837edf3 in SGTimer::run() (this=0x9991918) at event_mgr.cxx:21
#14 0x0837f051 in SGTimerQueue::update(double) (this=0x874e39c, 
deltaSecs=0.0266020001) at event_mgr.cxx:70
#15 0x0837ee6d in SGEventMgr::update(double) (this=0x874e390, 
delta_time_sec=0.0266020001)
at event_mgr.cxx:34
#16 0x080548cd in fgMainLoop () at main.cxx:1068
#17 0x0807e924 in GLUTidle () at fg_os.cxx:110
#18 0x4008ffb8 in __glutRegisterEventParser () from 
/usr/X11R6/lib/libglut.so.3
#19 0x080520af in main (argc=1, argv=0xb5f4) at bootstrap.cxx:148
#20 0x404de7f7 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] My day for segfaults... still

2004-04-28 Thread Curtis L. Olson
Jonathan,

I believe I fixed this one today ...

Curt.

Jonathan Richards wrote:

On Wednesday 28 Apr 2004 9:00 pm, David Luff wrote:
 

Jonathan Richards writes:
   

However, if I exchange frequencies on com1, and then swap them back
again, I get a segmentation fault.  I know Dave Luff reported a problem
with ATIS, but I understood that Curt had submitted a fix.  This seems to
be something to do with deleting a sound sample.
 

Yes, it segfaults when ATIS is switched off now, rather than when switched
on as before.  I haven't had time to look at it properly yet though.
   

Just one more, then I'll stop finding faults for the day :-)

This is a SIGABRT (just for variety) that happens when I exchange frequencies 
on nav1 - I suspect that it is rooted in the sound changes, via the morse 
sound outputs...

[EMAIL PROTECTED] jonathan]$ gdb /usr/local/bin/fgfs
GNU gdb 5.3-22mdk (Mandrake Linux)
This GDB was configured as i586-mandrake-linux-gnu...
(gdb) run
Starting program: /usr/local/bin/fgfs
[New Thread 16384 (LWP 6229)]
[New Thread 32769 (LWP 6236)]
[New Thread 16386 (LWP 6237)]
Initializing OpenAL sound manager
[New Thread 32771 (LWP 6239)]
Program received signal SIGABRT, Aborted.
[Switching to Thread 16384 (LWP 6229)]
0x404f1481 in kill () from /lib/i686/libc.so.6
Current language:  auto; currently c
(gdb) where
#0  0x404f1481 in kill () from /lib/i686/libc.so.6
#1  0x40029acd in pthread_kill () from /lib/i686/libpthread.so.0
#2  0x40029deb in raise () from /lib/i686/libpthread.so.0
#3  0x404f1224 in raise () from /lib/i686/libc.so.6
#4  0x404f276b in abort () from /lib/i686/libc.so.6
#5  0x40133ec7 in __cxxabiv1::__terminate(void (*)()) () from 
/usr/X11R6/lib/libGLU.so.1
#6  0x40133f14 in std::terminate() () from /usr/X11R6/lib/libGLU.so.1
#7  0x40134086 in __cxa_throw () from /usr/X11R6/lib/libGLU.so.1
#8  0x08312c8e in SGSoundSample (this=0x401499dc, _data=0x0, len=0, 
_freq=178907312) at sample_openal.cxx:160
#9  0x082c51d9 in FGMorse::make_ident(std::string const, int) 
(this=0x4ad651ad, [EMAIL PROTECTED], freq=1075091932)
   at morse.cxx:263
#10 0x080f5f09 in FGNavCom::search() (this=0x4ad651a8) at navcom.cxx:657
#11 0x080e7092 in FGRadioStack::search() (this=0x4ad42008) at 
radiostack.cxx:129
#12 0x080e720b in SGMethodCallbackFGRadioStack*, void 
(FGRadioStack::*)()::operator()() (this=0x40030bd8)
   at /usr/local/include/simgear/structure/callback.hxx:117
#13 0x0837edf3 in SGTimer::run() (this=0x9991918) at event_mgr.cxx:21
#14 0x0837f051 in SGTimerQueue::update(double) (this=0x874e39c, 
deltaSecs=0.0266020001) at event_mgr.cxx:70
#15 0x0837ee6d in SGEventMgr::update(double) (this=0x874e390, 
delta_time_sec=0.0266020001)
   at event_mgr.cxx:34
#16 0x080548cd in fgMainLoop () at main.cxx:1068
#17 0x0807e924 in GLUTidle () at fg_os.cxx:110
#18 0x4008ffb8 in __glutRegisterEventParser () from 
/usr/X11R6/lib/libglut.so.3
#19 0x080520af in main (argc=1, argv=0xb5f4) at bootstrap.cxx:148
#20 0x404de7f7 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 



--
Curtis Olsonhttp://www.flightgear.org/~curt 
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:2f585eeea02e2c79d7b1d8c4963bae2d



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel