From jimis@grape.hep.ntua.gr Fri Jan 14 18:56:52 2005
Return-path: <jimis@grape.hep.ntua.gr>
Envelope-to: HEx@localhost
Received: from localhost ([127.0.0.1] ident=HEx)
	by sphere.chronosempire.org.uk with esmtp (Exim 3.36 #1 (Debian))
	id 1CpWcu-00030p-00
	for <HEx@localhost>; Fri, 14 Jan 2005 18:56:52 +0000
X-Original-To: hex@freezone.co.uk
Delivered-To: fz046886@freezone.co.uk
Received: from 62.189.246.66 [62.189.246.66]
	by localhost with IMAP (fetchmail-6.2.5)
	for HEx@localhost (single-drop); Fri, 14 Jan 2005 18:56:52 +0000 (GMT)
Received: from mx2.freezone.co.uk (unknown [62.189.246.82])
	by pop3.freezone.co.uk (Postfix) with ESMTP id C3FC672F62
	for <hex@freezone.co.uk>; Fri, 14 Jan 2005 19:00:56 +0000 (GMT)
Received: from localhost (localhost [127.0.0.1])
	by mx2.freezone.co.uk (Postfix) with ESMTP id 00D8839636A
	for <hex@freezone.co.uk>; Fri, 14 Jan 2005 19:06:41 +0000 (GMT)
Received: from mx2.freezone.co.uk ([127.0.0.1])
	by localhost (saffron [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 26064-02 for <hex@freezone.co.uk>;
	Fri, 14 Jan 2005 19:06:40 +0000 (GMT)
Received: by mx2.freezone.co.uk (Postfix, from userid 1003)
	id 323A8396369; Fri, 14 Jan 2005 19:06:40 +0000 (GMT)
Received: from achilles.noc.ntua.gr (achilles.noc.ntua.gr [147.102.222.210])
	by mx2.freezone.co.uk (Postfix) with ESMTP id 90190396368
	for <hex@freezone.co.uk>; Fri, 14 Jan 2005 19:06:35 +0000 (GMT)
Received: from grape.hep.ntua.gr (grape.hep.ntua.gr [147.102.191.130])
	by achilles.noc.ntua.gr (8.13.1/8.13.1) with ESMTP id j0EItjQ6056037
	for <hex@freezone.co.uk>; Fri, 14 Jan 2005 20:55:45 +0200 (EET)
	(envelope-from jimis@grape.hep.ntua.gr)
Received: from grape.hep.ntua.gr (grape.hep.ntua.gr [127.0.0.1])
	by grape.hep.ntua.gr (8.12.11/8.12.11) with ESMTP id j0EJ4D9q001071
	for <hex@freezone.co.uk>; Fri, 14 Jan 2005 21:04:13 +0200
Received: (from jimis@localhost)
	by grape.hep.ntua.gr (8.12.11/8.12.11/Submit) id j0EJ49t7001068
	for hex@freezone.co.uk; Fri, 14 Jan 2005 21:04:09 +0200
Date: Fri, 14 Jan 2005 21:04:09 +0200
From: Dimitrios Apostolou <jimis@grape.hep.ntua.gr>
Message-Id: <200501141904.j0EJ49t7001068@grape.hep.ntua.gr>
To: hex@freezone.co.uk
Subject: gdb output
X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on 
	saffron.freezone.co.uk
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham 
	version=3.0.0
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at example.com
Status: RO
Content-Length: 3099
Lines: 51

$ gdb giftd
GNU gdb Red Hat Linux (6.0post-0.20040223.19rh)
Copyright 2004 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 "sparc-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /mnt/u1/home/jimis/dist/bin/giftd
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 1035)]

Program received signal SIGBUS, Bus error.
[Switching to Thread 16384 (LWP 1035)]
0x503515e8 in compare_sdb (dbp=0x69110, a=0x5037f160, b=0xefffddc0) at ft_search_db.c:678
678             return a_rec->id - b_rec->id;
(gdb) bt
#0  0x503515e8 in compare_sdb (dbp=0x69110, a=0x5037f160, b=0xefffddc0) at ft_search_db.c:678
#1  0x503a0090 in __bam_cmp () from /lib/libdb-4.2.so
#2  0x503a48fc in __bam_bulk_duplicates () from /lib/libdb-4.2.so
#3  0x50405c98 in __db_c_put () from /lib/libdb-4.2.so
#4  0x503fc574 in __db_put () from /lib/libdb-4.2.so
#5  0x5040e1a8 in __db_put_pp () from /lib/libdb-4.2.so
#6  0x503523bc in db_insert_md5idx (sdb=0x1e9a18, hash=0x1e8930, t=0x23cf58, share=0xefffe298, id=410) at ft_search_db.c:1116
#7  0x5035270c in db_insert (sdb=0x1e9a18, share=0xefffe298) at ft_search_db.c:1213
#8  0x50354dd8 in ft_search_db_insert (node=0x1d4338, share=0xefffe298) at ft_search_db.c:2815
#9  0x50360fb4 in ft_share_add_request (c=0x6ca38, packet=0x1e88c0) at ft_sharing.c:323
#10 0x5034db20 in handle_command (c=0x1, packet=0x1e88c0) at ft_protocol.c:140
#11 0x5035cd2c in consume_packets (stream=0x1e6f20, recvfn=0x5034db68 <handle_stream_pkt>, udata=0x6ca38) at ft_stream.c:534
#12 0x5035ce4c in stream_decompress (stream=0x1e6f20, buf=0x101c <Address 0x101c out of bounds>, len=0, recvfn=0x5034db68 <handle_stream_pkt>,
    udata=0x6ca38) at ft_stream.c:588
#13 0x5035cfdc in stream_recv (stream=0x1e6f20, buf=0x101c <Address 0x101c out of bounds>, len=0, recvfn=0x5034db68 <handle_stream_pkt>,
    udata=0x6ca38) at ft_stream.c:646
#14 0x5034dbc4 in handle_stream (c=0x0, packet=0x1dc888) at ft_protocol.c:159
#15 0x5035d394 in handle_packet (c=0x6ca38, data=0x0, len=1951880) at ft_session.c:73
#16 0x5035d494 in session_handle (fd=1942280, id=1911856, c=0x6ca38) at ft_session.c:146
#17 0x5002d8dc in dispatch_input (input=0x500514c0) at event.c:1209
#18 0x5002dbc8 in poll_once () at event.c:1307
#19 0x5002dd04 in event_poll_once () at event.c:1324
#20 0x5002ddcc in event_loop () at event.c:1344
#21 0x0001b014 in gift_begin () at giftd.c:834
#22 0x0001b0c0 in gift_main (argc=1, argv=0xefffe8f4) at giftd.c:881
#23 0x5020ff50 in __libc_start_main (main=0x1b0f4 <main>, argc=1, ubp_av=0xefffe8f4, init=0, fini=0x2448c <__libc_csu_fini>, rtld_fini=0x1,
    stack_end=0xefffe9d6) at ../sysdeps/generic/libc-start.c:237
#24 0x00014240 in _start ()
#25 0x00014240 in _start ()
Previous frame identical to this frame (corrupt stack?)
(gdb)


