[Home]

Summary:ASTERISK-06500: jitterbuffer:core dump.
Reporter:Tiszai (ptiszai)Labels:
Date Opened:2006-03-08 05:53:39.000-0600Date Closed:2006-05-11 09:58:24
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:The Asterisk crash.
gdb core asterisk:
"#0  jb_next (jb=0x0) at jitterbuf.c:762                                                                                                    
762             if (jb->info.silence_begin_ts) {                                                                                          
(gdb) bt                                                                                                                                  
#0  jb_next (jb=0x0) at jitterbuf.c:762                                                                                                    
#1  0xb67d4377 in __get_from_jb (p=0x823a978) at chan_iax2.c:2308                                                                          
#2  0xb67e793d in iax2_process_thread (data=0x81c5a40) at chan_iax2.c:7921                                                                
#3  0xb7fbf9c8 in start_thread () from /lib/tls/libpthread.so.0                                                                            
#4  0xb7ec1ffa in clone () from /lib/tls/libc.so.6                                                                                                                                                                                                                                                                                                                                                                                                                                                      
(gdb) bt full                                                                                                                              
#0  jb_next (jb=0x0) at jitterbuf.c:762                                                                                                    
No locals.                                                                                                                                
#1  0xb67d4377 in __get_from_jb (p=0x823a978) at chan_iax2.c:2308                                                                          
frame = {data = 0x0, ts = 0, ms = 0, type = 0, next = 0x0,                                                                                
prev = 0xb7fc14a8}                                                                                                                        
ret = Variable "ret" is not available.                                                                                                    
(gdb)"
version:
Asterisk SVN-branch-1.2-r11281
Comments:By: Denis Smirnov (mithraen) 2006-03-09 03:38:40.000-0600

I have this problem too.

By: Clod Patry (junky) 2006-03-09 19:20:32.000-0600

Could you provide a bt full and a thread apply all bt in an attached file.

By: Russell Bryant (russell) 2006-03-16 21:02:58.000-0600

We'll need a backtrace using "make dont-optimize" because the line numbers aren't making any sense.

By: Mariusz Piwnik (maniek) 2006-03-27 02:33:09.000-0600

So I have this problem with SVN-trunk-r14141.
gdb output from asterisk compiled normally.

Thread 1 (process 13394):
#0  jb_next (jb=0x0) at jitterbuf.c:757
#1  0x00dcac27 in get_from_jb (data=0xb7505968) at chan_iax2.c:2312
#2  0x08057078 in ast_sched_runq (con=0x8460a10) at sched.c:363
#3  0x00dbcb23 in sched_thread (ignore=0x0) at chan_iax2.c:8274
---Type <return> to continue, or q <return> to quit---
#4  0x00409b80 in start_thread () from /lib/libpthread.so.0
ASTERISK-1  0x00a819ce in clone () from /lib/libc.so.6
(gdb)

By: Serge Vecher (serge-v) 2006-05-02 10:17:43

Is this still a problem? If so, please produce an updated backtrace from a non-optimized build. Thanks very much.

By: Joshua C. Colp (jcolp) 2006-05-02 11:49:58

I am aware of this issue under certain race conditions. I am also currently waiting for a report back to see if a patch I created fixes the issue.

By: Denis Smirnov (mithraen) 2006-05-02 12:32:19

It's looks like race.
Why jb can be NULL in this functions?

By: Joshua C. Colp (jcolp) 2006-05-03 11:09:43

Can you give latest trunk a try? I just put in something that should fix this.

By: Serge Vecher (serge-v) 2006-05-11 09:58:24

If you are able to reproduce this issue in trunk wit rev > 26900, please reopen the bug with a new backtrace from non-optimized build. Thanks.