[Home]

Summary:ASTERISK-07229: func_odbc (backport) on 1.2.9.1 sometimes crashes Asterisk
Reporter:Leif Madsen (lmadsen)Labels:
Date Opened:2006-06-24 05:38:18Date Closed:2006-07-05 23:21:44
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Functions/func_odbc
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) func_odbc_crash_06-23-2006.txt
Description:I've seen this happen 2-3 times, and it seems to only happen every once in a while. I've been unable to reproduce this unfortunately, and only seems to happen once every 2-3 weeks.

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

The only thing I've noticed is that if func_odbc is called when the connection to the DB is lost (i.e. the DB is restarted) -- then the next time func_odbc is called it tries to connect to the DB and causes Asterisk to crash. Afaik in this case the DB was not restarted (at least not by me), although the DB is remote, so it may have been possible that the connection timed out.

I believe this was func_odbc -- however, after looking at the backtrace it may be func_array... I'm not so good at reading those though, so I'll just attach it for your further investigation.
Comments:By: Tilghman Lesher (tilghman) 2006-06-24 10:21:23

Does this happen during a reload or at some other time?

By: Leif Madsen (lmadsen) 2006-06-24 11:18:23

Unfortunately I wasn't watching the console at the time of the crash, so it very well may have happened during a reload. Also, as we had discussed in IRC this is on a box with a corrupt stack (it's a very old installation of RH9 which needs to be desperately updated to a newer OS, but I digress).

Any good place to check in a log or something maybe to determine when the Asterisk may have crashed?

By: Serge Vecher (serge-v) 2006-06-28 13:03:02

since whatever change that happens will not make it back to the 1.2, perhaps it is best to close this bug?

By: Tilghman Lesher (tilghman) 2006-07-05 23:21:44

Agreed.  Since the stack is corrupt, it's impossible to tell if this is even an issue with either of those dialplan functions or in something completely unrelated.