Menu ▾ ▴

#1 counterA < lenA

open
5
2012-10-15
2012-10-15
No

I Compile fret 0.0.6 on Ubuntu 12.04 64bit.

fret: scans_grind.c:77: scanGrind: Assertion `counterA < lenA\' failed.
Aborted (core dumped)

If I scan 1 binary file runs fine. If I add a second file i see the error.

Discussion

  • Hamish Twaddle

    Hamish Twaddle - 2012-10-15

    Not sure if this helps

    GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
    Copyright (C) 2012 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-linux-gnu".
    For bug reporting instructions, please see:
    <http://bugs.launchpad.net/gdb-linaro/>...
    Reading symbols from /usr/local/bin/fret...done.
    (gdb) run 1.bcd 2.bcd
    Starting program: /usr/local/bin/fret 1.bcd 2.bcd
    fret: scans_grind.c:77: scanGrind: Assertion `counterA < lenA' failed.

    Program received signal SIGABRT, Aborted.
    0x00007ffff7848445 in raise () from /lib/x86_64-linux-gnu/libc.so.6
    (gdb)

     
  • Hamish Twaddle

    Hamish Twaddle - 2012-10-15

    Backtrace

    (gdb) bt
    #0 0x00007ffff7848445 in raise () from /lib/x86_64-linux-gnu/libc.so.6
    #1 0x00007ffff784bbab in abort () from /lib/x86_64-linux-gnu/libc.so.6
    #2 0x00007ffff784110e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
    #3 0x00007ffff78411b2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
    #4 0x00007ffff7bd5711 in scanGrind (
    pBufferA=0x606c60 "\320\317\021\340\241\261", <incomplete sequence \341>,
    lenA=5120,
    pBufferB=0x605650 "\320\317\021\340\241\261", <incomplete sequence \341>,
    lenB=5632, pState=0x605560, pGramA=0x7fffffffdeb0, pGramB=0x7fffffffdef0)
    at scans_grind.c:77
    #5 0x00007ffff7bd3253 in doRequest (pRequest=0x7fffffffdfd0)
    at requesthandler.c:185
    #6 0x00007ffff7bd3bda in fret_runScan (bufferId=<optimized out>,
    phaseId=<optimized out>, scanId=<optimized out>) at scan_api.c:145
    #7 0x000000000040122f in main (argc=<optimized out>, argv=<optimized out>)
    at main.c:303

     

Log in to post a comment.