Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 403
    • Issues 403
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1133
Closed
Open
Created Aug 08, 2012 by Robert Bernecky@rbeDeveloper

valgrind dies with sac2c

Bugzilla Link 1012
Created on Aug 08, 2012 04:36
Version svn
OS Linux
Architecture PC

Extended Description

Not sure who is to be the winner here:
valgrind sac2c -doawlf -nowlf -v1 realrelaxAKD.sac 
==14943== Memcheck, a memory error detector
==14943== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==14943== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==14943== Command: sac2c -doawlf -nowlf -v1 realrelaxAKD.sac
==14943== 
WARNING: AWLF is enabled: -ecc enabled.
WARNING: AWLF is enabled: -extrema enabled.
WARNING: AWLF is enabled: -maxoptcyc=20
^Z==14943== Conditional jump or move depends on uninitialised value(s)
==14943==    at 0x55157AA: vfprintf (vfprintf.c:1614)
==14943==    by 0x551C657: fprintf (fprintf.c:33)
==14943==    by 0x6125BEF: PrintGlobalSettings (gen_startup_code.c:469)
==14943==    by 0x61260E0: GSCprintFileHeader (gen_startup_code.c:608)
==14943==    by 0x61CF308: PrintTRAVdo (print.c:5952)
==14943==    by 0x61CF5EE: PRTdoPrint (print.c:6063)
==14943==    by 0x5DB0DD7: PHrunSubPhase (phase.c:251)
==14943==    by 0x5DAA0DB: PHDdrivePhase_cg (phase_sac2c.mac:2496)
==14943==    by 0x5DB0A18: PHrunPhase (phase.c:169)
==14943==    by 0x5DAACC8: PHDdriveSac2c (phase_sac2c.mac:2474)
==14943==    by 0x5D8D6F2: SACrunSac2c (main.c:116)
==14943==    by 0x400B41: main (sac2c.c:16)
==14943== 
==14943== Conditional jump or move depends on uninitialised value(s)
==14943==    at 0x6125C03: PrintGlobalSettings (gen_startup_code.c:472)
==14943==    by 0x61260E0: GSCprintFileHeader (gen_startup_code.c:608)
==14943==    by 0x61CF308: PrintTRAVdo (print.c:5952)
==14943==    by 0x61CF5EE: PRTdoPrint (print.c:6063)
==14943==    by 0x5DB0DD7: PHrunSubPhase (phase.c:251)
==14943==    by 0x5DAA0DB: PHDdrivePhase_cg (phase_sac2c.mac:2496)
==14943==    by 0x5DB0A18: PHrunPhase (phase.c:169)
==14943==    by 0x5DAACC8: PHDdriveSac2c (phase_sac2c.mac:2474)
==14943==    by 0x5D8D6F2: SACrunSac2c (main.c:116)
==14943==    by 0x400B41: main (sac2c.c:16)
==14943== 
==14943== Conditional jump or move depends on uninitialised value(s)
==14943==    at 0x6125C77: PrintGlobalSettings (gen_startup_code.c:483)
==14943==    by 0x61260E0: GSCprintFileHeader (gen_startup_code.c:608)
==14943==    by 0x61CF308: PrintTRAVdo (print.c:5952)
==14943==    by 0x61CF5EE: PRTdoPrint (print.c:6063)
==14943==    by 0x5DB0DD7: PHrunSubPhase (phase.c:251)
==14943==    by 0x5DAA0DB: PHDdrivePhase_cg (phase_sac2c.mac:2496)
==14943==    by 0x5DB0A18: PHrunPhase (phase.c:169)
==14943==    by 0x5DAACC8: PHDdriveSac2c (phase_sac2c.mac:2474)
==14943==    by 0x5D8D6F2: SACrunSac2c (main.c:116)
==14943==    by 0x400B41: main (sac2c.c:16)
==14943== 
==14943== Invalid read of size 1
==14943==    at 0x4009B1B: check_match.12467 (dl-lookup.c:134)
==14943==    by 0x400A643: do_lookup_x (dl-lookup.c:251)
==14943==    by 0x400A861: _dl_lookup_symbol_x (dl-lookup.c:736)
==14943==    by 0x55F1325: do_sym (dl-sym.c:177)
==14943==    by 0x4E2F0C3: dlsym_doit (dlsym.c:51)
==14943==    by 0x400ED35: _dl_catch_error (dl-error.c:178)
==14943==    by 0x4E2F2AB: _dlerror_run (dlerror.c:164)
==14943==    by 0x4E2F079: dlsym (dlsym.c:71)
==14943==    by 0x5FB0208: LIBMgetLibraryFunction (libmanager.c:106)
==14943==    by 0x5FAFC62: GetDependencyTableFunction (modulemanager.c:401)
==14943==    by 0x5FAFD0E: MODMgetDependencyTable (modulemanager.c:420)
==14943==    by 0x5FB9B92: BuildDepClosFoldFun (dependencies.c:126)
==14943==  Address 0x167c is not stack'd, malloc'd or (recently) free'd
==14943== 
OOOOOOOPS, your program crashed the compiler 8-((
Please, send a bug report to bugs@sac-home.org,
or file a bug in the SaC-Zilla bug management system.
For your convenience, the compiler has pre-fabricated a bug report
in the file "./realrelaxAKD.sacbugreport" !
Besides some infos concerning the compiler version and its
usage it contains the specified source file.
If you want to send that bug report to us, you may simply type
  mail bugs@sac-home.org < realrelaxAKD.sacbugreport
If you decide to file a bug in SaC-Zilla, please go to
  http://bugs.sac-home.org/.
When filing a bug report, please copy/paste the initial comment section of
the bug report into the plain text comment section of SaC-Zilla, and add
the whole bug report file as an attachment.
==14943== 
==14943== HEAP SUMMARY:
==14943==     in use at exit: 1,526,127,404 bytes in 47,720,617 blocks
==14943==   total heap usage: 317,978,405 allocs, 270,257,788 frees, 10,403,580,350 bytes allocated
==14943== 
==14943== LEAK SUMMARY:
==14943==    definitely lost: 377,140,741 bytes in 9,480,858 blocks
==14943==    indirectly lost: 1,148,759,989 bytes in 38,237,665 blocks
==14943==      possibly lost: 1,820 bytes in 46 blocks
==14943==    still reachable: 224,854 bytes in 2,048 blocks
==14943==         suppressed: 0 bytes in 0 blocks
==14943== Rerun with --leak-check=full to see details of leaked memory
==14943== 
==14943== For counts of detected and suppressed errors, rerun with: -v
==14943== Use --track-origins=yes to see where uninitialised values come from
==14943== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 7 from 7)
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
 developer rev 18135 linux-gnu_x86_64
 (Tue Aug  7 17:55:58 EDT 2012 by sac)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking