[ previous ] [ next ] [ threads ]
 To :  yate@v...
 From :  Maciek Kaminski <maciejka@t...>
 Subject :  Yate09 drops core when extmodule attaches sources fast
 Date :  Fri, 01 Jul 2005 21:35:07 +0200
Hi,
Yate09 drops core when extmodule attaches sources fast. See yate log and 
backtrace bellow.

Yate log:
ExtModReceiver   ALL processLine 
'%%>message:1120246337.182465:1120246337:chan.attach::source=wave/play//home/maciejka/projekty/9/yate/sounds/digits/pl/6.gsm'
ExtModReceiver   ALL Created message 0x805bb60 'chan.attach' [0x8059f38]
Message Sniffer  ALL 'chan.attach' time=2902086208 thread=0x8059fe8 
data=0x8055528 retval='(null)'
  param['source'] = 
'wave/play//home/maciejka/projekty/9/yate/sounds/digits/pl/6.gsm'
YateEngine       ALL 
WaveSource::WaveSource("/home/maciejka/projekty/9/yate/sounds/digits/pl/6.gsm",0x8055528) 
[0x805cf20]
 >>> DataTranslator::detachChain(0x8056ab0,0x805a348)
<<< DataTranslator::detachChain
YateEngine       ALL WaveSource::~WaveSource() [0x8056ab0] total=165 
stamp=800
YateEngine      INFO WaveSource rate=1707 b/s
Yate Engine      ALL ExtMod [0x8059f38] message 'chan.dtmf' [0x80538a0] 
returning true
YateEngine       ALL WaveSource [0x8056ab0] end of data [0x8055528] [(null)]
Yate Engine      ALL DataTranslator::attachChain [0x805cf20] "gsm" -> 
[0x805a348] "gsm" succeeded
ExtModReceiver   ALL outputLine 
'%%message:3083516192.1553294932:1120246337:chan.dtmf::id=iax/1:module=iax:status=answered:address=228338351:peerid=ExtModule:text=6:callerid=:calledid='
Yate Engine      ALL ExtMod [0x8059f38] queued message 'chan.dtmf' 
[0x805bb60]
Yate Engine      ALL ExtModReceiver::run() read 270
ExtModReceiver   ALL processLine 
'%%message:1120246337.33858:1120246337:chan.attach::source=wave/play//home/maciejka/projekty/9/yate/sounds/digits/pl/6.gsm'
ExtModReceiver   ALL Created message 0x8059c70 'chan.attach' [0x8059f38]
Message Sniffer  ALL 'chan.attach' time=2902086208 thread=0x8059fe8 
data=0x8055528 retval='(null)'
  param['source'] = 
'wave/play//home/maciejka/projekty/9/yate/sounds/digits/pl/6.gsm'
YateEngine       ALL 
WaveSource::WaveSource("/home/maciejka/projekty/9/yate/sounds/digits/pl/6.gsm",0x8055528) 
[0x8056ab0]
 >>> DataTranslator::detachChain(0x805cf20,0x805a348)
<<< DataTranslator::detachChain
YateEngine       ALL WaveSource::~WaveSource() [0x805cf20] total=264 
stamp=1280
YateEngine      INFO WaveSource rate=1799 b/s
Yate Engine      ALL ExtMod [0x8059f38] message 'chan.dtmf' [0x805bb60] 
returning true
YateEngine       ALL WaveSource [0x805cf20] end of data [0x8055528] [(null)]
Yate Engine      ALL DataTranslator::attachChain [0x8056ab0] "gsm" -> 
[0x805a348] "gsm" succeeded
ExtModReceiver   ALL outputLine 
'%%message:3083516192.511761791:1120246337:chan.dtmf::id=iax/1:module=iax:status=answered:address=228338351:peerid=ExtModule:text=6:callerid=:calledid='
Yate Engine      ALL ExtMod [0x8059f38] queued message 'chan.dtmf' 
[0x8059c70]
Yate Engine      ALL ExtModReceiver::run() read 270
ExtModReceiver   ALL processLine 
'%%message:1120246337.499948:1120246337:chan.attach::source=wave/play//home/maciejka/projekty/9/yate/sounds/digits/pl/6.gsm'
ExtModReceiver   ALL Created message 0x8057960 'chan.attach' [0x8059f38]
Message Sniffer  ALL 'chan.attach' time=2902086208 thread=0x8059fe8 
data=0x8055528 retval='(null)'
  param['source'] = 
'wave/play//home/maciejka/projekty/9/yate/sounds/digits/pl/6.gsm'
YateEngine       ALL 
WaveSource::WaveSource("/home/maciejka/projekty/9/yate/sounds/digits/pl/6.gsm",0x8055528) 
[0x805cf20]
 >>> DataTranslator::detachChain(0x8056ab0,0x805a348)
<<< DataTranslator::detachChain
YateEngine       ALL WaveSource::~WaveSource() [0x8056ab0] total=1287 
stamp=6240
YateEngine      INFO WaveSource rate=1295 b/s
Yate Engine      ALL DataTranslator::attachChain [0x805cf20] "gsm" -> 
[0x805a348] "gsm" succeeded
ExtModReceiver   ALL outputLine 
'%%message:3083516192.1968702857:1120246338:chan.dtmf::id=iax/1:module=iax:status=answered:address=228338351:peerid=ExtModule:text=6:callerid=:calledid='
Yate Engine      ALL ExtMod [0x8059f38] queued message 'chan.dtmf' 
[0x805bb60]
Yate Engine      ALL ExtModReceiver::run() read 271
ExtModReceiver   ALL processLine 
'%%message:1120246338.342191:1120246338:chan.attach::source=wave/play//home/maciejka/projekty/9/yate/sounds/digits/pl/6.gsm'
ExtModReceiver   ALL Created message 0x80538a0 'chan.attach' [0x8059f38]
YateEngine      INFO IAX DTFM inside a call: 54 [0x8054270]
Message Sniffer  ALL 'chan.attach' time=2903086208 thread=0x8059fe8 
data=0x8055528 retval='(null)'
  param['source'] = 
'wave/play//home/maciejka/projekty/9/yate/sounds/digits/pl/6.gsm'
YateEngine       ALL 
WaveSource::WaveSource("/home/maciejka/projekty/9/yate/sounds/digits/pl/6.gsm",0x8055528) 
[0x805f620]
 >>> DataTranslator::detachChain(0x805cf20,0x805a348)
<<< DataTranslator::detachChain
YateEngine       ALL WaveSource::~WaveSource() [0x805cf20] total=0 stamp=0
Yate Engine      ALL ExtMod [0x8059f38] message 'chan.dtmf' [0x805bb60] 
returning true
Message Sniffer  ALL 'chan.dtmf' time=1120246338345852 thread=0x8053358 
data=(nil) retval='(null)'
  param['id'] = 'iax/1'
  param['module'] = 'iax'
  param['status'] = 'answered'
  param['address'] = '228338351'
  param['peerid'] = 'ExtModule'
  param['text'] = '6'
  param['callerid'] = ''
  param['calledid'] = ''
ExtModReceiver   ALL outputLine 
'%%>message:3083516192.359584599:1120246338:chan.dtmf::id=iax/1:module=iax:status=answered:address=228338351:peerid=ExtModule:text=6:callerid=:calledid='
Yate Engine      ALL ExtMod [0x8059f38] queued message 'chan.dtmf' 
[0x8058840]
YateEngine      INFO IAX DTFM inside a call: 54 [0x8054270]
YateEngine      INFO IAX DTFM inside a call: 54 [0x8054270]
YateEngine      INFO IAX DTFM inside a call: 54 [0x8054270]
Segmentation fault (core dumped)

Backtrace:

maciejka@maciejka:~/projekty/9/yate$ gdb yate core.23428
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db 
library "/lib/tls/i686/cmov/libthread_db.so.1".

Core was generated by `./yate -c ./conf.d -m ./modules 
-vvvvvvvvvvvvvvvvvvv'.
Program terminated with signal 11, Segmentation fault.
#0  0xb7f963c2 in TelEngine::ThreadPrivate::run () from ./libyate.so.0.9.0
(gdb) bt
#0  0xb7f963c2 in TelEngine::ThreadPrivate::run () from ./libyate.so.0.9.0
#1  0xb7f9687f in TelEngine::ThreadPrivate::startFunc () from 
./libyate.so.0.9.0
#2  0xb7fceae0 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#3  0xb7e3cc9a in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb)   


Maciej Kamiñski