Wed Mar 19 07:00:01 CET 2003
authorMatteo Brancaleoni <mbrancaleoni@espia.it>
Wed, 19 Mar 2003 06:00:11 +0000 (06:00 +0000)
committerMatteo Brancaleoni <mbrancaleoni@espia.it>
Wed, 19 Mar 2003 06:00:11 +0000 (06:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@656 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c
contrib/valgrind-RedHat-8.0.supp [new file with mode: 0755]
frame.c
valgrind-RedHat-8.0.supp [new file with mode: 0755]

index 819f44d..824aa7c 100755 (executable)
@@ -726,10 +726,6 @@ static int sip_hangup(struct ast_channel *ast)
        ast->pvt->pvt = NULL;
 
        p->needdestroy = 1;
-#if 0
-       /* Invert sense of outgoing */
-       p->outgoing = 1 - p->outgoing;
-#endif 
        /* Start the process if it's not already started */
        if (!p->alreadygone && strlen(p->initreq.data)) {
                if (needcancel) {
@@ -739,10 +735,6 @@ static int sip_hangup(struct ast_channel *ast)
                        transmit_request(p, "BYE", 1);
                }
        }
-#if 0
-       /* Restore sense of outgoing */
-       p->outgoing = 1 - p->outgoing;
-#endif 
        ast_pthread_mutex_unlock(&p->lock);
        return 0;
 }
diff --git a/contrib/valgrind-RedHat-8.0.supp b/contrib/valgrind-RedHat-8.0.supp
new file mode 100755 (executable)
index 0000000..a404d43
--- /dev/null
@@ -0,0 +1,41 @@
+#This valgrind suppresion file is supposed to be working with
+#Red Hat Linux release 8.0 (Psyche)
+#You can use it by calling valgrind this way:
+#cd /usr/src/asterisk
+#valgrind --gdb-attach=yes --suppressions=valgrind-RedHat-8.0.supp asterisk -vvv
+
+{
+       library_1
+       PThread
+       fun:pthread_error
+       fun:__pthread_mutex_destroy
+       obj:/lib/i686/libc-2.2.93.so
+}
+
+{
+       library 2
+       Cond
+       fun:elf_dynamic_do_rel.7
+       fun:_dl_relocate_object_internal
+       obj:/lib/i686/libc-2.2.93.so
+       fun:_dl_catch_error_internal
+}
+
+#==21922== Thread 16:
+#==21922== Syscall param ioctl(generic) contains uninitialised or
+#unaddressable byte(s)
+#==21922==    at 0x420D3454: (within /lib/i686/libc-2.2.93.so)
+#==21922==    by 0x8058D45: ast_call (channel.c:1356)
+#==21922==    by 0x463027A7: ??? (app_dial.c:472)
+#==21922==    by 0x805E2AE: pbx_exec (pbx.c:318)
+#==21922==    Address 0x0 is not stack'd, malloc'd or free'd
+
+{
+       ioctl(........,NULL);
+       Param   
+       ioctl(generic)
+       obj:/lib/i686/libc-2.2.93.so
+       fun:ast_call
+       fun:
+       fun:pbx_exec
+}
diff --git a/frame.c b/frame.c
index 695c557..7d677f9 100755 (executable)
--- a/frame.c
+++ b/frame.c
@@ -22,6 +22,7 @@
 #include <string.h>
 #include <errno.h>
 #include <pthread.h>
+#include <stdio.h>
 #include "asterisk.h"
 
 #ifdef TRACE_FRAMES
diff --git a/valgrind-RedHat-8.0.supp b/valgrind-RedHat-8.0.supp
new file mode 100755 (executable)
index 0000000..a404d43
--- /dev/null
@@ -0,0 +1,41 @@
+#This valgrind suppresion file is supposed to be working with
+#Red Hat Linux release 8.0 (Psyche)
+#You can use it by calling valgrind this way:
+#cd /usr/src/asterisk
+#valgrind --gdb-attach=yes --suppressions=valgrind-RedHat-8.0.supp asterisk -vvv
+
+{
+       library_1
+       PThread
+       fun:pthread_error
+       fun:__pthread_mutex_destroy
+       obj:/lib/i686/libc-2.2.93.so
+}
+
+{
+       library 2
+       Cond
+       fun:elf_dynamic_do_rel.7
+       fun:_dl_relocate_object_internal
+       obj:/lib/i686/libc-2.2.93.so
+       fun:_dl_catch_error_internal
+}
+
+#==21922== Thread 16:
+#==21922== Syscall param ioctl(generic) contains uninitialised or
+#unaddressable byte(s)
+#==21922==    at 0x420D3454: (within /lib/i686/libc-2.2.93.so)
+#==21922==    by 0x8058D45: ast_call (channel.c:1356)
+#==21922==    by 0x463027A7: ??? (app_dial.c:472)
+#==21922==    by 0x805E2AE: pbx_exec (pbx.c:318)
+#==21922==    Address 0x0 is not stack'd, malloc'd or free'd
+
+{
+       ioctl(........,NULL);
+       Param   
+       ioctl(generic)
+       obj:/lib/i686/libc-2.2.93.so
+       fun:ast_call
+       fun:
+       fun:pbx_exec
+}