Summary: | ASTERISK-15519: [patch] [regression] 1.6.2.7 hangs during initial module load on Darwin | ||
Reporter: | John Covert (jcovert) | Labels: | |
Date Opened: | 2010-05-06 11:48:32 | Date Closed: | 2010-05-25 08:20:40 |
Priority: | Major | Regression? | Yes |
Status: | Closed/Complete | Components: | Core/Portability |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 20100506__issue17297.diff.txt | |
Description: | 1.6.2.7 hangs in the loader when loading the first module. It doesn't matter whether a module is specified as pre-load or not; whatever module is loaded first deadlocks. I have isolated this to the call to AST_LIST_LOCK(&module_list) which occurs in routine ast_module_register, called back from the module itself during the call to dlopen in routine load_dynamic_module. 1.6.2.6 does not exhibit this problem. | ||
Comments: | By: Paul Belanger (pabelanger) 2010-05-06 12:43:59 Are you able to provide a backtrace? --- Debugging deadlocks: Please select DEBUG_THREADS and DONT_OPTIMIZE in the Compiler Flags section of menuselect. Recompile and install Asterisk (i.e. make install) This will then give you the console command: core show locks When the symptoms of the deadlock present themselves again, please provide output of the deadlock via: # asterisk -rx \"core show locks\" | tee /tmp/core-show-locks.txt # gdb -se \"asterisk\" <pid of asterisk> | tee /tmp/backtrace.txt gdb> bt gdb> bt full gdb> thread apply all bt Then attach the core-show-locks.txt and backtrace.txt files to this issue. Thanks! By: Russell Bryant (russell) 2010-05-06 13:53:14 I saw this at one point on my mac. I think it was related to a change Tilghman made, but I thought it was fixed. I'll ask him to take a look. By: Tilghman Lesher (tilghman) 2010-05-06 14:02:33 Which version of OS X/Darwin is your system? There are minor but not insignificant differences between versions. By: John Covert (jcovert) 2010-05-06 14:32:54 Because I have a critical application that requires the emulator not supported beyond Tiger, I am stuck there. System Version: Mac OS X 10.4.11 (8S165) Kernel Version: Darwin 8.11.0 /john By: Tilghman Lesher (tilghman) 2010-05-06 17:14:03 I am unable to reproduce this lockup on either Snow Leopard or Tiger (with DONT_OPTIMIZE enabled, which is the only way that Tiger will compile 1.6.2). By: Tilghman Lesher (tilghman) 2010-05-06 17:54:54 Patch uploaded that allows me to compile with optimizations turned on for 10.4.11 (8S165) Darwin 8.11.0. Again, no lockup can be reproduced. By: Tilghman Lesher (tilghman) 2010-05-06 18:03:07 One suggestion: Please try the latest 1.6.2 branch. There's an issue that has already been fixed in the tree that is not in the latest release (although it IS in the latest release candidate). This is related to how we branch releases, such that releases may not reflect all bug fixes that are committed as of the release date. By: John Covert (jcovert) 2010-05-06 18:29:25 Just as a reply to pabelanger - I was pretty clear that it would be impossible to enter any cli commands, since, as I said, even the very first module doesn't load. There is no CLI. I will try 1.6.3 svn head. I have not had to select any compiler options in menuselect. 1.6.2.6 worked without problems, except the odbc had errors during load, so I noloaded it. By: John Covert (jcovert) 2010-05-10 06:06:22 compiles and loads ok in both svn-261911 and 1.6.2.8-rc1. Except for *odbc*, which I don't personally care about, and have turned off in menuselect. I'm separately reporting a problem with ast_safe_system status reporting. You may close this report. By: John Covert (jcovert) 2010-05-10 06:34:32 Actually, I won't be reporting the problem with ast_safe_system status reporting. In 1.6.2.6, in app_voicemail, soxstatus was being set < 0, even thought the command had succeeded. This has been fixed in 1.6.2.8.rc1. By: Digium Subversion (svnbot) 2010-05-10 11:34:21 Repository: asterisk Revision: 262151 U branches/1.4/Makefile.rules ------------------------------------------------------------------------ r262151 | tilghman | 2010-05-10 11:34:21 -0500 (Mon, 10 May 2010) | 10 lines Allow compilation on Mac OS X 10.4 (Tiger) (closes issue ASTERISK-15519) Reported by: jcovert Patches: 20100506__issue17297.diff.txt uploaded by tilghman (license 14) (closes issue ASTERISK-16065) Reported by: jcovert ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=262151 By: Digium Subversion (svnbot) 2010-05-10 11:36:26 Repository: asterisk Revision: 262152 _U trunk/ U trunk/Makefile.rules ------------------------------------------------------------------------ r262152 | tilghman | 2010-05-10 11:36:25 -0500 (Mon, 10 May 2010) | 17 lines Merged revisions 262151 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r262151 | tilghman | 2010-05-10 11:34:21 -0500 (Mon, 10 May 2010) | 10 lines Allow compilation on Mac OS X 10.4 (Tiger) (closes issue ASTERISK-15519) Reported by: jcovert Patches: 20100506__issue17297.diff.txt uploaded by tilghman (license 14) (closes issue ASTERISK-16065) Reported by: jcovert ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=262152 By: Digium Subversion (svnbot) 2010-05-10 11:38:46 Repository: asterisk Revision: 262153 _U branches/1.6.0/ U branches/1.6.0/Makefile.rules ------------------------------------------------------------------------ r262153 | tilghman | 2010-05-10 11:38:46 -0500 (Mon, 10 May 2010) | 24 lines Merged revisions 262152 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r262152 | tilghman | 2010-05-10 11:36:25 -0500 (Mon, 10 May 2010) | 17 lines Merged revisions 262151 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r262151 | tilghman | 2010-05-10 11:34:21 -0500 (Mon, 10 May 2010) | 10 lines Allow compilation on Mac OS X 10.4 (Tiger) (closes issue ASTERISK-15519) Reported by: jcovert Patches: 20100506__issue17297.diff.txt uploaded by tilghman (license 14) (closes issue ASTERISK-16065) Reported by: jcovert ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=262153 By: Digium Subversion (svnbot) 2010-05-10 11:38:55 Repository: asterisk Revision: 262154 _U branches/1.6.1/ U branches/1.6.1/Makefile.rules ------------------------------------------------------------------------ r262154 | tilghman | 2010-05-10 11:38:54 -0500 (Mon, 10 May 2010) | 24 lines Merged revisions 262152 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r262152 | tilghman | 2010-05-10 11:36:25 -0500 (Mon, 10 May 2010) | 17 lines Merged revisions 262151 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r262151 | tilghman | 2010-05-10 11:34:21 -0500 (Mon, 10 May 2010) | 10 lines Allow compilation on Mac OS X 10.4 (Tiger) (closes issue ASTERISK-15519) Reported by: jcovert Patches: 20100506__issue17297.diff.txt uploaded by tilghman (license 14) (closes issue ASTERISK-16065) Reported by: jcovert ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=262154 By: Digium Subversion (svnbot) 2010-05-10 11:39:04 Repository: asterisk Revision: 262155 _U branches/1.6.2/ U branches/1.6.2/Makefile.rules ------------------------------------------------------------------------ r262155 | tilghman | 2010-05-10 11:39:03 -0500 (Mon, 10 May 2010) | 24 lines Merged revisions 262152 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r262152 | tilghman | 2010-05-10 11:36:25 -0500 (Mon, 10 May 2010) | 17 lines Merged revisions 262151 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r262151 | tilghman | 2010-05-10 11:34:21 -0500 (Mon, 10 May 2010) | 10 lines Allow compilation on Mac OS X 10.4 (Tiger) (closes issue ASTERISK-15519) Reported by: jcovert Patches: 20100506__issue17297.diff.txt uploaded by tilghman (license 14) (closes issue ASTERISK-16065) Reported by: jcovert ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=262155 |