boilermake n stuff

alan buxey A.L.M.Buxey at lboro.ac.uk
Wed Nov 21 23:50:18 CET 2012


Hi,

>   Go through the scripts/*mk, and remove the @ from the build rules.
> Run them again.  Then find the one where jlibtool complains, and run
> that under valgrind.

ignore previous post. missed a .mk file.

heres the current issue:

mkdir -p build/lib/
echo LINK build/lib/libfreeradius-radius.la
LINK build/lib/libfreeradius-radius.la
/usr/local/src/freeradius-server/scripts/jlibtool --silent --mode=link gcc -o build/lib/libfreeradius-radius.la -rpath /usr/local/src/freeradius-server/build/lib/.libs -rdynamic    build/objs/src/lib/dict.lo build/objs/src/lib/filters.lo build/objs/src/lib/hash.lo build/objs/src/lib/hmac.lo build/objs/src/lib/hmacsha1.lo build/objs/src/lib/isaac.lo build/objs/src/lib/log.lo build/objs/src/lib/misc.lo build/objs/src/lib/missing.lo build/objs/src/lib/md4.lo build/objs/src/lib/md5.lo build/objs/src/lib/print.lo build/objs/src/lib/radius.lo build/objs/src/lib/rbtree.lo build/objs/src/lib/sha1.lo build/objs/src/lib/snprintf.lo build/objs/src/lib/strlcat.lo build/objs/src/lib/strlcpy.lo build/objs/src/lib/token.lo build/objs/src/lib/udpfromto.lo build/objs/src/lib/valuepair.lo build/objs/src/lib/fifo.lo build/objs/src/lib/packet.lo build/objs/src/lib/event.lo build/objs/src/lib/getaddrinfo.lo build/objs/src/lib/vqp.lo build/objs/src/lib/heap.lo build/objs/src/lib/dhcp.lo build/objs/src/lib/tcp.lo build/objs/src/lib/base64.lo  -lnsl -lresolv -ldl -lpthread  
*** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000001e611f0 ***
*** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000001e62040 ***
*** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000001e83040 ***
*** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000001ea4040 ***
*** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000001ec5040 ***
*** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000001ee6040 ***
ar: WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW?build/lib/.libs/libfreeradius-radius.a: No such file or directory
make: *** [build/lib/libfreeradius-radius.la] Error 1

...though I had to BOILER = yes in the Make.inc to reveal this.


 valgrind /usr/local/src/freeradius-server/scripts/jlibtool --silent --mode=link gcc -o build/lib/libfreeradius-radius.la -rpath /usr/local/src/freeradius-server/build/lib/.libs -rdynamic    build/objs/src/lib/dict.lo build/objs/src/lib/filters.lo build/objs/src/lib/hash.lo build/objs/src/lib/hmac.lo build/objs/src/lib/hmacsha1.lo build/objs/src/lib/isaac.lo build/objs/src/lib/log.lo build/objs/src/lib/misc.lo build/objs/src/lib/missing.lo build/objs/src/lib/md4.lo build/objs/src/lib/md5.lo build/objs/src/lib/print.lo build/objs/src/lib/radius.lo build/objs/src/lib/rbtree.lo build/objs/src/lib/sha1.lo build/objs/src/lib/snprintf.lo build/objs/src/lib/strlcat.lo build/objs/src/lib/strlcpy.lo build/objs/src/lib/token.lo build/objs/src/lib/udpfromto.lo build/objs/src/lib/valuepair.lo build/objs/src/lib/fifo.lo build/objs/src/lib/packet.lo build/objs/src/lib/event.lo build/objs/src/lib/getaddrinfo.lo build/objs/src/lib/vqp.lo build/objs/src/lib/heap.lo build/objs/src/lib/dhcp.lo build/objs/src/lib/tcp.lo build/objs/src/lib/base64.lo  -lnsl -lresolv -ldl -lpthread
==6689== Memcheck, a memory error detector
==6689== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==6689== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info
==6689== Command: /usr/local/src/freeradius-server/scripts/jlibtool --silent --mode=link gcc -o build/lib/libfreeradius-radius.la -rpath /usr/local/src/freeradius-server/build/lib/.libs -rdynamic build/objs/src/lib/dict.lo build/objs/src/lib/filters.lo build/objs/src/lib/hash.lo build/objs/src/lib/hmac.lo build/objs/src/lib/hmacsha1.lo build/objs/src/lib/isaac.lo build/objs/src/lib/log.lo build/objs/src/lib/misc.lo build/objs/src/lib/missing.lo build/objs/src/lib/md4.lo build/objs/src/lib/md5.lo build/objs/src/lib/print.lo build/objs/src/lib/radius.lo build/objs/src/lib/rbtree.lo build/objs/src/lib/sha1.lo build/objs/src/lib/snprintf.lo build/objs/src/lib/strlcat.lo build/objs/src/lib/strlcpy.lo build/objs/src/lib/token.lo build/objs/src/lib/udpfromto.lo build/objs/src/lib/valuepair.lo build/objs/src/lib/fifo.lo build/objs/src/lib/packet.lo build/objs/src/lib/event.lo build/objs/src/lib/getaddrinfo.lo build/objs/src/lib/vqp.lo build/objs/src/lib/heap.lo build/objs/src/lib/dhcp.lo build/objs/src/lib/tcp.lo build/objs/src/lib/base64.lo -lnsl -lresolv -ldl -lpthread
==6689== 
==6689== Conditional jump or move depends on uninitialised value(s)
==6689==    at 0x4C284AA: strcat (mc_replace_strmem.c:176)
==6689==    by 0x4022B6: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x40337B: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689== 
==6689== Conditional jump or move depends on uninitialised value(s)
==6689==    at 0x4C284AA: strcat (mc_replace_strmem.c:176)
==6689==    by 0x4022B6: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403397: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689== 
==6689== Conditional jump or move depends on uninitialised value(s)
==6689==    at 0x4C284AA: strcat (mc_replace_strmem.c:176)
==6689==    by 0x4022A1: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x4033B3: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689== 
==6689== Conditional jump or move depends on uninitialised value(s)
==6689==    at 0x4C284AA: strcat (mc_replace_strmem.c:176)
==6689==    by 0x4022B6: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x402371: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x4033CF: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689== 
==6689== Syscall param stat(file_name) points to uninitialised byte(s)
==6689==    at 0x4F07735: _xstat (in /lib64/libc-2.12.so)
==6689==    by 0x40238B: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x4033CF: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==  Address 0x52086c6 is 38 bytes inside a block of size 44 alloc'd
==6689==    at 0x4C26FDE: malloc (vg_replace_malloc.c:236)
==6689==    by 0x402254: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x402371: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x4033CF: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689== 
==6689== Conditional jump or move depends on uninitialised value(s)
==6689==    at 0x4C284AA: strcat (mc_replace_strmem.c:176)
==6689==    by 0x4022B6: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x402371: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x4033EB: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689== 
==6689== Syscall param stat(file_name) points to uninitialised byte(s)
==6689==    at 0x4F07735: _xstat (in /lib64/libc-2.12.so)
==6689==    by 0x40238B: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x4033EB: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==  Address 0x5208737 is 39 bytes inside a block of size 44 alloc'd
==6689==    at 0x4C26FDE: malloc (vg_replace_malloc.c:236)
==6689==    by 0x402254: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x402371: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x4033EB: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689== 
==6689== Conditional jump or move depends on uninitialised value(s)
==6689==    at 0x4C284AA: strcat (mc_replace_strmem.c:176)
==6689==    by 0x4022A1: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x402371: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403407: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689== 
==6689== Syscall param stat(file_name) points to uninitialised byte(s)
==6689==    at 0x4F07735: _xstat (in /lib64/libc-2.12.so)
==6689==    by 0x40238B: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403407: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==  Address 0x520879d is 29 bytes inside a block of size 44 alloc'd
==6689==    at 0x4C26FDE: malloc (vg_replace_malloc.c:236)
==6689==    by 0x402254: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x402371: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403407: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689== 
==6689== Conditional jump or move depends on uninitialised value(s)
==6689==    at 0x4C287E8: strlen (mc_replace_strmem.c:282)
==6689==    by 0x403434: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689== 
==6689== Conditional jump or move depends on uninitialised value(s)
==6689==    at 0x4C28877: strcpy (mc_replace_strmem.c:311)
==6689==    by 0x40345E: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689== 
==6689== Conditional jump or move depends on uninitialised value(s)
==6689==    at 0x4C287E8: strlen (mc_replace_strmem.c:282)
==6689==    by 0x401387: flatten_count_chars (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x401674: run_command (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x4046CD: run_mode (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404D0D: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689== 
==6689== Conditional jump or move depends on uninitialised value(s)
==6689==    at 0x4C284D7: strcat (mc_replace_strmem.c:176)
==6689==    by 0x401415: flatten_count_chars (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x401674: run_command (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x4046CD: run_mode (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404D0D: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689== 
==6691== Syscall param execve(argv[i]) points to uninitialised byte(s)
==6691==    at 0x4ED9727: execve (in /lib64/libc-2.12.so)
==6691==    by 0x4ED9FB0: execvpe (in /lib64/libc-2.12.so)
==6691==    by 0x4015A9: external_spawn (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6691==    by 0x404718: run_mode (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6691==    by 0x404D0D: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6691==  Address 0x5208576 is 38 bytes inside a block of size 44 alloc'd
==6691==    at 0x4C26FDE: malloc (vg_replace_malloc.c:236)
==6691==    by 0x402254: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6691==    by 0x40337B: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6691==    by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6691==    by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6691== 
==6689== Conditional jump or move depends on uninitialised value(s)
==6689==    at 0x4C287E8: strlen (mc_replace_strmem.c:282)
==6689==    by 0x401387: flatten_count_chars (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x401674: run_command (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x40480A: run_mode (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404D0D: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689== 
==6689== Conditional jump or move depends on uninitialised value(s)
==6689==    at 0x4C284D7: strcat (mc_replace_strmem.c:176)
==6689==    by 0x401415: flatten_count_chars (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x401674: run_command (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x40480A: run_mode (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689==    by 0x404D0D: main (in /usr/local/src/freeradius-server/scripts/jlibtool)
==6689== 
==6689== 
==6689== HEAP SUMMARY:
==6689==     in use at exit: 400,197 bytes in 62 blocks
==6689==   total heap usage: 64 allocs, 2 frees, 400,804 bytes allocated
==6689== 
==6689== LEAK SUMMARY:
==6689==    definitely lost: 71,365 bytes in 20 blocks
==6689==    indirectly lost: 328,832 bytes in 42 blocks
==6689==      possibly lost: 0 bytes in 0 blocks
==6689==    still reachable: 0 bytes in 0 blocks
==6689==         suppressed: 0 bytes in 0 blocks
==6689== Rerun with --leak-check=full to see details of leaked memory
==6689== 
==6689== For counts of detected and suppressed errors, rerun with: -v
==6689== Use --track-origins=yes to see where uninitialised values come from
==6689== ERROR SUMMARY: 15 errors from 15 contexts (suppressed: 6 from 6)


alan


More information about the Freeradius-Devel mailing list