From owner-freebsd-pkg@freebsd.org Mon May 23 08:46:20 2016 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 81C0BB45E0A for ; Mon, 23 May 2016 08:46:20 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 6B4C81098 for ; Mon, 23 May 2016 08:46:20 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: by mailman.ysv.freebsd.org (Postfix) id 6AB8DB45E09; Mon, 23 May 2016 08:46:20 +0000 (UTC) Delivered-To: pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6A42EB45E08; Mon, 23 May 2016 08:46:20 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from hapkido.dreamhost.com (hapkido.dreamhost.com [66.33.216.122]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 40D941097; Mon, 23 May 2016 08:46:19 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from homiemail-a116.g.dreamhost.com (caibbdcaaahd.dreamhost.com [208.113.200.73]) by hapkido.dreamhost.com (Postfix) with ESMTP id 662688B060; Mon, 23 May 2016 01:46:13 -0700 (PDT) Received: from homiemail-a116.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a116.g.dreamhost.com (Postfix) with ESMTP id 87D3970000800; Mon, 23 May 2016 01:46:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=ozzmosis.com; h=date:from :to:cc:subject:message-id:mime-version:content-type; s= ozzmosis.com; bh=6CQWv/4sKWf1LB6R0e3wXUR2cMA=; b=gyUQ183mRJitDmI yLciIBvj/Pf227wTKW9zy/lJ38fITEJVVwOTOthqrageWkKIf0rnk2+A90Bi0LH0 TiYBpWhHZ01vjqwhDJOeQBsB/3e5XriVnFZZECR1v+qZrnLXYJH1IhhIhasRkDbw oNXNPibFgvLkpyZgq5ZLvpRXy1OE= Received: from blizzard.ozzmosis.com (124-170-60-10.dyn.iinet.net.au [124.170.60.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: relay@ozzmosis.com) by homiemail-a116.g.dreamhost.com (Postfix) with ESMTPSA id 44C767000050C; Mon, 23 May 2016 01:46:07 -0700 (PDT) Received: by blizzard.ozzmosis.com (Postfix, from userid 1001) id BE65E644; Mon, 23 May 2016 18:46:04 +1000 (AEST) Date: Mon, 23 May 2016 18:46:04 +1000 From: andrew clarke To: freebsd-ports@FreeBSD.org Cc: pkg@FreeBSD.org Subject: pkg updating crash in pkg-1.8.0 Message-ID: <20160523084604.GA33081@ozzmosis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2016 08:46:20 -0000 Hi, The command "pkg updating" crashes since pkg-1.8.0. Out of curiosity I rebuilt it from source, then single-stepped pkg-static using gdb: $ uname -a FreeBSD blizzard.phoenix 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02 UTC 2016 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 $ gdb --args pkg-static updating 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) break main Breakpoint 1 at 0x40980e: file main.c, line 570. (gdb) r Starting program: /usr/home/ozzmosis/src/pkg/pkg-1.8.0/src/pkg-static updating Breakpoint 1, main (argc=2, argv=0x7fffffffe4c8) at main.c:570 570 int64_t debug = 0; Current language: auto; currently minimal (gdb) n 584 struct option longopts[] = { (gdb) 602 setvbuf(stdout, NULL, _IONBF, 0); (gdb) 605 signal(SIGPIPE, SIG_IGN); (gdb) 607 if (argc < 2) (gdb) 616 if (setenv("POSIXLY_CORRECT", "1", 1) == -1) (gdb) 626 while ((ch = getopt_long(argc, argv, "+d"JAIL_OPT"c:C:R:r:lNvo:46", longopts, NULL)) != -1) { (gdb) 671 argv += optind; (gdb) 673 pkg_set_debug_level(debug); (gdb) 675 if (version == 1) (gdb) 678 if (show_commands && version == 0) { (gdb) 686 umask(022); (gdb) 687 pkg_event_register(&event_callback, &debug); (gdb) 690 optreset = 1; (gdb) 691 optind = 1; (gdb) 693 if (debug == 0 && version == 0) (gdb) 462 child_pid = fork(); (gdb) 464 if (child_pid == 0) { (gdb) 473 while (waitpid(child_pid, &status, 0) == -1) { (gdb) 478 ret = WEXITSTATUS(status); (gdb) 480 if (WIFEXITED(status) && ret != EX_NEEDRESTART) (gdb) 482 if (WIFSIGNALED(status)) { (gdb) 484 fprintf(stderr, "Child process pid=%d terminated abnormally: %s\n", (gdb) 485 (int)child_pid, strsignal (WTERMSIG(status))); (gdb) 484 fprintf(stderr, "Child process pid=%d terminated abnormally: %s\n", (gdb) Child process pid=33151 terminated abnormally: Trace/BPT trap 486 ret = 128 + WTERMSIG(status); (gdb) 492 exit(ret); (gdb) Program exited with code 0205. (gdb) I'm not really sure what's going on here but it might be obvious to the devs. Thanks, Regards Andrew