From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Parkins Subject: git-apply segfault Date: Wed, 17 Oct 2007 11:00:01 +0100 Message-ID: <200710171100.01247.andyparkins@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Wed Oct 17 12:00:24 2007 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ii5hP-0001LG-KP for gcvg-git-2@gmane.org; Wed, 17 Oct 2007 12:00:24 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758023AbXJQKAH (ORCPT ); Wed, 17 Oct 2007 06:00:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757702AbXJQKAG (ORCPT ); Wed, 17 Oct 2007 06:00:06 -0400 Received: from ug-out-1314.google.com ([66.249.92.173]:38865 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757447AbXJQKAF (ORCPT ); Wed, 17 Oct 2007 06:00:05 -0400 Received: by ug-out-1314.google.com with SMTP id z38so229092ugc for ; Wed, 17 Oct 2007 03:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=Y8p4DtE4OOtdv01Q1qAcU39X8Rs9Hh4ZVEU93lZnxbM=; b=oAsQt8VMMenkOyS3QmILqJtsjnbdjiwj2wTv6OASQUeNnsLEVWsuDu6LPENYLXFVkO4HSORZBeY++zJwwrGkZiaQLwkUlSe1GrD/A4E2Lx0pWzU4/wOS4sAGPboojYwdVexCj8IuCiMiZi2V1Jq5X6NogZQnSzenrGPIyDsT3ts= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=ovJ16zhTEy+zWbQ5Mfon6IKM86cGGooYMD9799LJeOC+w23a/Ri7CRxb7uS5vYXHRBJaZBkhFhZRCmBXEBtumDgVsKfswmHrKsVhVHXyg5d53H2RYgJy2eZIuFx/hI2idtlLcqHA0G6hC/DmglrFmBOojh03pyY9mpZw01hbKW0= Received: by 10.67.96.16 with SMTP id y16mr422539ugl.1192615203735; Wed, 17 Oct 2007 03:00:03 -0700 (PDT) Received: from dvr.360vision.com ( [194.70.53.227]) by mx.google.com with ESMTPS id b30sm6678215ika.2007.10.17.03.00.02 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 17 Oct 2007 03:00:03 -0700 (PDT) User-Agent: KMail/1.9.7 Content-Disposition: inline Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Hello, I've not got time to investigate this further just now, I'll try later. In case anyone else wants to though; I just got this core dump when running git rebase using current git master (1.5.3.4.206.g58ba4): Core was generated by `git apply --allow-binary-replacement --index .dotest/patch'. Program terminated with signal 11, Segmentation fault. #0 0xb7cd42a0 in memchr () from /lib/i686/cmov/libc.so.6 (gdb) bt #0 0xb7cd42a0 in memchr () from /lib/i686/cmov/libc.so.6 #1 0x080c0931 in convert_to_git (path=0x8129a88 "ui/dmswindow.cc", src=0xb7c3d008
, len=88306, dst=0xbfb689bc) at convert.c:428 #2 0x0804ecfd in check_patch_list (patch=0x81299d0) at builtin-apply.c:1434 #3 0x080510fa in apply_patch (fd=1, filename=0xffffffff
, inaccurate_eof=1) at builtin-apply.c:2686 #4 0x0805233e in cmd_apply (argc=4, argv=0xbfb69d18, unused_prefix=0x0) at builtin-apply.c:2853 #5 0x0804ab3b in handle_internal_command (argc=4, argv=0xbfb69d18) at git.c:284 #6 0x0804b19f in main (argc=2037149808, argv=0x612d2d00) at git.c:467 It was (unfortunately) on a private repository so I can't share it for testing, but am happy to do tests if wanted. Andy -- Dr Andy Parkins, M Eng (hons), MIET andyparkins@gmail.com