Trusster Forums » Technical Support

Crash: Ubuntu/Icarus/GCC ?

(2 posts)
  • Started 7 months ago by moogyd
  • Latest reply from Mike Mintz

No tags yet.


  1. moogyd
    Member

    Hi,

    I am running on Ubuntu 8.04.
    I don't know where the problem is, but when I try to run the examples (e.g. alu_test), I get a "crash"

    Running Simulation
    resultfile /home/stevend/work/teal_truss/examples/alu/results/alu_test_1_results.log
    *** glibc detected *** vvp: free(): invalid pointer: 0x080e57f8 ***
    ======= Backtrace: =========
    /lib/tls/i686/cmov/libc.so.6[0xb7d02a85]
    /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d064f0]
    /usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7bcbb11]
    /usr/lib/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x1d)[0xb7ba779d]
    /usr/lib/libstdc++.so.6(_ZNSsD1Ev+0x51)[0xb7ba9571]
    hdl/alu_test.ivl.so(_Z18teal_scan_plusargsRKSs+0x20f)[0xb7c6e4d1]
    hdl/alu_test.ivl.so(_ZN4teal10dictionary4findERKSs+0x25)[0xb7c6e5a3]
    hdl/alu_test.ivl.so(_ZN4teal10dictionary4findIjEET_RKSsS2_+0x2e)[0xb7c65d08]
    hdl/alu_test.ivl.so(_ZN4teal4voutC1ERKSs+0x53)[0xb7c60887]
    hdl/alu_test.ivl.so[0xb7c6c210]
    hdl/alu_test.ivl.so[0xb7c6c2a0]
    hdl/alu_test.ivl.so[0xb7c821e5]
    hdl/alu_test.ivl.so[0xb7c382e4]
    /lib/ld-linux.so.2[0xb7ef99d0]
    /lib/ld-linux.so.2[0xb7ef9b03]
    /lib/ld-linux.so.2[0xb7efd7b4]
    /lib/ld-linux.so.2[0xb7ef9606]
    /lib/ld-linux.so.2[0xb7efcf8e]
    /lib/tls/i686/cmov/libdl.so.2[0xb7ed1c19]
    /lib/ld-linux.so.2[0xb7ef9606]
    /lib/tls/i686/cmov/libdl.so.2[0xb7ed22bc]
    /lib/tls/i686/cmov/libdl.so.2(dlopen+0x41)[0xb7ed1b51]
    vvp(_Z16vpip_load_modulePKc+0xb7)[0x80793d7]
    vvp(main+0x490)[0x8057dd0]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7cad450]
    vvp(__gxx_personality_v0+0x41d)[0x8057781]
    ======= Memory map: ========
    08048000-08099000 r-xp 00000000 08:01 1196961 /usr/local/bin/vvp
    08099000-0809a000 rw-p 00051000 08:01 1196961 /usr/local/bin/vvp
    0809a000-080f1000 rw-p 0809a000 00:00 0 [heap]
    b7900000-b7921000 rw-p b7900000 00:00 0
    b7921000-b7a00000 ---p b7921000 00:00 0
    b7afc000-b7b10000 r-xp 00000000 08:01 184662 /lib/tls/i686/cmov/libpthread-2.7.so
    b7b10000-b7b12000 rw-p 00013000 08:01 184662 /lib/tls/i686/cmov/libpthread-2.7.so
    b7b12000-b7b14000 rw-p b7b12000 00:00 0
    b7b14000-b7bfc000 r-xp 00000000 08:01 752761 /usr/lib/libstdc++.so.6.0.9
    b7bfc000-b7bff000 r--p 000e8000 08:01 752761 /usr/lib/libstdc++.so.6.0.9
    b7bff000-b7c01000 rw-p 000eb000 08:01 752761 /usr/lib/libstdc++.so.6.0.9
    b7c01000-b7c07000 rw-p b7c01000 00:00 0
    b7c07000-b7c93000 r-xp 00000000 08:01 408811 /home/stevend/work/teal_truss/examples/alu/results/hdl/alu_test.ivl.so
    b7c93000-b7c96000 rw-p 0008c000 08:01 408811 /home/stevend/work/teal_truss/examples/alu/results/hdl/alu_test.ivl.so
    b7c96000-b7c97000 rw-p b7c96000 00:00 0
    b7c97000-b7de0000 r-xp 00000000 08:01 184624 /lib/tls/i686/cmov/libc-2.7.so
    b7de0000-b7de1000 r--p 00149000 08:01 184624 /lib/tls/i686/cmov/libc-2.7.so
    b7de1000-b7de3000 rw-p 0014a000 08:01 184624 /lib/tls/i686/cmov/libc-2.7.so
    b7de3000-b7de6000 rw-p b7de3000 00:00 0
    b7de6000-b7df0000 r-xp 00000000 08:01 184186 /lib/libgcc_s.so.1
    b7df0000-b7df1000 rw-p 0000a000 08:01 184186 /lib/libgcc_s.so.1
    b7df1000-b7e14000 r-xp 00000000 08:01 184636 /lib/tls/i686/cmov/libm-2.7.so
    b7e14000-b7e16000 rw-p 00023000 08:01 184636 /lib/tls/i686/cmov/libm-2.7.so
    b7e16000-b7e17000 rw-p b7e16000 00:00 0
    b7e17000-b7ec7000 r-xp 00000000 08:01 752569 /usr/lib/libstdc++.so.5.0.7
    b7ec7000-b7ecc000 rw-p 000af000 08:01 752569 /usr/lib/libstdc++.so.5.0.7
    b7ecc000-b7ed1000 rw-p b7ecc000 00:00 0
    b7ed1000-b7ed3000 r-xp 00000000 08:01 184631 /lib/tls/i686/cmov/libdl-2.7.so
    b7ed3000-b7ed5000 rw-p 00001000 08:01 184631 /lib/tls/i686/cmov/libdl-2.7.so
    b7ee9000-b7eeb000 rw-p b7ee9000 00:00 0
    b7eeb000-b7eec000 r-xp b7eeb000 00:00 0 [vdso]
    b7eec000-b7f06000 r-xp 00000000 08:01 184320 /lib/ld-2.7.so
    b7f06000-b7f08000 rw-p 00019000 08:01 184320 /lib/ld-2.7.so
    bf889000-bf89e000 rw-p bffeb000 00:00 0 [stack]
    Aborted
    System call failed at ../truss/bin/truss line 461
    main::truss_system('cd /home/stevend/work/teal_truss/examples/alu/results; vvp -m...') called at ../truss/bin/truss line 384

    Other Information:

    gcc -v
    Using built-in specs.
    Target: i486-linux-gnu
    Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
    Thread model: posix
    gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
    VM:~/work/teal_truss/examples> iverilog -V
    Icarus Verilog version 0.8 ($Name: s20050617 $)

    I assume it's not directly a problem with Teal/Truss, but more to do with my environment (I have also tried with gcc-3.3 with the same results)

    Any ideas?

    Thanks,

    Steven

    Posted 7 months ago #
  2. Mike Mintz
    Key Master

    Hi Steven,

    Can you try running under gdb ?

    Another possibility is to try without the $verification_top() call.

    Finally, try dropping to the simpler teal tests.

    Sorry I could not be more useful.

    Take Care,
    Mike

    Posted 4 months ago #

RSS feed for this topic

Reply

You must log in to post.