The valgrind home page claim that their latest valgrind, valgrind-20030725 is better than anything seen so far. Unfortunately it doesn't work with Pike in a strange way...
[nilsson@mahoro linux-2.4.18-27.8.0-i686]$ pike -DNOT_INSTALLED -mmaster.pike Pike v7.5 release 9 running Hilfe v3.5 (Incremental Pike Frontend) Terminal closed. [nilsson@mahoro linux-2.4.18-27.8.0-i686]$ valgrind pike -DNOT_INSTALLED -mmaster.pike ==5705== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==5705== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward. ==5705== Using valgrind-20030725, a program supervision framework for x86-linux. ==5705== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward. ==5705== Estimated CPU clock rate is 1539 MHz ==5705== For more details, rerun with: -v ==5705== master.pike:342: Bad type in assignment. master.pike:342: Expected: mapping(string:multiset(string)) master.pike:342: Got : int(-1..-1) master.pike:518: Illegal program identifier (type: int). master.pike:520: Illegal program identifier (type: int). master.pike:525: Illegal program identifier (type: int). master.pike:544: Illegal program identifier (type: int). master.pike:557: Illegal program identifier (type: int). master.pike:816: Illegal program identifier (type: int). master.pike:1095: Class definition failed. master.pike:1202: Must return a value for a non-void function. master.pike:1263: Class definition failed. master.pike:1265: Class definition failed. There's no master to handle the error. Dumping it raw: object(src/errors.h:125) ==5705== ==5705== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 1 from 1) ==5705== malloc/free: in use at exit: 503990 bytes in 335 blocks. ==5705== malloc/free: 3275 allocs, 2940 frees, 3767741 bytes allocated. ==5705== For a detailed leak analysis, rerun with: --leak-check=yes ==5705== For counts of detected errors, rerun with: -v
Has anyone any idea on what is going on?
Didn't you really intend to run "./pike" rather than "pike"?
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-08-12 19:34: Subject: valgrind-20030725
The valgrind home page claim that their latest valgrind, valgrind-20030725 is better than anything seen so far. Unfortunately it doesn't work with Pike in a strange way...
[nilsson@mahoro linux-2.4.18-27.8.0-i686]$ pike -DNOT_INSTALLED -mmaster.pike Pike v7.5 release 9 running Hilfe v3.5 (Incremental Pike Frontend) Terminal closed. [nilsson@mahoro linux-2.4.18-27.8.0-i686]$ valgrind pike -DNOT_INSTALLED -mmaster.pike ==5705== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==5705== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward. ==5705== Using valgrind-20030725, a program supervision framework for x86-linux. ==5705== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward. ==5705== Estimated CPU clock rate is 1539 MHz ==5705== For more details, rerun with: -v ==5705== master.pike:342: Bad type in assignment. master.pike:342: Expected: mapping(string:multiset(string)) master.pike:342: Got : int(-1..-1) master.pike:518: Illegal program identifier (type: int). master.pike:520: Illegal program identifier (type: int). master.pike:525: Illegal program identifier (type: int). master.pike:544: Illegal program identifier (type: int). master.pike:557: Illegal program identifier (type: int). master.pike:816: Illegal program identifier (type: int). master.pike:1095: Class definition failed. master.pike:1202: Must return a value for a non-void function. master.pike:1263: Class definition failed. master.pike:1265: Class definition failed. There's no master to handle the error. Dumping it raw: object(src/errors.h:125) ==5705== ==5705== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 1 from 1) ==5705== malloc/free: in use at exit: 503990 bytes in 335 blocks. ==5705== malloc/free: 3275 allocs, 2940 frees, 3767741 bytes allocated. ==5705== For a detailed leak analysis, rerun with: --leak-check=yes ==5705== For counts of detected errors, rerun with: -v
Has anyone any idea on what is going on?
/ Martin Nilsson (ja till euro, nej till cent)
Looks like a typical case of attempting to run a non valgrinded pike with valgrind.
/ Henrik Grubbström (Lysator)
Previous text:
2003-08-12 19:34: Subject: valgrind-20030725
The valgrind home page claim that their latest valgrind, valgrind-20030725 is better than anything seen so far. Unfortunately it doesn't work with Pike in a strange way...
[nilsson@mahoro linux-2.4.18-27.8.0-i686]$ pike -DNOT_INSTALLED -mmaster.pike Pike v7.5 release 9 running Hilfe v3.5 (Incremental Pike Frontend) Terminal closed. [nilsson@mahoro linux-2.4.18-27.8.0-i686]$ valgrind pike -DNOT_INSTALLED -mmaster.pike ==5705== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==5705== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward. ==5705== Using valgrind-20030725, a program supervision framework for x86-linux. ==5705== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward. ==5705== Estimated CPU clock rate is 1539 MHz ==5705== For more details, rerun with: -v ==5705== master.pike:342: Bad type in assignment. master.pike:342: Expected: mapping(string:multiset(string)) master.pike:342: Got : int(-1..-1) master.pike:518: Illegal program identifier (type: int). master.pike:520: Illegal program identifier (type: int). master.pike:525: Illegal program identifier (type: int). master.pike:544: Illegal program identifier (type: int). master.pike:557: Illegal program identifier (type: int). master.pike:816: Illegal program identifier (type: int). master.pike:1095: Class definition failed. master.pike:1202: Must return a value for a non-void function. master.pike:1263: Class definition failed. master.pike:1265: Class definition failed. There's no master to handle the error. Dumping it raw: object(src/errors.h:125) ==5705== ==5705== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 1 from 1) ==5705== malloc/free: in use at exit: 503990 bytes in 335 blocks. ==5705== malloc/free: 3275 allocs, 2940 frees, 3767741 bytes allocated. ==5705== For a detailed leak analysis, rerun with: --leak-check=yes ==5705== For counts of detected errors, rerun with: -v
Has anyone any idea on what is going on?
/ Martin Nilsson (ja till euro, nej till cent)
It's been working fine with valgrind 1.0.4. Anyway, if Pike has to be compiled with --with-valgrind then Pike should do a fatal and print out the problem if one attemtps to valgrind a normal Pike. Is that possible?
/ Martin Nilsson (ja till euro, nej till cent)
Previous text:
2003-08-12 21:43: Subject: valgrind-20030725
Looks like a typical case of attempting to run a non valgrinded pike with valgrind.
/ Henrik Grubbström (Lysator)
More than 30000 total errors detected. I'm not reporting any more. Final error counts will be inaccurate. Go fix your program! Rerun with --error-limit=no to disable this cutoff. Note that errors may occur in your program without prior warning from Valgrind, because errors are no longer being displayed.
/ Martin Nilsson (ja till euro, nej till cent)
Previous text:
2003-08-12 21:55: Subject: valgrind-20030725
It's been working fine with valgrind 1.0.4. Anyway, if Pike has to be compiled with --with-valgrind then Pike should do a fatal and print out the problem if one attemtps to valgrind a normal Pike. Is that possible?
/ Martin Nilsson (ja till euro, nej till cent)
It should be possible to use the RUNNING_ON_VALGRIND macro from valgrind.h. Note that it's only when machine code is used that it doesn't work.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-08-12 21:55: Subject: valgrind-20030725
It's been working fine with valgrind 1.0.4. Anyway, if Pike has to be compiled with --with-valgrind then Pike should do a fatal and print out the problem if one attemtps to valgrind a normal Pike. Is that possible?
/ Martin Nilsson (ja till euro, nej till cent)
pike-devel@lists.lysator.liu.se