From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Jones Subject: git-apply segfault. Date: Fri, 10 Feb 2006 13:37:45 -0500 Message-ID: <20060210183745.GI22611@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-From: git-owner@vger.kernel.org Fri Feb 10 19:38:03 2006 Return-path: Received: from vger.kernel.org ([209.132.176.167]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1F7d9e-0007FU-00 for ; Fri, 10 Feb 2006 19:38:02 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750736AbWBJShy (ORCPT ); Fri, 10 Feb 2006 13:37:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750774AbWBJShy (ORCPT ); Fri, 10 Feb 2006 13:37:54 -0500 Received: from mx1.redhat.com ([66.187.233.31]:5252 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S1750736AbWBJShx (ORCPT ); Fri, 10 Feb 2006 13:37:53 -0500 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id k1AIbkYE030060 for ; Fri, 10 Feb 2006 13:37:46 -0500 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id k1AIbk122274 for ; Fri, 10 Feb 2006 13:37:46 -0500 Received: from nwo.kernelslacker.org (vpn83-122.boston.redhat.com [172.16.83.122]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id k1AIbk87024271 for ; Fri, 10 Feb 2006 13:37:46 -0500 Received: from nwo.kernelslacker.org (localhost.localdomain [127.0.0.1]) by nwo.kernelslacker.org (8.13.5/8.13.4) with ESMTP id k1AIbkJf024547 for ; Fri, 10 Feb 2006 13:37:46 -0500 Received: (from davej@localhost) by nwo.kernelslacker.org (8.13.5/8.13.5/Submit) id k1AIbjiL024546 for git@vger.kernel.org; Fri, 10 Feb 2006 13:37:45 -0500 X-Authentication-Warning: nwo.kernelslacker.org: davej set sender to davej@redhat.com using -f To: git@vger.kernel.org Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: I managed to get git-apply to segfault. (18:35:37:davej@hera:agpgart)$ apply-mbox ~/Mail/mbox Applying 'help text updates' /home/davej/bin/applypatch: line 64: 17990 Segmentation fault (core dumped) git-apply --index $PATCHFILE (18:35:40:davej@hera:agpgart)$ file core core: ELF 64-bit LSB core file AMD x86-64, version 1 (SYSV), SVR4-style, from 'git-apply' (18:35:45:davej@hera:agpgart)$ gdb `which git-apply` core GNU gdb Red Hat Linux (6.3.0.0-1.84rh) 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 "x86_64-redhat-linux-gnu"...Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `git-apply --index .dotest/patch'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib64/libz.so.1...done. Loaded symbols for /usr/lib64/libz.so.1 Reading symbols from /lib64/libcrypto.so.5...done. Loaded symbols for /lib64/libcrypto.so.5 Reading symbols from /lib64/libc.so.6...done. Loaded symbols for /lib64/libc.so.6 Reading symbols from /lib64/libdl.so.2...done. Loaded symbols for /lib64/libdl.so.2 Reading symbols from /lib64/ld-linux-x86-64.so.2...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 #0 0x0000003287f73474 in memset () from /lib64/libc.so.6 (gdb) bt #0 0x0000003287f73474 in memset () from /lib64/libc.so.6 #1 0x0000003287f6c92a in calloc () from /lib64/libc.so.6 #2 0x0000000000407399 in read_cache () at read-cache.c:537 #3 0x0000000000404e1b in apply_patch (fd=-1) at apply.c:1749 #4 0x0000000000405632 in main (argc=3, argv=0x7fffff841c38) at apply.c:1860 #5 0x0000003287f1c3cf in __libc_start_main () from /lib64/libc.so.6 #6 0x0000000000402459 in _start () #7 0x00007fffff841c28 in ?? () #8 0x0000000000000000 in ?? () git on hera is 1.1.6-1 Dave