List Info

Thread: GDB problem




GDB problem
country flaguser name
Sri Lanka
2008-02-27 03:43:28
Hi,

Trying to GDB a program on Solaris 5.10, I get the following
error.

procfs: target_wait (wait_for_stop) line 3934, /proc/13225:
Resource
temporarily unavailable.

When you quit from gdb, the program goes for an infinite
loop. Only
way to stop after that is to use "kill -9".
Searching Google, I found
that 32 & 64 bit difference can cause problems like
this. When checked
using the "file" command, both gdb and the program
show as 32 bit.

Any idea as to what's wrong here?

Thanks,
Ishan.


$ gdb /home/release/5.10/<program>
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and
you are
welcome to change it and/or distribute copies of it under
certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show
warranty" for
details.
This GDB was configured as
"i386-pc-solaris2.10"...
(gdb) r
Starting program: /home/release/5.10/<program>
procfs: target_wait (wait_for_stop) line 3934, /proc/13225:
Resource
temporarily unavailable.
(gdb)

Platform:
$ uname -a
SunOS embeaker 5.10 Generic_120012-14 i86pc i386 i86pc

Re: GDB problem
country flaguser name
Sri Lanka
2008-02-27 06:01:07
I have done a "chmod a+s" on this program.
When I gdb it without doing the chmod, it works. Wonder
whether this
problem is something to do with the setuid bit (that gets
set when you
do chmod a+s).

Thanks,
Ishan.

On Feb 27, 2:43 pm, Ishan <ishan.desi...gmail.com> wrote:
> Hi,
>
> Trying to GDB a program on Solaris 5.10, I get the
following error.
>
> procfs: target_wait (wait_for_stop) line 3934,
/proc/13225: Resource
> temporarily unavailable.
>
> When you quit from gdb, the program goes for an
infinite loop. Only
> way to stop after that is to use "kill -9".
Searching Google, I found
> that 32 & 64 bit difference can cause problems like
this. When checked
> using the "file" command, both gdb and the
program show as 32 bit.
>
> Any idea as to what's wrong here?
>
> Thanks,
> Ishan.
>
> $ gdb /home/release/5.10/<program>
> GNU gdb 6.6
> Copyright (C) 2006 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public
License, and
> you are
> welcome to change it and/or distribute copies of it
under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type
"show warranty" for
> details.
> This GDB was configured as
"i386-pc-solaris2.10"...
> (gdb) r
> Starting program: /home/release/5.10/<program>
> procfs: target_wait (wait_for_stop) line 3934,
/proc/13225: Resource
> temporarily unavailable.
> (gdb)
>
> Platform:
> $ uname -a
> SunOS embeaker 5.10 Generic_120012-14 i86pc i386 i86pc


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )