[Home]

Summary:ASTERISK-01746: Asterisk Crashes with Seg Fault - may be associated with moh
Reporter:jjames (jjames)Labels:
Date Opened:2004-06-02 15:00:28Date Closed:2004-09-25 02:43:30
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Was crashing daily.  I made a patch to prevent seq fault, but I crashed yesterday even with patch.  Problem occurs with CVS and stable 1_0 version.

I run a dual xeon server.  Only have the problem when moh is active.  I have 10 * servers with same configuration.  None have problem unless using moh.  Problem is rare with patch but still occurs.

My environment is * server, 410 card, pri attached to port 1, channel banks providing dial tone are attached to remaining ports.

Not sure what unique situtation may initiate problem.

****** ADDITIONAL INFORMATION ******

Following is a back trace of segfault with my patch in place:

#0  0x080597f0 in ast_write (chan=0x816c8f8, fr=0x49944578) at channel.c:76
76              if (!chan->pvt || !chan->pvt->pvt) return 1;    // jjames 2004
(gdb)
(gdb) bt
#0  0x080597f0 in ast_write (chan=0x816c8f8, fr=0x49944578) at channel.c:76
#1  0x40024a9e in moh_generate (chan=0x816c8f8, data=0xffffffff, len=-1,
   samples=-1) at res_musiconhold.c:464
#2  0x08058e7f in ast_read (chan=0x816c8f8) at channel.c:1185
#3  0x0808fc5c in autoservice_run (ign=0x0) at autoservice.c:78
#4  0x4003c484 in start_thread () from /lib/tls/libpthread.so.0
(gdb)

Comments:By: Mark Spencer (markster) 2004-06-02 15:42:14

Any crash is a crash, definitely not a feature.  Anyway as it turns out this is closely related to bug ASTERISK-1745 as it turns out.

By: Mark Spencer (markster) 2004-06-02 16:02:11

Go ahead and updated to latest CVS.  I think it might be something very simple as it turns out.

Please do *not* use the line you pasted, as it masks the true source of the crash.  It will be helpful if I can login to your system if you can find me on IRC if you can make it core dump.

By: Mark Spencer (markster) 2004-06-02 19:56:48

To be clear, I"m talking about upgrading to latest CVS head.  DO *not* use stable.

By: Mark Spencer (markster) 2004-06-05 23:00:44

Have you tried latest CVS head?  Do you still see the problem?

By: jjames (jjames) 2004-06-07 12:52:37

I installed the change on Saturday.  So far I haven't had any problems with moh.