From: Paul Pluzhnikov <ppluzhnikov@google.com>
To: Tom Tromey <tromey@redhat.com>
Cc: Christian Thalinger <Christian.Thalinger@sun.com>,
Tristan Gingold <gingold@adacore.com>,
Joel Brobecker <brobecker@adacore.com>,
Thiago Jung Bauermann <thiago.bauermann@gmail.com>,
gdb@sourceware.org
Subject: Re: status of Darwin support
Date: Tue, 11 Aug 2009 05:06:00 -0000 [thread overview]
Message-ID: <8ac60eac0908102206l49972a96pfc306be0cf15d34b@mail.gmail.com> (raw)
In-Reply-To: <8ac60eac0908101320k6cc20e9age92656cba254a5d4@mail.gmail.com>
On Mon, Aug 10, 2009 at 1:20 PM, Paul Pluzhnikov<ppluzhnikov@google.com> wrote:
> I will try to reproduce the Darwin failure, but I won't get to my Mac
> until later tonight.
I couldn't get GDB to even run the program:
../gdb ../a.out
GNU gdb (GDB) 6.8.50.20090811-cvs
...
(gdb) r
Starting program: /Users/ppluzhnikov/gdb-cvs/build/gdb/a.out
Unable to find Mach task port for process-id 98005: (os/kern) failure (0x5).
(please check gdb is setgid procmod)
(gdb) q
This even if I make GDB suid-root (I also tried setgid procmod):
ls -l ../gdb
-rwsr-sr-x 1 root wheel 4075816 Aug 10 20:21 ../gdb
Error 5 is EIO in /usr/include/sys/errno.h
The stack trace for failure (/usr/bin/gdb *is* working):
#0 error (string=0x22127c "Unable to find Mach task port for
process-id %d: %s (0x%lx).\n (please check gdb is setgid procmod)") at
../../src/gdb/utils.c:814
#1 0x000125d6 in darwin_attach_pid (inf=0x63e3f0) at
../../src/gdb/darwin-nat.c:1325
#2 0x0001623e in darwin_ptrace_him (pid=97994) at
../../src/gdb/darwin-nat.c:1454
#3 0x00010204 in fork_inferior (exec_file_arg=0x63dc20
"/Users/ppluzhnikov/gdb-cvs/build/gdb/a.out", allargs=0x63e0c0 "",
env=0x61a0f0, traceme_fun=0x12830 <darwin_ptrace_me>,
init_trace_fun=0x16220 <darwin_ptrace_him>, pre_trace_fun=0x12910
<darwin_pre_ptrace>, shell_file_arg=0x0) at
../../src/gdb/fork-child.c:415
#4 0x000129cc in darwin_create_inferior (ops=0x604470,
exec_file=0x22127c "Unable to find Mach task port for process-id %d:
%s (0x%lx).\n (please check gdb is setgid procmod)", allargs=0x22127c
"Unable to find Mach task port for process-id %d: %s (0x%lx).\n
(please check gdb is setgid procmod)", env=0x22127c, from_tty=1) at
../../src/gdb/darwin-nat.c:1470
#5 0x000fa86c in target_create_inferior (exec_file=0x63dc20
"/Users/ppluzhnikov/gdb-cvs/build/gdb/a.out", args=0x63e0c0 "",
env=0x61a0f0, from_tty=1) at ../../src/gdb/target.c:429
#6 0x000c083b in run_command_1 (args=0x0, from_tty=6545600,
tbreak_at_main=<value temporarily unavailable, due to optimizations>)
at ../../src/gdb/infcmd.c:557
#7 0x0017e695 in execute_command (p=0x600311 "", from_tty=1) at
../../src/gdb/top.c:442
#8 0x000e139e in command_handler (command=0x600310 "") at
../../src/gdb/event-top.c:511
#9 0x000e16f2 in command_line_handler (rl=0x63de40 "??c") at
../../src/gdb/event-top.c:735
#10 0x001b33bd in rl_callback_read_char () at ../../src/readline/callback.c:205
#11 0x000e0c62 in rl_callback_read_char_wrapper (client_data=0x0) at
../../src/gdb/event-top.c:178
#12 0x000dfe25 in handle_file_event (data={ptr = 0x0, integer = 0}) at
../../src/gdb/event-loop.c:812
#13 0x000dfa25 in process_event () at ../../src/gdb/event-loop.c:394
#14 0x000e09bb in gdb_do_one_event (data=0x0) at ../../src/gdb/event-loop.c:459
#15 0x000d9452 in catch_errors (func=0xe0750 <gdb_do_one_event>,
func_args=0x0, errstring=0x26fa00 "", mask=2232956) at
../../src/gdb/exceptions.c:510
#16 0x00049452 in tui_command_loop (data=0x0) at
../../src/gdb/tui/tui-interp.c:153
#17 0x000d9e0c in current_interp_command_loop () at ../../src/gdb/interps.c:291
#18 0x000da592 in captured_command_loop (data=0x0) at ../../src/gdb/main.c:226
#19 0x000d9452 in catch_errors (func=0xda580 <captured_command_loop>,
func_args=0x0, errstring=0x26fa00 "", mask=2232956) at
../../src/gdb/exceptions.c:510
#20 0x000dae0f in captured_main (data=0xbffff8a0) at ../../src/gdb/main.c:902
#21 0x000d9452 in catch_errors (func=0xda5d0 <captured_main>,
func_args=0xbffff8a0, errstring=0x26fa00 "", mask=2232956) at
../../src/gdb/exceptions.c:510
#22 0x000db8bf in gdb_main (args=0x0) at ../../src/gdb/main.c:911
#23 0x000018b4 in main (argc=2232956, argv=0x22127c) at ../../src/gdb/gdb.c:33
Clues? (I don't do any development on Mac, so I am completely clueless.)
Thanks,
--
Paul Pluzhnikov
next prev parent reply other threads:[~2009-08-11 5:06 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-16 20:29 Christian Thalinger
2009-08-04 16:52 ` Tom Tromey
2009-08-04 21:03 ` Thiago Jung Bauermann
2009-08-05 4:45 ` Joel Brobecker
2009-08-06 11:14 ` Christian Thalinger
2009-08-06 11:17 ` Jonas Maebe
2009-08-10 9:41 ` Tristan Gingold
2009-08-10 10:47 ` Christian Thalinger
2009-08-10 18:36 ` Tom Tromey
2009-08-10 20:20 ` Paul Pluzhnikov
2009-08-11 5:06 ` Paul Pluzhnikov [this message]
2009-08-11 6:59 ` Tristan Gingold
2009-08-11 7:14 ` Paul Pluzhnikov
2009-08-11 7:43 ` Tristan Gingold
2009-08-11 8:20 ` Christian Thalinger
2009-08-11 8:28 ` Christian Thalinger
2009-08-11 16:33 ` Paul Pluzhnikov
2009-08-11 16:43 ` Christian Thalinger
2009-08-11 16:48 ` Paul Pluzhnikov
2009-08-11 16:49 ` Christian Thalinger
2009-08-11 17:12 ` Paul Pluzhnikov
2009-08-11 17:25 ` Christian Thalinger
2009-08-11 17:38 ` Paul Pluzhnikov
2009-08-11 17:54 ` Christian Thalinger
2009-08-12 16:26 ` Paul Pluzhnikov
2009-08-12 16:45 ` Christian Thalinger
2009-08-26 0:18 ` [patch] [new testcase] Regression on qsort_cmp [Re: status of Darwin support] Jan Kratochvil
2009-09-08 9:31 ` Tristan Gingold
2009-09-08 13:04 ` Jack Howarth
2009-08-06 10:51 ` status of Darwin support Christian Thalinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8ac60eac0908102206l49972a96pfc306be0cf15d34b@mail.gmail.com \
--to=ppluzhnikov@google.com \
--cc=Christian.Thalinger@sun.com \
--cc=brobecker@adacore.com \
--cc=gdb@sourceware.org \
--cc=gingold@adacore.com \
--cc=thiago.bauermann@gmail.com \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox