aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xchannels/chan_sip.c8
-rwxr-xr-xcontrib/valgrind-RedHat-8.0.supp41
-rwxr-xr-xframe.c1
-rwxr-xr-xvalgrind-RedHat-8.0.supp41
4 files changed, 83 insertions, 8 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 819f44d4c..824aa7c8a 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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
index 000000000..a404d43fa
--- /dev/null
+++ b/contrib/valgrind-RedHat-8.0.supp
@@ -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 695c5573e..7d677f9aa 100755
--- 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
index 000000000..a404d43fa
--- /dev/null
+++ b/valgrind-RedHat-8.0.supp
@@ -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
+}