Summary: | ASTERISK-14922: "core show channels" crash | ||
Reporter: | Atis Lezdins (atis) | Labels: | |
Date Opened: | 2009-10-01 07:02:18 | Date Closed: | 2009-11-10 15:56:36.000-0600 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Core/Channels |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) valgrind.txt | |
Description: | I got this crash when running asterisk under valgrind, however i couldn't find core dump. Attached valgrind log with the following lines grepped out: Warning: invalid file descriptor NNNN in syscall FFFF() Use --log-fd=<number> to select an alternative log fd ****** ADDITIONAL INFORMATION ****** Thread 41: Invalid read of size 1 at 0x1440303B: __ast_pthread_mutex_lock (lock.h:485) by 0x14403B1F: local_bridgedchannel (chan_local.c:179) by 0x46554F: ast_bridged_channel (channel.c:4655) by 0x46C6D6: handle_chanlist (cli.c:686) by 0x470CD4: ast_cli_command (cli.c:1888) by 0x470F3F: ast_cli_command_multiple (cli.c:1921) by 0x4370FA: netconsole (asterisk.c:1039) by 0x541B12: dummy_start (utils.c:968) by 0x3A42A06406: start_thread (pthread_create.c:297) by 0x3A41ED4B0C: clone (in /lib64/libc-2.7.so) Address 0x148 is not stack'd, malloc'd or (recently) free'd Process terminating with default action of signal 11 (SIGSEGV): dumping core Access not within mapped region at address 0x148 at 0x1440303B: __ast_pthread_mutex_lock (lock.h:485) by 0x14403B1F: local_bridgedchannel (chan_local.c:179) by 0x46554F: ast_bridged_channel (channel.c:4655) by 0x46C6D6: handle_chanlist (cli.c:686) by 0x470CD4: ast_cli_command (cli.c:1888) by 0x470F3F: ast_cli_command_multiple (cli.c:1921) | ||
Comments: | By: Terry Wilson (twilson) 2009-11-05 15:15:02.000-0600 I have some questions. How often does this happen? Is it reproducible? What is going on when it happens--it looks like a Local channel is being used. Could you post an extensions.conf example that I might be able to use to reproduce this on my test box? Thanks. By: Digium Subversion (svnbot) 2009-11-09 16:56:13.000-0600 Repository: asterisk Revision: 229015 U trunk/channels/chan_local.c ------------------------------------------------------------------------ r229015 | twilson | 2009-11-09 16:56:13 -0600 (Mon, 09 Nov 2009) | 8 lines Don't crash when bridge->tech_pvt == NULL This is a similar solution to what is in place for chan_agent (closes issue ASTERISK-14922) Reported by: atis Tested by: twilson ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=229015 By: Digium Subversion (svnbot) 2009-11-09 16:58:34.000-0600 Repository: asterisk Revision: 229016 _U branches/1.6.1/ U branches/1.6.1/channels/chan_local.c ------------------------------------------------------------------------ r229016 | twilson | 2009-11-09 16:58:34 -0600 (Mon, 09 Nov 2009) | 15 lines Merged revisions 229015 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r229015 | twilson | 2009-11-09 16:50:22 -0600 (Mon, 09 Nov 2009) | 8 lines Don't crash when bridge->tech_pvt == NULL This is a similar solution to what is in place for chan_agent (closes issue ASTERISK-14922) Reported by: atis Tested by: twilson ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=229016 By: Digium Subversion (svnbot) 2009-11-09 17:05:06.000-0600 Repository: asterisk Revision: 229017 _U branches/1.6.2/ U branches/1.6.2/channels/chan_local.c ------------------------------------------------------------------------ r229017 | twilson | 2009-11-09 17:05:05 -0600 (Mon, 09 Nov 2009) | 15 lines Merged revisions 229015 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r229015 | twilson | 2009-11-09 16:50:22 -0600 (Mon, 09 Nov 2009) | 8 lines Don't crash when bridge->tech_pvt == NULL This is a similar solution to what is in place for chan_agent (closes issue ASTERISK-14922) Reported by: atis Tested by: twilson ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=229017 |