Wed Mar 19 07:00:01 CET 2003

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matteo Brancaleoni 2003-03-19 06:00:11 +00:00
parent b11c63b0c2
commit ad80c6308b
4 changed files with 83 additions and 8 deletions

View File

@ -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;
}

View File

@ -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
}

View File

@ -22,6 +22,7 @@
#include <string.h>
#include <errno.h>
#include <pthread.h>
#include <stdio.h>
#include "asterisk.h"
#ifdef TRACE_FRAMES

41
valgrind-RedHat-8.0.supp Executable file
View File

@ -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
}