<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>AW: [Asterisk-video] Asterisk crash when using amr (app_h324m.so)</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi Sergio!<BR>
<BR>
I tried to recompile libh324m with those flags by adding ${CFLAGS} to the Makefile. I am not sure though if this is the way to do it...<BR>
Anyway gdb doesn't say anything else than it did before. Maybe I am not using gdb correctly?<BR>
<BR>
-------- Makefile now looks like this: -------------<BR>
CFLAGS=-g -O0<BR>
LDFLAGS=`ptlib-config --libs`<BR>
<BR>
all: libh324m test<BR>
<BR>
libh324m: h324m.o<BR>
make -C src/ all<BR>
g++ $(CFLAGS) -o libh324m.so -shared h324m.o src/libh324m.a $(LDFLAGS)<BR>
[...]<BR>
----------------------------------------------------<BR>
<BR>
<BR>
This is what asterisk says when it crashes:<BR>
<BR>
*** glibc detected *** asterisk: double free or corruption (!prev): 0x08229038 ***<BR>
======= Backtrace: =========<BR>
/lib/i686/cmov/libc.so.6[0xb7c81eed]<BR>
/lib/i686/cmov/libc.so.6(cfree+0x90)[0xb7c85530]<BR>
/usr/lib/asterisk/modules/app_h324m.so[0xb7a82fb4]<BR>
asterisk[0x80c64fa]<BR>
asterisk[0x80c81cc]<BR>
asterisk[0x80c917e]<BR>
asterisk[0x80f5070]<BR>
/lib/i686/cmov/libpthread.so.0[0xb7ed431b]<BR>
/lib/i686/cmov/libc.so.6(clone+0x5e)[0xb7cea8ee]<BR>
======= Memory map: ========<BR>
[...]<BR>
<BR>
<BR>
Thanks for your help,<BR>
Thomas<BR>
<BR>
<BR>
-----Ursprüngliche Nachricht-----<BR>
Von: asterisk-video-bounces@lists.digium.com im Auftrag von Sergio Garcia Murillo<BR>
Gesendet: Mo 25.06.2007 22:46<BR>
An: Development discussion of video media support in Asterisk<BR>
Betreff: Re: [Asterisk-video] Asterisk crash when using amr (app_h324m.so)<BR>
<BR>
Asterisk crash when using amr (app_h324m.so)<BR>
Could you compile the libh324m with the -g -O0 options and try again so we could have a better back trace?<BR>
----- Original Message -----<BR>
From: Thomas Frieling<BR>
To: asterisk-video@lists.digium.com<BR>
Sent: Monday, June 25, 2007 4:45 PM<BR>
Subject: [Asterisk-video] Asterisk crash when using amr (app_h324m.so)<BR>
<BR>
<BR>
Hi!<BR>
<BR>
We are currently evaluating 3G video calls using asterisk and the sip.fontventa project (libh324m, app_h324m, app_mp4play).<BR>
Sending and receiving videos works pretty good but when sending videos with amr sound to a 3G video phone asterisk crashes.<BR>
<BR>
This is the coredump (gdb bt):<BR>
<BR>
Core was generated by `asterisk -vvvvgc'.<BR>
Program terminated with signal 6, Aborted.<BR>
#0 0xb7f4e410 in ?? ()<BR>
(gdb) bt<BR>
#0 0xb7f4e410 in ?? ()<BR>
#1 0xb5bef5dc in ?? ()<BR>
#2 0x00000006 in ?? ()<BR>
#3 0x000013b2 in ?? ()<BR>
#4 0xb7ca4d60 in raise () from /lib/i686/cmov/libc.so.6<BR>
#5 0xb7ca65b1 in abort () from /lib/i686/cmov/libc.so.6<BR>
#6 0xb7cdb08b in ?? () from /lib/i686/cmov/libc.so.6<BR>
#7 0x0000001d in ?? ()<BR>
#8 0xb5bef840 in ?? ()<BR>
#9 0x00000400 in ?? ()<BR>
#10 0xb7a4a7fe in std::_Rb_tree<int, std::pair<int const, H223MuxSDU*>, std::_Select1st<std::pair<int const, H223MuxSDU*> >, std::less<int>, std::allocator<std::pair<int const, H223MuxSDU*> > >::insert_unique (this=0x1e,<BR>
__position={_M_node = 0x400}, __v=@0xb7da2f00) at /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h:949<BR>
#11 0xb7ce2eed in ?? () from /lib/i686/cmov/libc.so.6<BR>
#12 0x00000002 in ?? ()<BR>
#13 0xb7da2e28 in ?? () from /lib/i686/cmov/libc.so.6<BR>
#14 0xbffcbec1 in ?? ()<BR>
#15 0xb7da2f00 in ?? () from /lib/i686/cmov/libc.so.6<BR>
#16 0xb5befdbb in ?? ()<BR>
#17 0xb5a143c8 in ?? ()<BR>
#18 0xb5befe40 in ?? ()<BR>
#19 0xb5befdbb in ?? ()<BR>
#20 0x00000188 in ?? ()<BR>
#21 0xb5a1e760 in ?? ()<BR>
#22 0xb7da2f00 in ?? () from /lib/i686/cmov/libc.so.6<BR>
#23 0x00000015 in ?? ()<BR>
#24 0xb7ae5888 in ?? () from /usr/lib/asterisk/modules/app_h324m.so<BR>
#25 0xb7ae5888 in ?? () from /usr/lib/asterisk/modules/app_h324m.so<BR>
#26 0x00000000 in ?? ()<BR>
(gdb)<BR>
<BR>
<BR>
This doesn't tell me too much but maybe you can help.<BR>
<BR>
Thanks in advance,<BR>
Thomas<BR>
<BR>
<BR>
<BR>
------------------------------------------------------------------------------<BR>
<BR>
<BR>
_______________________________________________<BR>
--Bandwidth and Colocation Provided by <A HREF="http://www.api-digital.com--">http://www.api-digital.com--</A><BR>
<BR>
asterisk-video mailing list<BR>
To UNSUBSCRIBE or update options visit:<BR>
<A HREF="http://lists.digium.com/mailman/listinfo/asterisk-video">http://lists.digium.com/mailman/listinfo/asterisk-video</A><BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>