This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug symtab/12535] New: decode_linespec_1 vagrind errors on ""


http://sourceware.org/bugzilla/show_bug.cgi?id=12535

           Summary: decode_linespec_1 vagrind errors on ""
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jan.kratochvil@redhat.com
                CC: keiths@redhat.com
              Host: x86_64-fedora15-linux-gnu
            Target: x86_64-fedora15-linux-gnu


valgrind ./gdb -nx -ex 'python gdb.decode_line("")'

First it wrongly detects IS_QUOTED == 1, one should check the code more for it.

==19361== Invalid read of size 1
==19361==    at 0x6A9628: locate_first_half (linespec.c:1146)
==19361==    by 0x6A8C3A: decode_line_1 (linespec.c:871)
==19361==    by 0x628404: gdbpy_decode_line (python.c:457)
==19361==    by 0x5E15DCC: PyEval_EvalFrameEx (ceval.c:4072)
==19361==    by 0x5E1799C: PyEval_EvalCodeEx (ceval.c:3312)
==19361==    by 0x5E17AD1: PyEval_EvalCode (ceval.c:671)
==19361==    by 0x5E31BDB: run_mod (pythonrun.c:1354)
==19361==    by 0x5E327FC: PyRun_StringFlags (pythonrun.c:1317)
==19361==    by 0x5E3333A: PyRun_SimpleStringFlags (pythonrun.c:970)
==19361==    by 0x627BA3: python_command (python.c:205)
==19361==    by 0x604DE4: do_cfunc (cli-decode.c:67)
==19361==    by 0x607F69: cmd_func (cli-decode.c:1777)
==19361==    by 0x48D2C5: execute_command (top.c:428)
==19361==    by 0x6CB967: catch_command_errors (exceptions.c:537)
==19361==    by 0x4836F4: captured_main (main.c:909)
==19361==    by 0x6CB8CC: catch_errors (exceptions.c:521)
==19361==    by 0x483789: gdb_main (main.c:942)
==19361==    by 0x4823C2: main (gdb.c:35)
==19361==  Address 0xd692ce1 is 0 bytes after a block of size 1 alloc'd
==19361==    at 0x4C2840D: malloc (vg_replace_malloc.c:236)
==19361==    by 0x490F47: xmalloc (utils.c:1475)
==19361==    by 0xDE2455: xstrdup (xstrdup.c:34)
==19361==    by 0x6283C0: gdbpy_decode_line (python.c:454)
==19361==    by 0x5E15DCC: PyEval_EvalFrameEx (ceval.c:4072)
==19361==    by 0x5E1799C: PyEval_EvalCodeEx (ceval.c:3312)
==19361==    by 0x5E17AD1: PyEval_EvalCode (ceval.c:671)
==19361==    by 0x5E31BDB: run_mod (pythonrun.c:1354)
==19361==    by 0x5E327FC: PyRun_StringFlags (pythonrun.c:1317)
==19361==    by 0x5E3333A: PyRun_SimpleStringFlags (pythonrun.c:970)
==19361==    by 0x627BA3: python_command (python.c:205)
==19361==    by 0x604DE4: do_cfunc (cli-decode.c:67)
==19361==    by 0x607F69: cmd_func (cli-decode.c:1777)
==19361==    by 0x48D2C5: execute_command (top.c:428)
==19361==    by 0x6CB967: catch_command_errors (exceptions.c:537)
==19361==    by 0x4836F4: captured_main (main.c:909)
==19361==    by 0x6CB8CC: catch_errors (exceptions.c:521)
==19361==    by 0x483789: gdb_main (main.c:942)
==19361==    by 0x4823C2: main (gdb.c:35)
==19361==

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]