Brian Gerkey wrote:
>Apparently nobody has any ideas on this one. To be clear, you're saying
>that *player* (i.e., the server) is crashing, not your client program?
>Did you ever run it through a debugger? If so, please send the backtrace.
Thanks for the response. I have finally had another opportunity to look
into this a little bit more today, including running stage through gdb.
Here is the backtrace from gdb:
#0 0x403ae6d5 in _int_free () from /lib/libc.so.6
#1 0x403ad630 in free () from /lib/libc.so.6
#2 0x402ef983 in operator delete(void*) () from /usr/lib/libstdc++.so.5
#3 0x402ef9df in operator delete(void*) () from /usr/lib/libstdc++.so.5
#4 0x08061746 in Acoustics::CreateChirp(unsigned char*, unsigned short,
unsigned short, unsigned short, unsigned, c
har*, unsigned) (this=0x80950b8,
mseq=0xbf7ff625 "\001\001\001", mseqSize=15, freq=15112, amp=5020,
pulseTime=50, buffer=0x80a2398 "", bufSize=6000) at acoustics.cc:690
#5 0x08060af6 in Acoustics::Main() (this=0x80950b8) at acoustics.cc:285
#6 0x0804d485 in CDevice::DummyMain(void*) (devicep=0x80950b8)
#7 0x40203812 in pthread_start_thread_event () from /lib/libpthread.so.0
Frame #4 seems to be the culprit (I think). In
Acoustics::CreateChirp(), it is crashing on a call to delete 
oneBuffer on line 690. I am also somewhat confused about the
parameters values that are being passed to CreateChirp. Below is a
little more information:
(gdb) info frame 4
Stack frame at 0xbf7ff5d4:
eip = 0x8061746
in Acoustics::CreateChirp(unsigned char*, unsigned short, unsigned
short, unsigned short, unsigned, char*, unsig
saved eip 0x8060af6
called by frame at 0xbf7ffad4, caller of frame at 0xbf7ff594
source language c++.
Arglist at 0xbf7ff5d4, args: this=0x80950b8, mseq=0xbf7ff625
mseqSize=15, freq=15112, amp=5020, pulseTime=50, buffer=0x80a2398 "",
Locals at 0xbf7ff5d4, Previous frame's sp in esp
ebx at 0xbf7ff5c8, ebp at 0xbf7ff5d4, esi at 0xbf7ff5cc, edi at
eip at 0xbf7ff5d8
(gdb) info args
this = (Acoustics * const) 0x80950b8
mseq = (unsigned char *) 0xbf7ff625 "\001\001\001"
mseqSize = 15
freq = 15112
amp = 5020
pulseTime = 50
I am out of time for today, but hopefully I can study this a little more
tomorrow. Thanks again for your help.
Computer Scientist NRL Code 7440.5
1008 Balch Blvd.
Stennis Space Center, MS 39529
Voice: (228)688-5245 Fax: (228)688-4853