From nobody@FreeBSD.org  Thu Feb  6 20:07:50 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 53419E22
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Feb 2014 20:07:50 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 3E71A1001
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Feb 2014 20:07:50 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s16K7nmj070364
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 6 Feb 2014 20:07:49 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s16K7nWc070363;
	Thu, 6 Feb 2014 20:07:49 GMT
	(envelope-from nobody)
Message-Id: <201402062007.s16K7nWc070363@oldred.freebsd.org>
Date: Thu, 6 Feb 2014 20:07:49 GMT
From: Sebastian Chmielewski <chmiels@o2.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ledger: segmentation fault
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: woodycarey@hotmail.com

>Number:         186518
>Category:       ports
>Synopsis:       finance/ledger: segmentation fault
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 06 20:10:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Fri Feb 14 20:00:00 UTC 2014
>Originator:     Sebastian Chmielewski
>Release:        10.0-RELEASE
>Organization:
>Environment:
FreeBSD xxxx 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Ledger crashes with segmentation fault message.

Dump from console:

Proceed with upgrading packages [y/N]: y
ledger-2.6.3_1.txz                                                                                        100%  600KB 599.5KB/s 599.5KB/s   00:01    
Checking integrity... done
[1/1] Reinstalling ledger-2.6.3_1... done
This port has installed sample data files, python samples and script samples
for ledger in ${PREFIX}/share/examples/ledger/
Have fun!
$ ledger
[1]    9368 segmentation fault  ledger

>How-To-Repeat:
Run the command, no arguments are needed.

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu Feb 6 22:27:45 UTC 2014 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186518 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: woodycarey@hotmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/186518: finance/ledger: segmentation fault
Date: Thu, 6 Feb 2014 22:27:45 UT

 Maintainer of finance/ledger,
 
 Please note that PR ports/186518 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/186518
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Woody Carey <woodycarey@hotmail.com>
To: "bug-followup@FreeBSD.org" <bug-followup@freebsd.org>
Cc:  
Subject: RE: ports/186518: finance/ledger: segmentation fault
Date: Thu, 6 Feb 2014 16:39:15 -0800

 --_cff3c8c6-e767-45f2-bcfa-3f04684a5501_
 Content-Type: text/plain; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 hi Edwin=2C
 
 Would it be possible for me to get a login on a 10.Current box so I can loo=
 k at the stack trace from the core file or something?
 i don't actually have a 10Current box up and running right now.
 
 Sincerely=2C
 
 Woody Carey
 
 --_cff3c8c6-e767-45f2-bcfa-3f04684a5501_--

From: Sebastian Chmielewski <chmiels@o2.pl>
To: Woody Carey <woodycarey@hotmail.com>, bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/186518: finance/ledger: segmentation fault
Date: Fri, 14 Feb 2014 20:50:16 +0100

 stack from binary package is not very interesting
 
 result of make WITH_DEBUG=yes and gdb on my system:
 
 gdb /usr/local/bin/ledger                   
 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$ r
 [New LWP 101771]
 [New Thread 802406400 (LWP 101771/ledger)]
 
 Program received signal SIGILL, Illegal instruction.
 [Switching to Thread 802406400 (LWP 101771/ledger)]
 Error while running hook_stop:
 Invalid type combination in ordering comparison.
 0x000000000042c1fb in ledger::amount_t::parse (this=0x7fffffffb200, str=@0x7fffffffb1c8, flags=0x2) at amount.cc:1226
 1226	  parse(stream, flags);
 gdb$ bt
 #0  0x000000000042c1fb in ledger::amount_t::parse (this=0x7fffffffb200, str=@0x7fffffffb1c8, flags=0x2) at amount.cc:1226
 #1  0x000000000042d1a0 in ledger::parse_conversion (larger_str=@0x7fffffffb488, smaller_str=@0x7fffffffb470) at amount.cc:1234
 #2  0x0000000000443b25 in _init_amounts (this=0x791e10) at amount.cc:91
 #3  0x0000000000433495 in _init_amounts (this=0x791e10) at amount.cc:103
 #4  0x0000000000421065 in __cxx_global_var_init3 () at amount.cc:126
 #5  0x00000000004333f8 in global constructors keyed to a () at amount.cc:33
 #6  0x00000000005516a2 in __do_global_ctors_aux ()
 #7  0x0000000000404de6 in _init ()
 #8  0x00007fffffffbb90 in ?? ()
 #9  0x0000000800794691 in r_debug_state () from /libexec/ld-elf.so.1
 #10 0x0000000800793d27 in __tls_get_addr () from /libexec/ld-elf.so.1
 #11 0x0000000800792089 in .text () from /libexec/ld-elf.so.1
 #12 0x0000000000000000 in ?? ()
 gdb$ 
 
>Unformatted:
