[Home]

Summary:ASTERISK-05856: [64bit] cdr_addon_mysql.so crashes on reload even with new mutex code
Reporter:nywiley (nywiley)Labels:
Date Opened:2005-12-16 13:57:25.000-0600Date Closed:2006-01-10 21:20:21.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Been suffering from unexplained crashes of asterisk 1.2.1.  Finally got a core dump that allowed me to see it was dying in the cdr_addon_mysql module.  However, it has the new mutex locking code, but it didn't appear to stop it from crashing.  It doesn't happen on every reload, only occassionally is the
timing right.

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

#0  0x00002aaaaaccd68c in __pthread_sigsuspend () from /lib/libpthread.so.0
#1  0x00002aaaaacccec0 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
#2  0x00002aaaaacceb9b in __pthread_lock () from /lib/libpthread.so.0
#3  0x00002aaaaaccbcfc in pthread_mutex_lock () from /lib/libpthread.so.0
#4  0x00002aaab4499403 in ?? () from /usr/lib/asterisk/modules/cdr_addon_mysql.so
ASTERISK-1  0x00002aaab4499fd1 in reload () from /usr/lib/asterisk/modules/cdr_addon_mysql.so
ASTERISK-2  0x0000000000416812 in ast_module_reload (name=0x2aaab4499fbd "UH\211åH\203ì\020H\215=t\023\020") at loader.c:257
ASTERISK-3  0x000000000046c48d in hup_handler (num=1) at asterisk.c:737
ASTERISK-4  0x00002aaaaacd0127 in __pthread_sighandler () from /lib/libpthread.so.0
ASTERISK-5  0x00002aaaab3b5810 in killpg () from /lib/libc.so.6
ASTERISK-6 0x0000000000000000 in ?? ()
Comments:By: Tilghman Lesher (tilghman) 2005-12-17 09:00:56.000-0600

That would appear to be a bug in your pthreads implementation, not in Asterisk.  What platform are you running on?

By: nywiley (nywiley) 2005-12-19 13:07:47.000-0600

Running Gentoo Linux 2005.1 on an SMP Opteron platform.  Kernel is 2.6.14-r4

By: Mark Spencer (markster) 2005-12-20 01:57:48.000-0600

Can you rebuild cdr-mysql without optimizations and get another backtrace?

By: Matt O'Gorman (mogorman) 2006-01-10 09:36:03.000-0600

is this still a problem nywiley?  I dont seem to have any issues running cdr_mysql on my debian 64 bit box?

By: nywiley (nywiley) 2006-01-10 20:01:53.000-0600

I have not had another error in this section of code since recompiling.  I am having another problem with memory in the cdr section, but I will open another trouble ticket for that ... you can close this one.

By: Matt O'Gorman (mogorman) 2006-01-10 21:18:39.000-0600

was not able to duplicate after rebuilding, and was unable to duplicate on other 64 bit machines