Hi all, I created a share object (so) - libdsso I am trying, successfully to debug it through gdb: gcc -g testc -lds
However, when i am trying to debug through geany, i get an error immediately: program existed with error 127
just to mention - everything else is working just fine (compiling with static library, makefiles etc)
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837
How are you running the debugger "through geany" ?
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166269759
Hi elextr, Thanks for your response. I am just trying to take advantage of geany's gui. I am uploading the target executable, marking several breakpoints and running the debugger. Please note that all of the build is done outside (through terminal operations), because i am changing it to rapidly to update geany's build setup each time.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166296909
I am trying, successfully to debug it through gdb: gcc -g test.c -lds
This is not a GDB command, but a GCC one, building a file named test.c, adding debugging info and linking `libds`.
Running under GDB would look like ```console $ gdb a.out ... (gdb) run ... ```
BTW, note that Geany doesn't have any builtin debugger, but three plugins: *debugger*, *scope* and *geanygdb*, so it's unlikely to be a Geany issue. And code 127 usually means "program not found", so maybe you just don't have GDB installed?
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166317703
I probably stepped ahead too much. What I meant is - I am compiling and linking via terminal. I can run the executable via gdb or via geany debugger plugin. The only time I get the error is when compilation was done with a shared object.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166320213
How are you starting Geany? If its not in the same environment as the terminal you successfully use gdb under then the loader search path for the shared object might not be the same. This often happens when starting Geany from system menus since they are not a terminal environment.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166398755
I am starting it through the terminal: geany prog.c the very same terminal where i later compile and use gdb.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166406430
[...] geany debugger plugin
Which debugger plugin? Is the one called "Debugger"? You might try the "Scope" plugin as it has had more maintenance recently.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166410606
Hi codebrainz. Yes, i was referring to the Debugger plugin. I'll try scope but this seems a little bit weird, why should geany behave differently when compiling with a shared object? i mean, standard c libraries, such as stdio, are working just fine...
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166417766
@mbmxush nowhere have you said what system you are running on and what version of geany you are using
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166421260
Sorry, i am new to bug reporting :) I am using ubuntu 14.04 LTS 64 bit. Geany version is 1.25.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166426049
@mbmxush it could be as @elextr eluded to, that your library search paths are different. You could try to run Geany like this: `LD_LIBRARY_PATH=/path/to/your/shared/lib/dir geany prog.c`
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166428643
This doesn't look like a Geany bug so I suggest closing.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166693461
My LD_LIBRARY_PATH is set correctly, as I manage to compile and link with shared object successfully. Something is going amiss whilst trying to debug such a file from geany Debugger...
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166704793
The debugger you mention is an external plugin, perhaps there is a bug.
You could check in the integrated terminal if LD_LIBRARY_PATH is set.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166706918
Alright, i'll try to do that.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166707148
Or compile your program with RUNPATH set.
On 23 December 2015 at 05:15, Thomas Martitz notifications@github.com wrote:
The debugger you mention is an external plugin, perhaps there is a bug.
You could check in the integrated terminal if LD_LIBRARY_PATH is set.
— Reply to this email directly or view it on GitHub https://github.com/geany/geany/issues/837#issuecomment-166706918.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-166731485
Not a bug (?)
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-192853621
Would appear to be plugin related, not Geany anyway.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/837#issuecomment-192866655
Closing since if this is a bug, it seems not to be a Geany bug as noted by @kugel- and @elextr.
Closed #837.
github-comments@lists.geany.org