You are not logged in.

#1 2011-11-23 21:25:04

goofy
Member
Registered: 2011-10-02
Posts: 25

Weird problem with GDB (it tries to execute /bin/baxh)

Hello!

I've installed gdb (v7.3.1) on my desktop and it doesn't work for me... Output:

[goofy@goofy-desktop projekt-czk]$ gdb MapaDASR
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 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-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/goofy/Projects/projekt-czk/MapaDASR...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/goofy/Projects/projekt-czk/MapaDASR
Cannot exec /bin/baxh: Nie ma takiego pliku ani katalogu. (<-- translation: No such file or directory)
During startup program exited with code 127.
(gdb) q

I use the same version on my laptop without any problems... Any idea? I tried to reinstall package.

Last edited by goofy (2011-11-23 21:32:55)

Offline

#2 2011-11-23 21:38:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Weird problem with GDB (it tries to execute /bin/baxh)

Run

LC_ALL=C <command>

to get output in English.
If you enabled C locale, it should work.


Is it a typo? '/bin/baxh' should be '/bin/bash', right?

Offline

#3 2011-11-23 21:44:51

goofy
Member
Registered: 2011-10-02
Posts: 25

Re: Weird problem with GDB (it tries to execute /bin/baxh)

Yes, GDB tries to esecute "/bin/baxh" and I don't know why.

Offline

#4 2011-11-23 21:47:10

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Weird problem with GDB (it tries to execute /bin/baxh)

Logically, one would look at the source code of the binary in question to figure out where this occurs.

Offline

#5 2011-11-23 21:48:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Weird problem with GDB (it tries to execute /bin/baxh)

Starting program: /home/goofy/Projects/projekt-czk/MapaDASR 

Is it a bash script? That's in the first line?

Offline

#6 2011-11-23 22:12:26

goofy
Member
Registered: 2011-10-02
Posts: 25

Re: Weird problem with GDB (it tries to execute /bin/baxh)

karol wrote:
Starting program: /home/goofy/Projects/projekt-czk/MapaDASR 

Is it a bash script? That's in the first line?

No, it's regular executable file (a C++ program)

Offline

Board footer

Powered by FluxBB