Package: gdb
Version: 6.8-3
Severity: normal

On one terminal:
        $ gdbserver localhost:1234 /bin/bash

On another:
        $ gdb 
        GNU gdb 6.8
        This GDB was configured as "i686-pc-linux-gnu".
        (gdb) target remote localhost:1234
        Remote debugging using localhost:1234
        [New Thread 12496]
        warning: Could not load vsyscall page because no executable was 
        specified
        try using the "file" command first.
        0xb7fa2812 in ?? ()
        (gdb) watch *(int *)0xb7fa2812
        Hardware watchpoint 1: *(int *) 3086624786
        (gdb) c
        Continuing.
        Segmentation fault

Here's what gdb was doing when it crashed:

Program terminated with signal 11, Segmentation fault.
[New process 12763]
#0  i386_linux_dr_set_addr (regnum=0, addr=3086624786) at 
i386-linux-nat.c:650
650       ALL_LWPS (lp, ptid)
(gdb) bt
#0  i386_linux_dr_set_addr (regnum=0, addr=3086624786) at 
i386-linux-nat.c:650
#1  0x080a5a42 in i386_insert_aligned_watchpoint (addr=3086624786, 
    len_rw_bits=327680) at i386-nat.c:383
#2  0x080a5b59 in i386_handle_nonaligned_watchpoint (what=WP_INSERT, 
    addr=3086624786, len=4, type=hw_write) at i386-nat.c:471
#3  0x080a5c93 in i386_insert_watchpoint (addr=3086624786, len=4, 
type=0)
    at i386-nat.c:509
#4  0x080f4413 in insert_bp_location (bpt=0x8f33b10, 
    tmp_error_stream=0x8f38540, disabled_breaks=0xbfa48388, 
    process_warning=0xbfa48380, hw_breakpoint_error=0xbfa48384)
    at breakpoint.c:1187
#5  0x080f47c0 in insert_breakpoints () at breakpoint.c:1253
#6  0x08132b25 in proceed (addr=4294967295, 
siggnal=TARGET_SIGNAL_DEFAULT, 
    step=0) at infrun.c:796
#7  0x0812ca8c in continue_command (proc_count_exp=0x0, from_tty=1)
    at infcmd.c:653
#8  0x08091009 in execute_command (p=0x8ef8129 "", from_tty=1) at 
top.c:449
#9  0x0813e52f in command_handler (command=0x8ef8128 "c") at 
event-top.c:518
#10 0x0813f432 in command_line_handler (rl=0x8f31010 "p\203�\b`\203�\b")
    at event-top.c:804
#11 0x081f18ed in rl_callback_read_char () at callback.c:205
#12 0x0813e81b in rl_callback_read_char_wrapper (client_data=0x0)
    at event-top.c:177
#13 0x0813e134 in handle_file_event (event_file_desc=0) at 
event-loop.c:728
#14 0x0813d4c2 in process_event () at event-loop.c:341
#15 0x0813dde0 in gdb_do_one_event (data=0x0) at event-loop.c:378
#16 0x0813a8db in catch_errors (func=0x813dc10 <gdb_do_one_event>, 
    func_args=0x0, errstring=0x828eba0 "", mask=6) at exceptions.c:513
#17 0x080dd2aa in tui_command_loop (data=0x0) at 
..././gdb/tui/tui-interp.c:153
#18 0x0813af24 in current_interp_command_loop () at interps.c:276
#19 0x08089c3b in captured_command_loop (data=0x0) at .././gdb/main.c:99
#20 0x0813a8db in catch_errors (func=0x8089c30 <captured_command_loop>, 
    func_args=0x0, errstring=0x828eba0 "", mask=6) at exceptions.c:513
#21 0x080896dc in captured_main (data=0xbfa48824) at .././gdb/main.c:882
#22 0x0813a8db in catch_errors (func=0x8088a40 <captured_main>, 
    func_args=0xbfa48824, errstring=0x828eba0 "", mask=6) at 
exceptions.c:513
#23 0x08088a31 in gdb_main (args=0xbfa48824) at .././gdb/main.c:891
#24 0x080889f5 in main (argc=Cannot access memory at address 0x10
) at gdb.c:33
(gdb) 

It crashed in ALL_LWPS:

(gdb) list
645       ptid_t ptid;
646     
647       gdb_assert (regnum >= 0 && regnum <= DR_LASTADDR - 
DR_FIRSTADDR);
648     
649       i386_linux_dr[DR_FIRSTADDR + regnum] = addr;
650       ALL_LWPS (lp, ptid)
651         i386_linux_dr_set (ptid, DR_FIRSTADDR + regnum, addr);
652     }
653     
654     void

ALL_LWPS is:

#define ALL_LWPS(LP, PTID)                                              \
  for ((LP) = lwp_list, (PTID) = (LP)->ptid;                            \
       (LP) != NULL;                                                    \
       (LP) = (LP)->next, (PTID) = (LP) ? (LP)->ptid : (PTID))

And:

(gdb) p lwp_list 
$1 = (struct lwp_info *) 0x0

Interesting.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gdb depends on:
ii  libc6                     2.7-13         GNU C Library: Shared libraries
ii  libexpat1                 2.0.1-4        XML parsing C library - runtime li
ii  libncurses5               5.6+20080830-1 shared libraries for terminal hand
ii  libreadline5              5.2-3          GNU readline and history libraries

gdb recommends no packages.

Versions of packages gdb suggests:
pn  gdb-doc                       <none>     (no description available)

-- no debconf information



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to