From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 5 09:10:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 900A825E for ; Wed, 5 Jun 2013 09:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 770721D52 for ; Wed, 5 Jun 2013 09:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r559A2pa091563 for ; Wed, 5 Jun 2013 09:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r559A2os091562; Wed, 5 Jun 2013 09:10:02 GMT (envelope-from gnats) Resent-Date: Wed, 5 Jun 2013 09:10:02 GMT Resent-Message-Id: <201306050910.r559A2os091562@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexey Markov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 51A6AF7C for ; Wed, 5 Jun 2013 09:02:31 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 447931CFF for ; Wed, 5 Jun 2013 09:02:31 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5592UaD081167 for ; Wed, 5 Jun 2013 09:02:30 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5592UaB081166; Wed, 5 Jun 2013 09:02:30 GMT (envelope-from nobody) Message-Id: <201306050902.r5592UaB081166@oldred.freebsd.org> Date: Wed, 5 Jun 2013 09:02:30 GMT From: Alexey Markov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/179325: net/svnup: Segmentation fault in the latest version X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jun 2013 09:10:02 -0000 >Number: 179325 >Category: ports >Synopsis: net/svnup: Segmentation fault in the latest version >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 05 09:10:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Alexey Markov >Release: 8.3-RELEASE-p7 >Organization: JSC Complitex >Environment: FreeBSD host.redrat.ru 8.3-RELEASE-p7 FreeBSD 8.3-RELEASE-p7 #0: Thu Apr 4 14:15:05 MSK 2013 redrat@host.redrat.ru:/arc/obj/arc/src/sys/HOST amd64 >Description: Latest version (0.73) of svnup get constant segmentation faults while trying update /usr/src. Full backtrace is attached to this PR. >How-To-Repeat: host:redrat/1# cc -Wall -g3 -ggdb -o svnup svnup.c -lmd -lssl host:redrat/1# gdb ./svnup GNU gdb 6.1.1 [FreeBSD] 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 "amd64-marcel-freebsd"... (gdb) run release Starting program: /arc/home/redrat/1/svnup release # Revision: 251405 Program received signal SIGSEGV, Segmentation fault. 0x0000000000409c48 in main (argc=2, argv=0x7fffffffea80) at svnup.c:2301 2301 if (file[f]->download == 0) { host:redrat/1# cat /usr/local/etc/svnup.conf # $FreeBSD$ # # Default configuration options for svnup.conf [defaults] work_directory=/var/db/svnup host=svn.freebsd.org #host=svn0.us-west.freebsd.org #host=svn0.us-east.freebsd.org #protocol=https protocol=svn verbosity=1 trim_tree=0 [ports] branch=ports/head target=/arc/home/redrat/ports [release] branch=base/releng/8.4 target=/arc/home/redrat/src #[stable] #branch=base/stable/8 #[current] #branch=base/head >Fix: Patch attached with submission follows: Starting program: /arc/home/redrat/1/svnup release Program received signal SIGSEGV, Segmentation fault. 0x0000000000409c48 in main (argc=2, argv=0x7fffffffea80) at svnup.c:2301 2301 if (file[f]->download == 0) { #0 0x0000000000409c48 in main (argc=2, argv=0x7fffffffea80) at svnup.c:2301 local = {st_dev = 88, st_ino = 16631, st_mode = 33188, st_nlink = 1, st_uid = 0, st_gid = 0, st_rdev = 70968, st_atimespec = { tv_sec = 1370420006, tv_nsec = 0}, st_mtimespec = {tv_sec = 1369811430, tv_nsec = 0}, st_ctimespec = {tv_sec = 1369811430, tv_nsec = 0}, st_size = 2946828, st_blocks = 5824, st_blksize = 32768, st_flags = 0, st_gen = 2037667076, st_lspare = 0, st_birthtimespec = { tv_sec = 1369811430, tv_nsec = 0}} data = (struct tree_node *) 0x801423520 found = (struct tree_node *) 0x7fffffffea80 file = (file_node **) 0x8048ce000 connection = {socket_descriptor = 3, protocol = SVN, ssl = 0x0, ctx = 0x0, address = 0x800e0d060 "svn.freebsd.org", port = 3690, revision = 251405, family = 2, root = 0x800e04068 "base", trunk = 0x800e1d040 "releng/8.4", branch = 0x800e0d080 "base/releng/8.4", path_target = 0x800e0d0a0 "/arc/home/redrat/src", response = 0x801800000 "( success ( ( ) 0: ) )", response_length = 210968, response_blocks = 10240, response_groups = 0, path_work = 0x800e1d050 "/var/db/svnup", known_files = 0x801000000 "251099\r\n5f8d36baa24578ca77e76707bd8d0a6e", known_files_old = 0x800e16140 "/var/db/svnup/release", known_files_new = 0x800e16280 "/var/db/svnup/release.new", known_files_size = 2946828, trim_tree = 0, verbosity = 1} buffer = (char **) 0x804204c00 command = "\000 get-dir ( 0: ( 251405 ) false true ( kind size ) ) )\n\000ops depth log-revprops atomic-revprops partial-replay ) 37:svn://svn.freebsd.org/base/releng/8.4 10:svnup-0.73 ( ) )\n", '\0' , "x\201Ø\000\b\000\000\000N}±\000\b\000\000\000\000"... configuration_file = 0x800e0d040 "/usr/local/etc/svnup.conf" end = 0x801800280 "" md5 = 0x8012cf692 "675e91b9faeea40e4d5ffa60b24589ad" path = 0x8012cf6b3 "/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/manifest/test.jar-manifest" start = 0x801800017 "( success ( ( 32:05a6d30dc6f6807e240eed4837774249 ) 251405 ( ( 14:svn:entry:uuid 36:ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f ) ( 12:svn:keywords 10:FreeBSD=%H ) ( 13:svn:mergeinfo 291:/head/README:196879,"... temp_buffer = "( get-file ( 46:/gnu/usr.bin/groff/src/devices/grolbp/Makefile ( 251405 ) true false ) )\n\000\n\000)\n\000)\n\000\n\000)\n\000) )\n\000\n\000)\n\000)\n\000) )\n\000false ) )\n\000)\n\000\n\000)\n\000\000\000) )\n\000\n\000\000)\n\000)\n", '\0' value = 0x801800023 "( 32:05a6d30dc6f6807e240eed4837774249 ) 251405 ( ( 14:svn:entry:uuid 36:ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f ) ( 12:svn:keywords 10:FreeBSD=%H ) ( 13:svn:mergeinfo 291:/head/README:196879,198020,19848"... b = 0 buffer_commands = (int *) 0x804205000 buffer_full = 0 buffers = 104 c = 0 command_count = 0 display_last_revision = 0 f = 43288 f0 = 0 fd = 3 file_count = 43288 file_max = 45056 length = 0 option = -1 x = 8 The program is running. Exit anyway? (y or n) >Release-Note: >Audit-Trail: >Unformatted: