[Home]

Summary:ASTERISK-17970: crash on core restart when convenient
Reporter:daren ferreira (daren)Labels:
Date Opened:2011-06-06 17:16:00Date Closed:2011-09-14 08:51:49
Priority:MajorRegression?
Status:Closed/CompleteComponents:Core/General
Versions:1.8.4 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Attachments:( 0) core-restart-when-convenient-crash.bz2
Description:When using "core restart when convenient" on a fresh upgraded asterisk server (1.6.2.18 to 1.8.4.2), asterisk crash with the following message.

I'll attach the core to this request.

*** glibc detected *** asterisk: free(): invalid pointer: 0x00007fd6fc020b18 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fd704248928]
/lib/libc.so.6(cfree+0x76)[0x7fd70424aa36]
asterisk(ast_logger_unregister_level+0xb1)[0x4e7177]
/usr/lib/asterisk/modules/res_fax.so[0x7fd702f66ca4]
asterisk(ast_module_shutdown+0x135)[0x4dfcd3]
asterisk[0x43dfef]
asterisk[0x43ed9e]
asterisk(ast_cli_command_full+0x231)[0x490264]
asterisk[0x43e7d8]
asterisk[0x444ecd]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fd7041f31a6]
asterisk[0x422019]
======= Memory map: ========
00400000-005fb000 r-xp 00000000 08:02 4743266                            /usr/sbin/asterisk
007fa000-0080a000 rw-p 001fa000 08:02 4743266                            /usr/sbin/asterisk
0080a000-0083f000 rw-p 00000000 00:00 0
01664000-01e36000 rw-p 00000000 00:00 0                                  [heap]
40132000-40133000 ---p 00000000 00:00 0
40133000-401ae000 rw-p 00000000 00:00 0
4036f000-40370000 ---p 00000000 00:00 0
40370000-403eb000 rw-p 00000000 00:00 0
4048f000-40490000 ---p 00000000 00:00 0
40490000-4050b000 rw-p 00000000 00:00 0
4050b000-4050c000 ---p 00000000 00:00 0
4050c000-40587000 rw-p 00000000 00:00 0
40830000-40831000 ---p 00000000 00:00 0
40831000-408ac000 rw-p 00000000 00:00 0
4090a000-4090b000 ---p 00000000 00:00 0
4090b000-40986000 rw-p 00000000 00:00 0
40986000-40987000 ---p 00000000 00:00 0
40987000-40a02000 rw-p 00000000 00:00 0
40a02000-40a03000 ---p 00000000 00:00 0
40a03000-40a7e000 rw-p 00000000 00:00 0
40a7e000-40a7f000 ---p 00000000 00:00 0
40a7f000-40afa000 rw-p 00000000 00:00 0
40b1b000-40b1c000 ---p 00000000 00:00 0
40b1c000-40b97000 rw-p 00000000 00:00 0
40b97000-40b98000 ---p 00000000 00:00 0
40b98000-40c13000 rw-p 00000000 00:00 0
40c43000-40c44000 ---p 00000000 00:00 0
40c44000-40cbf000 rw-p 00000000 00:00 0
40cbf000-40cc0000 ---p 00000000 00:00 0
40cc0000-40d3b000 rw-p 00000000 00:00 0
40d3b000-40d3c000 ---p 00000000 00:00 0
40d3c000-40db7000 rw-p 00000000 00:00 0
40dba000-40dbb000 ---p 00000000 00:00 0
40dbb000-40e36000 rw-p 00000000 00:00 0
40e36000-40e37000 ---p 00000000 00:00 0
40e37000-40eb2000 rw-p 00000000 00:00 0
40eb2000-40eb3000 ---p 00000000 00:00 0
40eb3000-40f2e000 rw-p 00000000 00:00 0
40f5d000-40f5e000 ---p 00000000 00:00 0
40f5e000-40fd9000 rw-p 00000000 00:00 0
40ff9000-40ffa000 ---p 00000000 00:00 0
40ffa000-41075000 rw-p 00000000 00:00 0
410b8000-410b9000 ---p 00000000 00:00 0
410b9000-41134000 rw-p 00000000 00:00 0
4119f000-411a0000 ---p 00000000 00:00 0
411a0000-4121b000 rw-p 00000000 00:00 0
4121b000-4121c000 ---p 00000000 00:00 0
4121c000-41297000 rw-p 00000000 00:00 0
41297000-41298000 ---p 00000000 00:00 0
41298000-41313000 rw-p 00000000 00:00 0
4135e000-4135f000 ---p 00000000 00:00 0
4135f000-413da000 rw-p 00000000 00:00 0
41418000-41419000 ---p 00000000 00:00 0
41419000-41494000 rw-p 00000000 00:00 0
414d1000-414d2000 ---p 00000000 00:00 0
414d2000-4154d000 rw-p 00000000 00:00 0
4154d000-4154e000 ---p 00000000 00:00 0
4154e000-415c9000 rw-p 00000000 00:00 0
415c9000-415ca000 ---p 00000000 00:00 0
415ca000-41645000 rw-p 00000000 00:00 0
41645000-41646000 ---p 00000000 00:00 0
41646000-416c1000 rw-p 00000000 00:00 0
416c1000-416c2000 ---p 00000000 00:00 0
416c2000-4173d000 rw-p 00000000 00:00 0
4173d000-4173e000 ---p 00000000 00:00 0
4173e000-417b9000 rw-p 00000000 00:00 0
417b9000-417ba000 ---p 00000000 00:00 0
417ba000-41835000 rw-p 00000000 00:00 0
41923000-41924000 ---p 00000000 00:00 0
41924000-4199f000 rw-p 00000000 00:00 0
41a0c000-41a0d000 ---p 00000000 00:00 0
41a0d000-41a88000 rw-p 00000000 00:00 0
41a88000-41a89000 ---p 00000000 00:00 0
41a89000-41b04000 rw-p 00000000 00:00 0
41c0a000-41c0b000 ---p 00000000 00:00 0
41c0b000-41c86000 rw-p 00000000 00:00 0
41c86000-41c87000 ---p 00000000 00:00 0
41c87000-41d02000 rw-p 00000000 00:00 0
41d9a000-41d9b000 ---p 00000000 00:00 0
41d9b000-41e16000 rw-p 00000000 00:00 0
7fd6e0bb4000-7fd6e0bca000 r-xp 00000000 08:02 6750235                    /lib/libgcc_s.so.1
7fd6e0bca000-7fd6e0dca000 ---p 00016000 08:02 6750235                    /lib/libgcc_s.so.1
7fd6e0dca000-7fd6e0dcb000 rw-p 00016000 08:02 6750235                    /lib/libgcc_s.so.1
7fd6e0dcb000-7fd6e0dcf000 r-xp 00000000 08:02 6751264                    /lib/libnss_dns-2.7.so
7fd6e0dcf000-7fd6e0fce000 ---p 00004000 08:02 6751264                    /lib/libnss_dns-2.7.so
7fd6e0fce000-7fd6e0fd0000 rw-p 00003000 08:02 6751264                    /lib/libnss_dns-2.7.so
7fd6e1051000-7fd6e1053000 r-xp 00000000 08:02 1631712                    /usr/lib/asterisk/modules/func_sprintf.so
7fd6e1053000-7fd6e1252000 ---p 00002000 08:02 1631712                    /usr/lib/asterisk/modules/func_sprintf.so
7fd6e1252000-7fd6e1253000 rw-p 00001000 08:02 1631712                    /usr/lib/asterisk/modules/func_sprintf.so
7fd6e1253000-7fd6e12a4000 r-xp 00000000 08:02 508177                     /usr/lib/libpri.so.1.4
7fd6e12a4000-7fd6e14a4000 ---p 00051000 08:02 508177                     /usr/lib/libpri.so.1.4
7fd6e14a4000-7fd6e14ac000 rw-p 00051000 08:02 508177                     /usr/lib/libpri.so.1.4
7fd6e14ac000-7fd6e14af000 r-xp 00000000 08:02 508240                     /usr/lib/libtonezone.so.2.0
7fd6e14af000-7fd6e16ae000 ---p 00003000 08:02 508240                     /usr/lib/libtonezone.so.2.0
7fd6e16ae000-7fd6e16de000 rw-p 00002000 08:02 508240                     /usr/lib/libtonezone.so.2.0
7fd6e16de000-7fd6e1758000 r-xp 00000000 08:02 1631544                    /usr/lib/asterisk/modules/chan_dahdi.so
7fd6e1758000-7fd6e1958000 ---p 0007a000 08:02 1631544                    /usr/lib/asterisk/modules/chan_dahdi.so
7fd6e1958000-7fd6e195d000 rw-p 0007a000 08:02 1631544                    /usr/lib/asterisk/modules/chan_dahdi.so
7fd6e195d000-7fd6e198f000 rw-p 00000000 00:00 0
7fd6e198f000-7fd6e1997000 r-xp 00000000 08:02 1631665                    /usr/lib/asterisk/modules/cdr_adaptive_odbc.so
7fd6e1997000-7fd6e1b96000 ---p 00008000 08:02 1631665                    /usr/lib/asterisk/modules/cdr_adaptive_odbc.so
7fd6e1b96000-7fd6e1b97000 rw-p 00007000 08:02 1631665                    /usr/lib/asterisk/modules/cdr_adaptive_odbc.so
7fd6e1b97000-7fd6e1b9d000 r-xp 00000000 08:02 1631565                    /usr/lib/asterisk/modules/pbx_spool.so
7fd6e1b9d000-7fd6e1d9d000 ---p 00006000 08:02 1631565                    /usr/lib/asterisk/modules/pbx_spool.so
7fd6e1d9d000-7fd6e1d9e000 rw-p 00006000 08:02 1631565                    /usr/lib/asterisk/modules/pbx_spool.so
7fd6e1d9e000-7fd6e1daf000 r-xp 00000000 08:02 1630920                    /usr/lib/asterisk/modules/chan_agent.so
7fd6e1daf000-7fd6e1fae000 ---p 00011000 08:02 1630920                    /usr/lib/asterisk/modules/chan_agent.so
7fd6e1fae000-7fd6e1fb0000 rw-p 00010000 08:02 1630920                    /usr/lib/asterisk/modules/chan_agent.so
7fd6e1fb0000-7fd6e1fdf000 r-xp 00000000 08:02 1631610                    /usr/lib/asterisk/modules/app_queue.soAbandon (core dumped)
Comments:By: daren ferreira (daren) 2011-06-06 17:19:30.733-0500

core dump of the crash provocated by the "core restart when convenient" command

By: Leif Madsen (lmadsen) 2011-06-13 12:33:53.846-0500

Please test this on the latest 1.8 branch because I know some work was going on in that code that should have resolved the issue.

By: daren ferreira (daren) 2011-06-14 16:13:19.384-0500

Add comment button has disappeared so i edit my request.

The problem occurs on a production server so i can't afford to use non stable branch. I will have to wait for the next release if the problem has been solved...

By: Leif Madsen (lmadsen) 2011-06-17 10:14:23.691-0500

I'm not sure how running a particular "release" is any different than running something from the branch if you aren't testing it ahead of deployment anyways. Asterisk is under constant automated testing so pulling from the branch directly and deploying to your production box without running it through your own local testing is no different than doing the same thing with a tag.

By: Leif Madsen (lmadsen) 2011-08-10 16:16:52.190-0500

Asterisk 1.8.6.0-rc1 was just released. Please test.

By: Leif Madsen (lmadsen) 2011-09-14 08:51:42.991-0500

Suspended due to lack of activity. Please request a bug marshal in #asterisk-bugs on the IRC network irc.freenode.net to reopen the issue should you have the additional information requested.  Further information can be found at http://www.asterisk.org/developers/bug-guidelines