[asterisk-bugs] [Asterisk 0014202]: load_modules errors

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jan 9 07:24:00 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14202 
====================================================================== 
Reported By:                jangjun21
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   14202
Category:                   Resources/General
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.4.23-rc3 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2009-01-09 03:18 CST
Last Modified:              2009-01-09 07:24 CST
====================================================================== 
Summary:                    load_modules errors
Description: 
when I start asterisk ,there are more notes  "Invalid read of size" in
valgrind.txt,I don't know why?
==22712== Memcheck, a memory error detector.
==22712== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==22712== Using LibVEX rev 1658, a library for dynamic binary
translation.
==22712== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==22712== Using valgrind-3.2.1, a dynamic binary instrumentation
framework.
==22712== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==22712== For more details, rerun with: -v
==22712== 
==22712== My PID = 22712, parent PID = 22682.  Prog and args are:
==22712==    asterisk
==22712==    -vvvvcg
==22712== 
==22712== Invalid read of size 1
==22712==    at 0xA2D1CD: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712==  Address 0x404CB34 is 516 bytes inside a block of size 640
free'd
==22712==    at 0x4004FDA: free (vg_replace_malloc.c:233)
==22712==    by 0xA2CD83: _dl_close_worker (in /lib/ld-2.5.so)
==22712==    by 0xA2D1F6: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712== 
==22712== Invalid read of size 4
==22712==    at 0xA2D1D6: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712==  Address 0x404CAB8 is 392 bytes inside a block of size 640
free'd
==22712==    at 0x4004FDA: free (vg_replace_malloc.c:233)
==22712==    by 0xA2CD83: _dl_close_worker (in /lib/ld-2.5.so)
==22712==    by 0xA2D1F6: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712== 
==22712== Invalid read of size 4
==22712==    at 0xA2D20D: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712==  Address 0x404C934 is 4 bytes inside a block of size 640 free'd
==22712==    at 0x4004FDA: free (vg_replace_malloc.c:233)
==22712==    by 0xA2CD83: _dl_close_worker (in /lib/ld-2.5.so)
==22712==    by 0xA2D1F6: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712== 
==22712== Invalid read of size 1
==22712==    at 0x4006258: strlen (mc_replace_strmem.c:247)
==22712==    by 0xA27D31: _dl_signal_error (in /lib/ld-2.5.so)
==22712==    by 0xA2D222: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712==  Address 0x404C8D8 is 0 bytes inside a block of size 40 free'd
==22712==    at 0x4004FDA: free (vg_replace_malloc.c:233)
==22712==    by 0xA2CD01: _dl_close_worker (in /lib/ld-2.5.so)
==22712==    by 0xA2D1F6: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712== 
==22712== Invalid read of size 1
==22712==    at 0x4006263: strlen (mc_replace_strmem.c:247)
==22712==    by 0xA27D31: _dl_signal_error (in /lib/ld-2.5.so)
==22712==    by 0xA2D222: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712==  Address 0x404C8D9 is 1 bytes inside a block of size 40 free'd
==22712==    at 0x4004FDA: free (vg_replace_malloc.c:233)
==22712==    by 0xA2CD01: _dl_close_worker (in /lib/ld-2.5.so)
==22712==    by 0xA2D1F6: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712== 
==22712== Invalid read of size 4
==22712==    at 0xA2FACC: memcpy (in /lib/ld-2.5.so)
==22712==    by 0xA2D222: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712==  Address 0x404C8D8 is 0 bytes inside a block of size 40 free'd
==22712==    at 0x4004FDA: free (vg_replace_malloc.c:233)
==22712==    by 0xA2CD01: _dl_close_worker (in /lib/ld-2.5.so)
==22712==    by 0xA2D1F6: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712== 
==22712== Invalid read of size 2
==22712==    at 0xA2FACA: memcpy (in /lib/ld-2.5.so)
==22712==    by 0xA2D222: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712==  Address 0x4053628 is 0 bytes inside a block of size 38 free'd
==22712==    at 0x4004FDA: free (vg_replace_malloc.c:233)
==22712==    by 0xA2CD01: _dl_close_worker (in /lib/ld-2.5.so)
==22712==    by 0xA2D1F6: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712== 
==22712== Invalid read of size 1
==22712==    at 0xA2FAC5: memcpy (in /lib/ld-2.5.so)
==22712==    by 0xA2D222: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712==  Address 0x4053C88 is 0 bytes inside a block of size 45 free'd
==22712==    at 0x4004FDA: free (vg_replace_malloc.c:233)
==22712==    by 0xA2CD01: _dl_close_worker (in /lib/ld-2.5.so)
==22712==    by 0xA2D1F6: _dl_close (in /lib/ld-2.5.so)
==22712==    by 0xB7ECC3: dlclose_doit (in /lib/libdl-2.5.so)
==22712==    by 0xA27C35: _dl_catch_error (in /lib/ld-2.5.so)
==22712==    by 0xB7F2AB: _dlerror_run (in /lib/libdl-2.5.so)
==22712==    by 0xB7ECF9: dlclose (in /lib/libdl-2.5.so)
==22712==    by 0x80B2E67: load_dynamic_module (loader.c:385)
==22712==    by 0x80B394B: load_resource (loader.c:650)
==22712==    by 0x80B432F: load_modules (loader.c:878)
==22712==    by 0x8073017: main (asterisk.c:3157)
==22712== 
==22712== ERROR SUMMARY: 7635 errors from 8 contexts (suppressed: 623 from
1)
==22712== malloc/free: in use at exit: 2,071,663 bytes in 9,930 blocks.
==22712== malloc/free: 34,135 allocs, 24,205 frees, 4,998,371 bytes
allocated.
==22712== For counts of detected errors, rerun with: -v
==22712== searching for pointers to 9,930 not-freed blocks.
==22712== checked 12,073,428 bytes.
==22712== 
==22712== LEAK SUMMARY:
==22712==    definitely lost: 12,875 bytes in 24 blocks.
==22712==      possibly lost: 4,008 bytes in 28 blocks.
==22712==    still reachable: 2,054,780 bytes in 9,878 blocks.
==22712==         suppressed: 0 bytes in 0 blocks.
==22712== Use --leak-check=full to see details of leaked memory.

====================================================================== 

---------------------------------------------------------------------- 
 (0097277) blitzrage (administrator) - 2009-01-09 07:24
 http://bugs.digium.com/view.php?id=14202#c97277 
---------------------------------------------------------------------- 
Assigning this issue to Corydon76 to take a quick look. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-09 07:24 blitzrage      Note Added: 0097277                          
======================================================================




More information about the asterisk-bugs mailing list