[asterisk-bugs] [Asterisk 0013300]: Asterisk crashes, leaving a voicemail message stored on pgsql DB via ODBC

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Aug 15 07:32:31 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13300 
====================================================================== 
Reported By:                moliveras
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13300
Category:                   Applications/app_voicemail/ODBC
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 137188 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-13 12:32 CDT
Last Modified:              2008-08-15 07:32 CDT
====================================================================== 
Summary:                    Asterisk crashes, leaving a voicemail message stored
on pgsql DB via ODBC
Description: 
I compiled asterisk 2.4.21.1 for ODBC voicemail using a PGSQL DB. Every
time I left a voicemail message, asterisk would get a segmentation fault
and restart.  

I also tried this with the 1.4 branch and got the same result
(branch1.4-r137188).

The odd thing is that after compiling a NON OPTIMIZED build to get a
backtrace the crash no longer occurs.  I left over 150 messages with the
non optimized build and saw no problems.  Using the OPTIMIZED build crashes
asterisk ever time after the first voicemail message is left.  I will
attach the OPTIMIZED backtrace as that was all I could get.  Let me know
what additional data you would like to see and I will also attach it.

Best Regards,

Mike Oliveras


====================================================================== 

---------------------------------------------------------------------- 
 (0091442) moliveras (reporter) - 2008-08-15 07:32
 http://bugs.digium.com/view.php?id=13300#c91442 
---------------------------------------------------------------------- 
[root at mikeo_asterisk1 ~]# gcc -v
Using built-in specs.

I am using centOS 5.1, and have the latest version of gcc avaliable
gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)

I ran asterisk under valgrind as requested:
valgrind --log-file-exactly=valgrind.txt asterisk -vvvvcg
2>malloc_debug.txt

The malloc_debug file was empty so I am just attaching the valgrind.txt
file. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-15 07:32 moliveras      Note Added: 0091442                          
======================================================================




More information about the asterisk-bugs mailing list