Bug#513573: dwarves: Segfault with pahole

2009-06-06 Thread Riccardo Magliocchetti
On Sun, 22 Feb 2009 15:13:43 +0100 Thomas Girard
 wrote:

> Have you tried reproducing yur bug with dwarves 1.7? I am currently
> packaging it. Maybe you can send me a test case program so that I can
> close this bug report if it is fixed?

Hi Thomas,

any update on dwarves 1.7 package?

thanks,
riccardo



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



Bug#513573: dwarves: Segfault with pahole

2009-02-22 Thread Thomas Girard
Hello Thomas,

Have you tried reproducing yur bug with dwarves 1.7? I am currently
packaging it. Maybe you can send me a test case program so that I can
close this bug report if it is fixed?

Thanks,
Regards,

Thomas




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



Bug#513573: dwarves: Segfault with pahole

2009-01-30 Thread Thomas Zimmermann
Package: dwarves
Version: 1.3-1
Severity: important


pahole crashes when it encounters a function pointer in a struct. It is
possible to skip the struct with -x but then pahole crashes on the next
function pointer.

The binary has been compiled with llvm 2.4 and gcc (Debian 4.3.2-1.1) 4.3.2
with the option -g.

The output of gdb and valgrind is attached. The line that should have been
displayed where the segfault occured would have shown a function pointer. It
looks as if pahole dereferences a NULL-pointer.

The bug is always reproduceable.

Best regards, Thomas


-- System Information:
Debian Release: 5.0
  APT prefers gutsy
  APT policy: (500, 'gutsy'), (500, 'testing'), (200, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/4 CPU cores)
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 dwarves depends on:
ii  libc6 2.7-18 GNU C Library: Shared libraries

dwarves recommends no packages.

dwarves suggests no packages.

-- no debconf information
t...@sedell05:~/source/stm/cpp/taglibc/tdz/tests$ valgrind -v pahole ./test
==3879== Memcheck, a memory error detector.
==3879== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==3879== Using LibVEX rev 1854, a library for dynamic binary translation.
==3879== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==3879== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation framework.
==3879== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==3879== 
--3879-- Command line
--3879--pahole
--3879--./test
--3879-- Startup, with flags:
--3879---v
--3879-- Contents of /proc/version:
--3879--   Linux version 2.6.26-1-686 (Debian 2.6.26-13) (wa...@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-24)) #1 SMP Sat Jan 10 18:29:31 UTC 2009
--3879-- Arch and hwcaps: X86, x86-sse1-sse2
--3879-- Page sizes: currently 4096, max supported 4096
--3879-- Valgrind library directory: /usr/lib/valgrind
--3879-- Reading syms from /lib/ld-2.7.so (0x400)
--3879-- Reading debug info from /lib/ld-2.7.so...
--3879-- ... CRC mismatch (computed 58c6dbf6 wanted 58db3c41)
--3879--object doesn't have a symbol table
--3879-- Reading syms from /usr/bin/pahole (0x8048000)
--3879--object doesn't have a symbol table
--3879-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x3800)
--3879--object doesn't have a dynamic symbol table
--3879-- Reading suppressions file: /usr/lib/valgrind/default.supp
--3879-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x401E000)
--3879-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x402)
--3879-- Reading syms from /lib/i686/cmov/libc-2.7.so (0x4043000)
--3879-- Reading debug info from /lib/i686/cmov/libc-2.7.so...
--3879-- ... CRC mismatch (computed a0883b5e wanted 29618316)
--3879--object doesn't have a symbol table
--3879-- REDIR: 0x40b9800 (rindex) redirected to 0x40240c0 (rindex)
--3879-- REDIR: 0x40b55c0 (malloc) redirected to 0x4023cb0 (malloc)
--3879-- REDIR: 0x40bac00 (memcpy) redirected to 0x40248e0 (memcpy)
--3879-- REDIR: 0x40ba6f0 (memset) redirected to 0x4025380 (memset)
--3879-- REDIR: 0x40b8e10 (strcmp) redirected to 0x4024770 (strcmp)
--3879-- REDIR: 0x40b9380 (strlen) redirected to 0x4024470 (strlen)
--3879-- REDIR: 0x40b8ca0 (index) redirected to 0x40241b0 (index)
--3879-- REDIR: 0x40b52b0 (calloc) redirected to 0x4021d60 (calloc)
--3879-- REDIR: 0x40b3790 (free) redirected to 0x4022ad0 (free)
--3879-- REDIR: 0x40ba1f0 (memchr) redirected to 0x4024890 (memchr)
--3879-- REDIR: 0x40ba8e0 (stpcpy) redirected to 0x4025110 (stpcpy)
--3879-- REDIR: 0x40b8e80 (strcpy) redirected to 0x40244d0 (strcpy)
--3879-- memcheck GC: 1024 nodes, 1024 survivors (100.0%)
--3879-- memcheck GC: increase table size to 2048
--3879-- memcheck GC: 2048 nodes, 2048 survivors (100.0%)
--3879-- memcheck GC: increase table size to 4096
--3879-- memcheck GC: 4096 nodes, 4096 survivors (100.0%)
--3879-- memcheck GC: increase table size to 8192
--3879-- REDIR: 0x40bb6f0 (rawmemchr) redirected to 0x4025490 (rawmemchr)
--3879-- memcheck GC: 8192 nodes, 8192 survivors (100.0%)
--3879-- memcheck GC: increase table size to 16384
--3879-- memcheck GC: 16384 nodes, 12319 survivors ( 75.1%)
--3879-- memcheck GC: increase table size to 32768
--3879-- REDIR: 0x40bb7c0 (strchrnul) redirected to 0x4025450 (strchrnul)
--3879-- REDIR: 0x40b9430 (strnlen) redirected to 0x4024430 (strnlen)
struct sys_fdio_event_data {
--3879-- REDIR: 0x40b96b0 (strncpy) redirected to 0x40245a0 (strncpy)
	intfildes;   /* 0 4 */
	long unsigned int  cookie;   /* 4 4 */

	/* size: 8, cachelines: 1 */
	/* last cacheline: 8 bytes */
};	/* definitions: 6 */

struct stream_write {
--3879-- REDIR: 0x40ba750 (mempcpy) redirected to 0x40254b0 (mempcpy)
	struct stream_cookie * cookie;