Package: gdb
Version: 7.0-1
Severity: normal

Thanks for packaging gdb 7.0.

I've tested the process record/replay feature on amd64, it mostly works,
except for memset:
gdb: record error in memset: Process record doesn't support instruction 0xf6e

To reproduce:
$ cat >foo.c <<EOF
#include <string.h>
int main()
{
    char foo[256*1024];
    memset(foo, 0x5a, sizeof(foo));
    return 0;
}
EOF

$ gcc foo.c -g
$ gdb ./a.out
...
(gdb) b main
(gdb) r
Starting program: /home/edwin/a.out

Breakpoint 1, main () at x.c:5
5           memset(foo, 0x5a, sizeof(foo));
(gdb) record
(gdb) c
Continuing.
Process record doesn't support instruction 0xf6e at address 0x341127b422.
Process record: failed to record execution log.

Program received signal SIGTRAP, Trace/breakpoint trap.
memset () at ../sysdeps/x86_64/memset.S:746
746     ../sysdeps/x86_64/memset.S: No such file or directory.
        in ../sysdeps/x86_64/memset.S
Current language:  auto
The current source language is "auto; currently asm".

This is a disassembly around 0x341127b422, note that 0x341127b422 is not
the beginning of an instruction:
0x000000341127b419 <memset+1369>:       lea    (%rcx,%r11,1),%r11
0x000000341127b41d <memset+1373>:       jmpq   *%r11
0x000000341127b420 <memset+1376>:       movq   %rdx,%xmm0
0x000000341127b425 <memset+1381>:       punpcklqdq %xmm0,%xmm0

If I compile the program with -m32, then memset works, so it looks like
something wrong with handling of SSE instructions.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31.3 (SMP w/4 CPU cores; PREEMPT)
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.9-27            GNU C Library: Shared libraries
ii  libexpat1              2.0.1-4           XML parsing C library - runtime li
ii  libncurses5            5.7+20090803-2    shared libraries for terminal hand
ii  libreadline6           6.0-5             GNU readline and history libraries
ii  python2.5              2.5.4-2           An interactive high-level object-o
ii  zlib1g                 1:1.2.3.3.dfsg-15 compression library - runtime

gdb recommends no packages.

Versions of packages gdb suggests:
ii  gdb-doc                6.8.50.20090628-1 The GNU Debugger Documentation

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to