Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#67 crash with Gdb debugger plugin

open-fixed
debugger (8)
5
2011-12-16
2011-12-03
Gour
No

Hello!

When I try to use simple file (http://cs.baylor.edu/~donahoo/tools/gdb/tutorial.html) to test debugger, Geany crashes.

Steps:

1. load broken.cpp file
2: set bp at#43 (double seriesValue = ComputeSeriesValue(x, n);
3. run program
4. enter values: x=2, n=3;
5. crash

[gour@atmarama gdb] geany -V
geany 0.21 (built on Dec 3 2011 with GTK 2.24.8, GLib 2.30.2)
[gour@atmarama gdb] uname -a
Linux 3.1.4-1-ARCH #1 SMP PREEMPT Tue Nov 29 08:55:45 CET 2011 x86_64 Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz GenuineIntel GNU/Linux

Discussion

  • Gour
    Gour
    2011-12-03

    test-case file

     
    Attachments
  • Gour
    Gour
    2011-12-03

    gdb & valgrind logs

     
  • Lex Trotman
    Lex Trotman
    2011-12-04

    This works with Geany >=903e69b and geany-plugins svn 2349

     
  • Lex Trotman
    Lex Trotman
    2011-12-04

    the debugger plugin has some fixed length string fields, one of which is the address string which will only fit a 32 bit (10 character) address, so on 64 bit systems it is likely to crash.

    The plugin should be changed to use all dynamically allocated strings so it can adapt to variations in length and sizes of names etc.

     
  • Lex is right, shame on me they were static and didn't take care about 64 addresses.
    However, I'm done with the patches, will first try it on 64 box,
    when they are polished how do I merge changes into release branch?

     
    • status: open --> open-fixed