From owner-freebsd-current@FreeBSD.ORG Tue Jul 6 15:54:43 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BD1E106566C; Tue, 6 Jul 2010 15:54:43 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id D13728FC12; Tue, 6 Jul 2010 15:54:42 +0000 (UTC) Received: by gxk24 with SMTP id 24so1118267gxk.13 for ; Tue, 06 Jul 2010 08:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:message-id:user-agent:mime-version:content-type; bh=BSPykZqOIGIKi9KXHJNcxswPskeevFhFN014bqQPSBc=; b=gQYp9QwjTgv7EYsvecBKiNOfVMRnwcHn3KUvfiPhCyC0mqrQ9KtW+Pbi+YdaQkEdYw OZQsQdZoxzNpZ5zq06MmQP+QXsGXpHNpqWX8IgV9iA4Mr7OVPE4bmNjLnkPiyq9KIfao g+TLZ55oYpm7uPcXUlLl9jBGd9rd2r65N+DIo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; b=Vf+ccOtSIquEOmzl5+6U25uAi71OK6C6sn8n/sOYzazC8TQGtY4jiXoxY28w//2E02 NDbYbcz0/wPykiy49LIEy6hUoYJ9dGfOVK4RRdr9smM3oZngtE45Up/N+czxScfSzQfr NCI6b5RYT24MV4k9EH1vtrxIIXmLrGuFnNQzY= Received: by 10.239.160.19 with SMTP id a19mr534838hbd.56.1278431678291; Tue, 06 Jul 2010 08:54:38 -0700 (PDT) Received: from localhost (anonymizer2.torservers.net [173.244.197.210]) by mx.google.com with ESMTPS id e20sm6230073vcm.40.2010.07.06.08.54.35 (version=SSLv3 cipher=RC4-MD5); Tue, 06 Jul 2010 08:54:37 -0700 (PDT) From: Anonymous To: Gabor Kovesdan References: <4C16C5B5.1070308@FreeBSD.org> <867hlzq4lb.fsf@gmail.com> <867hlzufl6.fsf@gmail.com> <4C1A7A57.3000006@FreeBSD.org> <86bpb9z77g.fsf@gmail.com> <4C2F7917.7040900@FreeBSD.org> <86pqz29sy2.fsf@gmail.com> Date: Tue, 06 Jul 2010 19:54:32 +0400 Message-ID: <86mxu4sj0n.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: FreeBSD Current Subject: Re: [CFT] BSDL iconv in base system X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2010 15:54:43 -0000 (my previous mail didn't appear in the archives) Anonymous writes: > Gabor Kovesdan writes: >> Here's the new patch, which is supposed to fix the following issues: >> - Fixed build on amd64 and fixed cross-compiling >> - Fixed hang when linked to libthr >> - Fixed iconv() prototype as per POSIX >> - More GNU compatibility: "" or "char" means the current local >> encoding in use >> >> http://kovesdan.org/patches/iconv_current.diff > > BTW, I think there is regression in iconv(1). It wasn't there in iconv_base_integrate2.diff. > > (gdb) r > Starting program: /usr/bin/iconv > During symbol reading, DW_AT_name missing from DW_TAG_base_type. > During symbol reading, cannot get low and high bounds for subprogram DIE at 11006. > During symbol reading, DW_AT_name missing from DW_TAG_base_type. > > Program received signal SIGSEGV, Segmentation fault. > 0x0000000000401281 in main (argc= > During symbol reading, incomplete CFI data; unspecified registers (e.g., rax) at 0x401180. > 0, argv=0x7ffffffefb98) at /a/blah/usr.bin/iconv/iconv.c:198 > 198 if ((strcmp(opt_f, "") == 0) && (strcmp(opt_t, "") == 0)) > (gdb) bt f > #0 0x0000000000401281 in main (argc=0, argv=0x7ffffffefb98) at /a/blah/usr.bin/iconv/iconv.c:198 > fp = > opt_f = 0x0 > opt_t = 0x0 > ch = > i = > opt_c = false > opt_s = false > (gdb) p *argv > $1 = 0x0 It works if I specify both `-t' and `-f'. And crashes when none specified or only one of them.