Re: Gnucash segfaults

2010-03-27 Thread John A. Sullivan III
On Tue, 2010-03-16 at 13:09 -0400, John A. Sullivan III wrote:
 snip 
 Compiling 2.2.9 from source works without installing the libraries from
 Squeeze.  Is this something that should be passed along to backports?
 How is that done? Thanks - John
I was able to build an installable .deb package for 2.2.9 for Lenny with
the problematic lenny-backport libraries.  This is what I did (adapted
from our internal documentation):

GnuCash 2.2.6 seg faults on Lenny when the Lenny-Backports are used for
OpenOffice and IceWeasel.  This is probably due to the newer libglib2.
We cannot simply install 2.2.9 from Squeeze or Sid as it has many
dependencies that would seem dangerous to bring into Lenny.  Thus, we
will recompile the 2.2.9 deb for Lenny.
The procedure is as follows.
Some of the steps need to be done as root
Install the needed packages for building
apt-get -t lenny-backports install devscripts build-essential
Edit /etc/apt/sources.list by adding a Lenny Backports source repository
such as the following:
deb-src http://www.backports.org/debian/ lenny-backports main contrib non-free
Make apt aware of the repository:
apt-get update
Other steps MUST not be done by root so we need another user console to
do the following steps.
We will need the 2.2.6 source deb to have all the various settings and
options used by debian.  These will be in the debian directory and is
really all we need from the source deb.  We will store this in
gnucash-2.2.6
We will also need the 2.2.9 source tarball.  We will store this in
gnucash which will become the deb build directory
mkdir /data/Tech/download/gnucash
mkdir /data/Tech/download/gnucash-2.2.6
cd /data/Tech/download/gnucash-2.2.6
apt-get -t lenny-backports source gnucash gnucash-common
We need to install dependencies and this must be done as root so return
to the root console and do:
cd /data/Tech/download/gnucash-2.2.6
apt-get -t lenny-backports build-dep gnucash gnucash-common
Return to the user console
cd /data/Tech/download/gnucash
wget http://www.gnucash.org/pub/gnucash/sources/stable/gnucash-2.2.9.tar.bz2
tar jfvx gnucash-2.2.9.tar.bz2
mv gnucash{-,_}2.2.9.tar.bz2
mv gnucash_2.2.9{,.orig}.tar.bz2  - This is the name format debuild will
expect
cd gnucash-2.2.9
cp -r ../../gnucash-2.2.6/gnucash-2.2.6/debian ./
cd debian
The changelog is more than information; it is critical for debuild
processing.  Add something similar to the following at the top (the
syntax is very fussy)
gnucash (2.2.9-0) stable; urgency=high
  * 2.2.6 segfaults with libglib from lenny-backports
 -- John Sullivan jsulli...@pacifera.com  Sat, 27 Mar 2010 19:18:00 -0500
Edit the control file and edit the two Replaces lines so they read:
Replaces: gnucash-common ( 2.2.6-3)
Replaces: gnucash ( 2.2.6-3)
Edit the files file so it reads:
gnucash-common_2.2.9-0_all.deb gnome optional
gnucash_2.2.9-0_amd64.deb gnome optional
debuild will complain about the -0 but I do not want to give it -1 in
case the real 2.2.9 package is -1 when it is released.
cd ..
debuild -us -uc
cd ..
The two .deb files should be in this directory and can be installed
where needed

I really don't know what I am doing so there might be plenty of mistakes
in the above but hope it is useful to someone facing the same problem -
John


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1269737612.9428.20.ca...@family.pacifera.com



Re: Gnucash segfaults

2010-03-16 Thread John A. Sullivan III
On Mon, 2010-03-15 at 22:06 -0400, John A. Sullivan III wrote:
 On Mon, 2010-03-15 at 18:09 -0700, Andrew Sackville-West wrote:
  On Mon, Mar 15, 2010 at 08:16:32PM -0400, John A. Sullivan III wrote:
   On Mon, 2010-03-15 at 18:11 -0400, John A. Sullivan III wrote:
On Mon, 2010-03-15 at 12:00 -0700, Andrew Sackville-West wrote:
 On Mon, Mar 15, 2010 at 02:06:28PM -0400, John A. Sullivan III wrote:
  On Mon, 2010-03-15 at 10:39 -0700, Andrew Sackville-West wrote:
   On Mon, Mar 15, 2010 at 01:34:09PM -0400, John A. Sullivan III 
   wrote:
Hello, all.  We are in the process of switching from Ubuntu 
8.0.4 to
Debian Lenny plus selected backports (e.g., OpenOffice, 
IceWeasel).
Since donig so, GnuCash (2.2.6-2) seg faults every time we try 
to open
an account.  Since these are our production financials, you can 
imagine
this is quite a problem!

The end of the gnucash trace file in debug mode shows:
   
   Can you please provide output generated by the crash when 
   launching
   gnucash from a terminal.
  Alas, there is nothing particularly helpful:
  jas...@jasiii:~$ gnucash --debug
  gnc.bin-Message: main: binreloc relocation support was disabled at 
  configure time.
  
  Found Finance::Quote version 1.13
  Segmentation fault
 
 hmmm... okay, a couple of options. 
 
 1) run gnucash from the command line: gnucash --nofile
 which will open an empty gnucash instance. If that doesn't crash, then
 try opening your file from the file menu at that point. I suspect this
 won't work though, that it will crash. 
Indeed - had tried that early on and it crashes as soon as I try to open
an account.
  
  hmmm... try this: 
  
  launch gnucash with the --nofile flag. Then head into preferences and
  make sure the automatic running of scheduled transactions is turned
  off. Edit - Preferences - Scheduled transactions - Run when data
  file opened. Make sure that's unchecked. Then open your data file and
  see what happens. One of the problems in the past was a crash from
  sched txns running automatically. Again, it's been a while for me, so
  I'm just guessing...
  
 Thanks very much; I really do appreciate the help.  My problem is no
 opening the data file; that opens fine.  It is opening an account.
 Nonetheless, I tried this and had the same problem.
  [...]
  
   Argh!!! This is getting very frustrating - probably all my ignorance.  I
   rebuilt the debs and still get the same segfaults.  Here's what I did
   (from our internal docs):
   
   Some of the steps need to be done as root so we will need to create a
   root console.  Install the needed packages for building
   apt-get -t lenny-backports install devscripts build-essential
   Edit /etc/apt/sources.list by adding a Lenny Backports source repository
   such as the following:
   deb-src http://www.backports.org/debian/ lenny-backports main contrib
   non-free
   Make apt aware of the repository:
   apt-get update
   Other steps MUST not be done by root so we need another user console to
   do the following steps.
   We next need to download the source and rebuild it
   mkdir /data/Tech/download/gnucash
   cd /data/Tech/download/gnucash
   apt-get -t lenny-backports source gnucash gnucash-common
  
  what output did the above command produce? 
  
   We need to install dependencies and this must be done as root so return
   to the root console and do:
   cd /data/Tech/download/gnucash
   apt-get -t lenny-backports build-dep gnucash gnucash-common
   Return to the user console
   cd gnucash-2.2.6
   debuild -us -uc
   cd ..
   The two .deb files should be in this directory and can be installed
   where needed
   
   
   I then installed them with dpkg -i. It clearly stated it was replacing
   gnucash and gnucash common:
   
   jasiii:/data/download/gnucash# ls
   gnucash-2.2.6gnucash_2.2.6-2_amd64.changes
   gnucash_2.2.6-2.diff.gz  gnucash_2.2.6.orig.tar.gz
   gnucash_2.2.6-2_amd64.build  gnucash_2.2.6-2_amd64.deb
   gnucash_2.2.6-2.dsc  gnucash-common_2.2.6-2_all.deb
  
  these are all version 2.2.6, the same one that was giving you
  trouble. You need the source for 2.2.9...
  
  A
 Well, perhaps I have a misunderstanding here.  If I try to build 2.2.9
 (what I first tried), running apt-get build-dep wants to bring in all
 the libraries from testing that I'm trying to avoid; I might as well
 install from the testing repository.
 
 On the other hand, I thought that by compiling 2.2.6 with the newer
 libglib2 libraries, it would call them properly and no longer seg fault.
 Am I going about this the wrong way? Thanks again - John
 
 
Compiling 2.2.9 from source works without installing the libraries from
Squeeze.  Is this something that should be passed along to backports?
How is that done? Thanks - John


-- 
To UNSUBSCRIBE, email to 

Gnucash segfaults

2010-03-15 Thread John A. Sullivan III
Hello, all.  We are in the process of switching from Ubuntu 8.0.4 to
Debian Lenny plus selected backports (e.g., OpenOffice, IceWeasel).
Since donig so, GnuCash (2.2.6-2) seg faults every time we try to open
an account.  Since these are our production financials, you can imagine
this is quite a problem!

The end of the gnucash trace file in debug mode shows:

* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  
baln=-770/100
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  
baln=-770/100
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
* 13:27:18  INFO qof.object [qof_object_foreach] type=Split
* 13:27:18  INFO qof.query [qof_query_run_internal] matching objects=0xe9b240 
count=23
* 13:27:18  INFO qof.engine [qof_event_generate_internal] id=5 hi=0xcf2b90 
han=0x7f63e1bc2740 data=(nil)
* 13:27:18  INFO qof.engine [qof_event_generate_internal] id=3 hi=0xc75c40 
han=0x7f63e2ace9e0 data=(nil)
* 13:27:18  INFO qof.engine [qof_event_generate_internal] id=2 hi=0x9ac830 
han=0x7f63e16f9ee0 data=(nil)
* 13:27:18  INFO qof.engine [qof_event_generate_internal] id=1 hi=0x763d10 
han=0x7f63e1bb2d60 data=(nil)
* 13:27:18  INFO gnc.engine [xaccTransSetDateInternal] addr=0x62f450 set date 
to 1268625600.0 Mon Mar 15 00:00:00 2010
* 13:27:18  INFO qof.engine [qof_event_generate_internal] id=5 hi=0xcf2b90 
han=0x7f63e1bc2740 data=0x7fffeb415160
* 13:27:18  INFO qof.engine [qof_event_generate_internal] id=3 hi=0xc75c40 
han=0x7f63e2ace9e0 data=0x7fffeb415160
* 13:27:18  INFO qof.engine [qof_event_generate_internal] id=2 hi=0x9ac830 
han=0x7f63e16f9ee0 data=0x7fffeb415160
* 13:27:18  INFO qof.engine [qof_event_generate_internal] id=1 hi=0x763d10 
han=0x7f63e1bb2d60 data=0x7fffeb415160

We have updated and upgraded using apt-get to the latest.  How do we fix
this? Thanks - John


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1268674449.5897.16.ca...@family.pacifera.com



Re: Gnucash segfaults

2010-03-15 Thread Andrew Sackville-West
On Mon, Mar 15, 2010 at 01:34:09PM -0400, John A. Sullivan III wrote:
 Hello, all.  We are in the process of switching from Ubuntu 8.0.4 to
 Debian Lenny plus selected backports (e.g., OpenOffice, IceWeasel).
 Since donig so, GnuCash (2.2.6-2) seg faults every time we try to open
 an account.  Since these are our production financials, you can imagine
 this is quite a problem!
 
 The end of the gnucash trace file in debug mode shows:

Can you please provide output generated by the crash when launching
gnucash from a terminal.

A

 
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  
 baln=-770/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  
 baln=-770/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO qof.object [qof_object_foreach] type=Split
 * 13:27:18  INFO qof.query [qof_query_run_internal] matching 
 objects=0xe9b240 count=23
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=5 hi=0xcf2b90 
 han=0x7f63e1bc2740 data=(nil)
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=3 hi=0xc75c40 
 han=0x7f63e2ace9e0 data=(nil)
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=2 hi=0x9ac830 
 han=0x7f63e16f9ee0 data=(nil)
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=1 hi=0x763d10 
 han=0x7f63e1bb2d60 data=(nil)
 * 13:27:18  INFO gnc.engine [xaccTransSetDateInternal] addr=0x62f450 set 
 date to 1268625600.0 Mon Mar 15 00:00:00 2010
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=5 hi=0xcf2b90 
 han=0x7f63e1bc2740 data=0x7fffeb415160
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=3 hi=0xc75c40 
 han=0x7f63e2ace9e0 data=0x7fffeb415160
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=2 hi=0x9ac830 
 han=0x7f63e16f9ee0 data=0x7fffeb415160
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=1 hi=0x763d10 
 han=0x7f63e1bb2d60 data=0x7fffeb415160
 
 We have updated and upgraded using apt-get to the latest.  How do we fix
 this? Thanks - John
 
 
 -- 
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/1268674449.5897.16.ca...@family.pacifera.com
 
 

-- 


signature.asc
Description: Digital signature


Re: Gnucash segfaults

2010-03-15 Thread John A. Sullivan III
On Mon, 2010-03-15 at 13:34 -0400, John A. Sullivan III wrote:
 Hello, all.  We are in the process of switching from Ubuntu 8.0.4 to
 Debian Lenny plus selected backports (e.g., OpenOffice, IceWeasel).
 Since donig so, GnuCash (2.2.6-2) seg faults every time we try to open
 an account.  Since these are our production financials, you can imagine
 this is quite a problem!
 
 The end of the gnucash trace file in debug mode shows:
 
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  
 baln=-770/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  
 baln=-770/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
 * 13:27:18  INFO qof.object [qof_object_foreach] type=Split
 * 13:27:18  INFO qof.query [qof_query_run_internal] matching 
 objects=0xe9b240 count=23
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=5 hi=0xcf2b90 
 han=0x7f63e1bc2740 data=(nil)
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=3 hi=0xc75c40 
 han=0x7f63e2ace9e0 data=(nil)
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=2 hi=0x9ac830 
 han=0x7f63e16f9ee0 data=(nil)
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=1 hi=0x763d10 
 han=0x7f63e1bb2d60 data=(nil)
 * 13:27:18  INFO gnc.engine [xaccTransSetDateInternal] addr=0x62f450 set 
 date to 1268625600.0 Mon Mar 15 00:00:00 2010
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=5 hi=0xcf2b90 
 han=0x7f63e1bc2740 data=0x7fffeb415160
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=3 hi=0xc75c40 
 han=0x7f63e2ace9e0 data=0x7fffeb415160
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=2 hi=0x9ac830 
 han=0x7f63e16f9ee0 data=0x7fffeb415160
 * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=1 hi=0x763d10 
 han=0x7f63e1bb2d60 data=0x7fffeb415160
 
 We have updated and upgraded using apt-get to the latest.  How do we fix
 this? Thanks - John
snip
We also see this in our system log:

kernel: gnucash-bin[21200]: segfault at 10 ip 7f49cd929c3e sp 
7fffd66cbfe0 error 6 in libgncmod-register-gnome.so[7f49cd90d000+23000]



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1268674844.5897.18.ca...@family.pacifera.com



Re: Gnucash segfaults

2010-03-15 Thread John A. Sullivan III
On Mon, 2010-03-15 at 10:39 -0700, Andrew Sackville-West wrote:
 On Mon, Mar 15, 2010 at 01:34:09PM -0400, John A. Sullivan III wrote:
  Hello, all.  We are in the process of switching from Ubuntu 8.0.4 to
  Debian Lenny plus selected backports (e.g., OpenOffice, IceWeasel).
  Since donig so, GnuCash (2.2.6-2) seg faults every time we try to open
  an account.  Since these are our production financials, you can imagine
  this is quite a problem!
  
  The end of the gnucash trace file in debug mode shows:
 
 Can you please provide output generated by the crash when launching
 gnucash from a terminal.
Alas, there is nothing particularly helpful:
jas...@jasiii:~$ gnucash --debug
gnc.bin-Message: main: binreloc relocation support was disabled at configure 
time.

Found Finance::Quote version 1.13
Segmentation fault

 
 A
 
  
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  
  baln=-770/100
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  
  baln=-770/100
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/1
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:17  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:18  INFO gnc.account [xaccAccountGetBalanceInCurrency]  baln=0/100
  * 13:27:18  INFO qof.object [qof_object_foreach] type=Split
  * 13:27:18  INFO qof.query [qof_query_run_internal] matching 
  objects=0xe9b240 count=23
  * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=5 
  hi=0xcf2b90 han=0x7f63e1bc2740 data=(nil)
  * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=3 
  hi=0xc75c40 han=0x7f63e2ace9e0 data=(nil)
  * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=2 
  hi=0x9ac830 han=0x7f63e16f9ee0 data=(nil)
  * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=1 
  hi=0x763d10 han=0x7f63e1bb2d60 data=(nil)
  * 13:27:18  INFO gnc.engine [xaccTransSetDateInternal] addr=0x62f450 set 
  date to 1268625600.0 Mon Mar 15 00:00:00 2010
  * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=5 
  hi=0xcf2b90 han=0x7f63e1bc2740 data=0x7fffeb415160
  * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=3 
  hi=0xc75c40 han=0x7f63e2ace9e0 data=0x7fffeb415160
  * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=2 
  hi=0x9ac830 han=0x7f63e16f9ee0 data=0x7fffeb415160
  * 13:27:18  INFO qof.engine [qof_event_generate_internal] id=1 
  hi=0x763d10 han=0x7f63e1bb2d60 data=0x7fffeb415160
  
  We have updated and upgraded using apt-get to the latest.  How do we fix
  this? Thanks - John
  
  
  -- 
  To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
  with a subject of unsubscribe. Trouble? Contact 
  listmas...@lists.debian.org
  Archive: 
  http://lists.debian.org/1268674449.5897.16.ca...@family.pacifera.com
  
  
 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Re: Gnucash segfaults

2010-03-15 Thread Johan Grönqvist

John A. Sullivan III skrev:

Hello, all.  We are in the process of switching from Ubuntu 8.0.4 to
Debian Lenny plus selected backports (e.g., OpenOffice, IceWeasel).
Since donig so, GnuCash (2.2.6-2) seg faults every time we try to open
an account.  



This sounds similar to the description


--
Package: gnucash
Version: 2.2.6-2
Severity: important

When I open GnuCash and try to open an account, GnuCash has a
segmentation fault.  This occurs irregardless of the account and
whether I open it by double-clicking on it or by selecting it and
pressing the Open button.
-



at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520055 which I 
found by googling for gnucash error 6 in 
libgncmod-register-gnome.so. Perhaps there is some information there 
that can help.



I do not use gnucash, so I can not help you more.


/ johan


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/hnlt8h$kh...@dough.gmane.org



Re: Gnucash segfaults

2010-03-15 Thread John A. Sullivan III
On Mon, 2010-03-15 at 19:11 +0100, Johan Grönqvist wrote:
 John A. Sullivan III skrev:
  Hello, all.  We are in the process of switching from Ubuntu 8.0.4 to
  Debian Lenny plus selected backports (e.g., OpenOffice, IceWeasel).
  Since donig so, GnuCash (2.2.6-2) seg faults every time we try to open
  an account.  
 
 
 This sounds similar to the description
 
 
 --
 Package: gnucash
 Version: 2.2.6-2
 Severity: important
 
 When I open GnuCash and try to open an account, GnuCash has a
 segmentation fault.  This occurs irregardless of the account and
 whether I open it by double-clicking on it or by selecting it and
 pressing the Open button.
 -
 
 
 
 at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520055 which I 
 found by googling for gnucash error 6 in 
 libgncmod-register-gnome.so. Perhaps there is some information there 
 that can help.
snip
Thanks. I had read some of the various bug reports that intimate the
problem is libglib2.  Downgrading to an earlier version is not an option
as it breaks both OpenOffice and IceWeasel.  I inferred from the bugs
that newer versions of GnuCash should work but

apt-get -t testing install gnucash

as well as unstable, squeeze, and sid, all report that I have the latest
gnucash.  I'm not sure what to do next.  Thanks again - John


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1268678524.5897.24.ca...@family.pacifera.com



Re: Gnucash segfaults

2010-03-15 Thread Andrew Sackville-West
On Mon, Mar 15, 2010 at 02:06:28PM -0400, John A. Sullivan III wrote:
 On Mon, 2010-03-15 at 10:39 -0700, Andrew Sackville-West wrote:
  On Mon, Mar 15, 2010 at 01:34:09PM -0400, John A. Sullivan III wrote:
   Hello, all.  We are in the process of switching from Ubuntu 8.0.4 to
   Debian Lenny plus selected backports (e.g., OpenOffice, IceWeasel).
   Since donig so, GnuCash (2.2.6-2) seg faults every time we try to open
   an account.  Since these are our production financials, you can imagine
   this is quite a problem!
   
   The end of the gnucash trace file in debug mode shows:
  
  Can you please provide output generated by the crash when launching
  gnucash from a terminal.
 Alas, there is nothing particularly helpful:
 jas...@jasiii:~$ gnucash --debug
 gnc.bin-Message: main: binreloc relocation support was disabled at configure 
 time.
 
 Found Finance::Quote version 1.13
 Segmentation fault

hmmm... okay, a couple of options. 

1) run gnucash from the command line: gnucash --nofile
which will open an empty gnucash instance. If that doesn't crash, then
try opening your file from the file menu at that point. I suspect this
won't work though, that it will crash. 

2) install version 2.2.9 from squeeze. this may be problematic as it
may bring in lots of gnome stuff you may not want. I haven't hacked on
gnucash in a while, so I can't say what the state of 2.2.6 was, but I
know there were a couple of problem releases for a bit there. It may
be one of them.

3) get on #gnucash on irc.gnome.org and ask there. The channel can be
pretty slow, so you'll have to lurk around for a while. Those guys can
probably figure it out, but be prepared to defend your reasons for not
moving up to 2.2.9, the current release.

4) build gnucash from source. This isn't as hard as you might
think. do apt-get build-dep gnucash and start there. you'll probably
want to use the --enable-opt-style-install to put it in a different
path to keep from mixing up with dpkg. 

A


signature.asc
Description: Digital signature


Re: Gnucash segfaults

2010-03-15 Thread Stephen Powell
On Mon, 15 Mar 2010 14:42:04 -0400 (EDT), John A. Sullivan III wrote:
 I had read some of the various bug reports that intimate the
 problem is libglib2.  Downgrading to an earlier version is not an option
 as it breaks both OpenOffice and IceWeasel.  I inferred from the bugs
 that newer versions of GnuCash should work but
 
 apt-get -t testing install gnucash
 
 as well as unstable, squeeze, and sid, all report that I have the latest
 gnucash.  I'm not sure what to do next.  Thanks again - John

If you're running the stable version of gnucash, that is version 2.2.6-2.
testing and unstable both have version 2.2.9-4.  There is nothing in
experimental or lenny-backports.  One option would be to download the
source for version 2.2.9-4 and build your own package from source on
your stable system.  Another alternative would be to install the testing
version of gnucash.  Another alternative would be to install the whole
testing release.  I can't guarantee that any of the alternatives will
fix the problem, of course.  :-| 

-- 
  .''`. Stephen Powellzlinux...@wowway.com
 : :'  :
 `. `'`
   `-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/393704010.19288571268679747278.javamail.r...@md01.wow.synacor.com



Re: Gnucash segfaults

2010-03-15 Thread Richard Hector
On Mon, 2010-03-15 at 13:34 -0400, John A. Sullivan III wrote:
 Hello, all.  We are in the process of switching from Ubuntu 8.0.4 to
 Debian Lenny plus selected backports (e.g., OpenOffice, IceWeasel).
 Since donig so, GnuCash (2.2.6-2) seg faults every time we try to open
 an account.  Since these are our production financials, you can imagine
 this is quite a problem!

I can't help with the gnucash problem, but if you don't have a spare
computer, you could run ubuntu in virtualbox or similar to access your
accounts in the meantime ...

Richard



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1268680961.12506.2.ca...@diamond.lan.walnut.gen.nz



Re: Gnucash segfaults

2010-03-15 Thread John A. Sullivan III
On Tue, 2010-03-16 at 08:22 +1300, Richard Hector wrote:
 On Mon, 2010-03-15 at 13:34 -0400, John A. Sullivan III wrote:
  Hello, all.  We are in the process of switching from Ubuntu 8.0.4 to
  Debian Lenny plus selected backports (e.g., OpenOffice, IceWeasel).
  Since donig so, GnuCash (2.2.6-2) seg faults every time we try to open
  an account.  Since these are our production financials, you can imagine
  this is quite a problem!
 
 I can't help with the gnucash problem, but if you don't have a spare
 computer, you could run ubuntu in virtualbox or similar to access your
 accounts in the meantime ...
 
 Richard
 
 
 
Thanks very much for the suggestion.  Alas, this is an image which will
go out to hundreds of virtual desktops so we need something that will be
manageable, sustainable, and as standard as possible - John


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1268690724.5897.26.ca...@family.pacifera.com



Re: Gnucash segfaults

2010-03-15 Thread John A. Sullivan III
On Mon, 2010-03-15 at 12:00 -0700, Andrew Sackville-West wrote:
 On Mon, Mar 15, 2010 at 02:06:28PM -0400, John A. Sullivan III wrote:
  On Mon, 2010-03-15 at 10:39 -0700, Andrew Sackville-West wrote:
   On Mon, Mar 15, 2010 at 01:34:09PM -0400, John A. Sullivan III wrote:
Hello, all.  We are in the process of switching from Ubuntu 8.0.4 to
Debian Lenny plus selected backports (e.g., OpenOffice, IceWeasel).
Since donig so, GnuCash (2.2.6-2) seg faults every time we try to open
an account.  Since these are our production financials, you can imagine
this is quite a problem!

The end of the gnucash trace file in debug mode shows:
   
   Can you please provide output generated by the crash when launching
   gnucash from a terminal.
  Alas, there is nothing particularly helpful:
  jas...@jasiii:~$ gnucash --debug
  gnc.bin-Message: main: binreloc relocation support was disabled at 
  configure time.
  
  Found Finance::Quote version 1.13
  Segmentation fault
 
 hmmm... okay, a couple of options. 
 
 1) run gnucash from the command line: gnucash --nofile
 which will open an empty gnucash instance. If that doesn't crash, then
 try opening your file from the file menu at that point. I suspect this
 won't work though, that it will crash. 
Indeed - had tried that early on and it crashes as soon as I try to open
an account.
 
 2) install version 2.2.9 from squeeze. this may be problematic as it
 may bring in lots of gnome stuff you may not want. I haven't hacked on
 gnucash in a while, so I can't say what the state of 2.2.6 was, but I
 know there were a couple of problem releases for a bit there. It may
 be one of them.
I was hoping I could simply sneak in gnucash and gnucash-common but you
are exactly right - lots of dependencies from testing that I don't want
to bring into this image which needs to be stable for hundreds if not
thousands of virtual desktops.
 
 3) get on #gnucash on irc.gnome.org and ask there. The channel can be
 pretty slow, so you'll have to lurk around for a while. Those guys can
 probably figure it out, but be prepared to defend your reasons for not
 moving up to 2.2.9, the current release.
 
 4) build gnucash from source. This isn't as hard as you might
 think. do apt-get build-dep gnucash and start there. you'll probably
 want to use the --enable-opt-style-install to put it in a different
 path to keep from mixing up with dpkg. 
Given the need to maintain this in some sane way I think this will be
our only real option until 2.2.9 hits stable.  Off to review how to
build debs! Thanks very much - John
 
 A


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1268691074.5897.30.ca...@family.pacifera.com



Re: Gnucash segfaults

2010-03-15 Thread John A. Sullivan III
On Mon, 2010-03-15 at 18:11 -0400, John A. Sullivan III wrote:
 On Mon, 2010-03-15 at 12:00 -0700, Andrew Sackville-West wrote:
  On Mon, Mar 15, 2010 at 02:06:28PM -0400, John A. Sullivan III wrote:
   On Mon, 2010-03-15 at 10:39 -0700, Andrew Sackville-West wrote:
On Mon, Mar 15, 2010 at 01:34:09PM -0400, John A. Sullivan III wrote:
 Hello, all.  We are in the process of switching from Ubuntu 8.0.4 to
 Debian Lenny plus selected backports (e.g., OpenOffice, IceWeasel).
 Since donig so, GnuCash (2.2.6-2) seg faults every time we try to open
 an account.  Since these are our production financials, you can 
 imagine
 this is quite a problem!
 
 The end of the gnucash trace file in debug mode shows:

Can you please provide output generated by the crash when launching
gnucash from a terminal.
   Alas, there is nothing particularly helpful:
   jas...@jasiii:~$ gnucash --debug
   gnc.bin-Message: main: binreloc relocation support was disabled at 
   configure time.
   
   Found Finance::Quote version 1.13
   Segmentation fault
  
  hmmm... okay, a couple of options. 
  
  1) run gnucash from the command line: gnucash --nofile
  which will open an empty gnucash instance. If that doesn't crash, then
  try opening your file from the file menu at that point. I suspect this
  won't work though, that it will crash. 
 Indeed - had tried that early on and it crashes as soon as I try to open
 an account.
  
  2) install version 2.2.9 from squeeze. this may be problematic as it
  may bring in lots of gnome stuff you may not want. I haven't hacked on
  gnucash in a while, so I can't say what the state of 2.2.6 was, but I
  know there were a couple of problem releases for a bit there. It may
  be one of them.
 I was hoping I could simply sneak in gnucash and gnucash-common but you
 are exactly right - lots of dependencies from testing that I don't want
 to bring into this image which needs to be stable for hundreds if not
 thousands of virtual desktops.
  
  3) get on #gnucash on irc.gnome.org and ask there. The channel can be
  pretty slow, so you'll have to lurk around for a while. Those guys can
  probably figure it out, but be prepared to defend your reasons for not
  moving up to 2.2.9, the current release.
  
  4) build gnucash from source. This isn't as hard as you might
  think. do apt-get build-dep gnucash and start there. you'll probably
  want to use the --enable-opt-style-install to put it in a different
  path to keep from mixing up with dpkg. 
 Given the need to maintain this in some sane way I think this will be
 our only real option until 2.2.9 hits stable.  Off to review how to
 build debs! Thanks very much - John
snip
Argh!!! This is getting very frustrating - probably all my ignorance.  I
rebuilt the debs and still get the same segfaults.  Here's what I did
(from our internal docs):

Some of the steps need to be done as root so we will need to create a
root console.  Install the needed packages for building
apt-get -t lenny-backports install devscripts build-essential
Edit /etc/apt/sources.list by adding a Lenny Backports source repository
such as the following:
deb-src http://www.backports.org/debian/ lenny-backports main contrib
non-free
Make apt aware of the repository:
apt-get update
Other steps MUST not be done by root so we need another user console to
do the following steps.
We next need to download the source and rebuild it
mkdir /data/Tech/download/gnucash
cd /data/Tech/download/gnucash
apt-get -t lenny-backports source gnucash gnucash-common
We need to install dependencies and this must be done as root so return
to the root console and do:
cd /data/Tech/download/gnucash
apt-get -t lenny-backports build-dep gnucash gnucash-common
Return to the user console
cd gnucash-2.2.6
debuild -us -uc
cd ..
The two .deb files should be in this directory and can be installed
where needed


I then installed them with dpkg -i. It clearly stated it was replacing
gnucash and gnucash common:

jasiii:/data/download/gnucash# ls
gnucash-2.2.6gnucash_2.2.6-2_amd64.changes
gnucash_2.2.6-2.diff.gz  gnucash_2.2.6.orig.tar.gz
gnucash_2.2.6-2_amd64.build  gnucash_2.2.6-2_amd64.deb
gnucash_2.2.6-2.dsc  gnucash-common_2.2.6-2_all.deb
jasiii:/data/download/gnucash# dpkg -i *.deb
(Reading database ... 191519 files and directories currently installed.)
Preparing to replace gnucash 2.2.6-2 (using
gnucash_2.2.6-2_amd64.deb) ...
Unpacking replacement gnucash ...
Preparing to replace gnucash-common 2.2.6-2 (using
gnucash-common_2.2.6-2_all.deb) ...
Unpacking replacement gnucash-common ...
Setting up gnucash-common (2.2.6-2) ...

What have I done wrong? Thanks - John


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1268698592.5897.45.ca...@family.pacifera.com



Re: Gnucash segfaults

2010-03-15 Thread Andrew Sackville-West
On Mon, Mar 15, 2010 at 08:16:32PM -0400, John A. Sullivan III wrote:
 On Mon, 2010-03-15 at 18:11 -0400, John A. Sullivan III wrote:
  On Mon, 2010-03-15 at 12:00 -0700, Andrew Sackville-West wrote:
   On Mon, Mar 15, 2010 at 02:06:28PM -0400, John A. Sullivan III wrote:
On Mon, 2010-03-15 at 10:39 -0700, Andrew Sackville-West wrote:
 On Mon, Mar 15, 2010 at 01:34:09PM -0400, John A. Sullivan III wrote:
  Hello, all.  We are in the process of switching from Ubuntu 8.0.4 to
  Debian Lenny plus selected backports (e.g., OpenOffice, IceWeasel).
  Since donig so, GnuCash (2.2.6-2) seg faults every time we try to 
  open
  an account.  Since these are our production financials, you can 
  imagine
  this is quite a problem!
  
  The end of the gnucash trace file in debug mode shows:
 
 Can you please provide output generated by the crash when launching
 gnucash from a terminal.
Alas, there is nothing particularly helpful:
jas...@jasiii:~$ gnucash --debug
gnc.bin-Message: main: binreloc relocation support was disabled at 
configure time.

Found Finance::Quote version 1.13
Segmentation fault
   
   hmmm... okay, a couple of options. 
   
   1) run gnucash from the command line: gnucash --nofile
   which will open an empty gnucash instance. If that doesn't crash, then
   try opening your file from the file menu at that point. I suspect this
   won't work though, that it will crash. 
  Indeed - had tried that early on and it crashes as soon as I try to open
  an account.

hmmm... try this: 

launch gnucash with the --nofile flag. Then head into preferences and
make sure the automatic running of scheduled transactions is turned
off. Edit - Preferences - Scheduled transactions - Run when data
file opened. Make sure that's unchecked. Then open your data file and
see what happens. One of the problems in the past was a crash from
sched txns running automatically. Again, it's been a while for me, so
I'm just guessing...

[...]

 Argh!!! This is getting very frustrating - probably all my ignorance.  I
 rebuilt the debs and still get the same segfaults.  Here's what I did
 (from our internal docs):
 
 Some of the steps need to be done as root so we will need to create a
 root console.  Install the needed packages for building
 apt-get -t lenny-backports install devscripts build-essential
 Edit /etc/apt/sources.list by adding a Lenny Backports source repository
 such as the following:
 deb-src http://www.backports.org/debian/ lenny-backports main contrib
 non-free
 Make apt aware of the repository:
 apt-get update
 Other steps MUST not be done by root so we need another user console to
 do the following steps.
 We next need to download the source and rebuild it
 mkdir /data/Tech/download/gnucash
 cd /data/Tech/download/gnucash
 apt-get -t lenny-backports source gnucash gnucash-common

what output did the above command produce? 

 We need to install dependencies and this must be done as root so return
 to the root console and do:
 cd /data/Tech/download/gnucash
 apt-get -t lenny-backports build-dep gnucash gnucash-common
 Return to the user console
 cd gnucash-2.2.6
 debuild -us -uc
 cd ..
 The two .deb files should be in this directory and can be installed
 where needed
 
 
 I then installed them with dpkg -i. It clearly stated it was replacing
 gnucash and gnucash common:
 
 jasiii:/data/download/gnucash# ls
 gnucash-2.2.6gnucash_2.2.6-2_amd64.changes
 gnucash_2.2.6-2.diff.gz  gnucash_2.2.6.orig.tar.gz
 gnucash_2.2.6-2_amd64.build  gnucash_2.2.6-2_amd64.deb
 gnucash_2.2.6-2.dsc  gnucash-common_2.2.6-2_all.deb

these are all version 2.2.6, the same one that was giving you
trouble. You need the source for 2.2.9...

A


signature.asc
Description: Digital signature


Re: Gnucash segfaults

2010-03-15 Thread John A. Sullivan III
On Mon, 2010-03-15 at 18:09 -0700, Andrew Sackville-West wrote:
 On Mon, Mar 15, 2010 at 08:16:32PM -0400, John A. Sullivan III wrote:
  On Mon, 2010-03-15 at 18:11 -0400, John A. Sullivan III wrote:
   On Mon, 2010-03-15 at 12:00 -0700, Andrew Sackville-West wrote:
On Mon, Mar 15, 2010 at 02:06:28PM -0400, John A. Sullivan III wrote:
 On Mon, 2010-03-15 at 10:39 -0700, Andrew Sackville-West wrote:
  On Mon, Mar 15, 2010 at 01:34:09PM -0400, John A. Sullivan III 
  wrote:
   Hello, all.  We are in the process of switching from Ubuntu 8.0.4 
   to
   Debian Lenny plus selected backports (e.g., OpenOffice, 
   IceWeasel).
   Since donig so, GnuCash (2.2.6-2) seg faults every time we try to 
   open
   an account.  Since these are our production financials, you can 
   imagine
   this is quite a problem!
   
   The end of the gnucash trace file in debug mode shows:
  
  Can you please provide output generated by the crash when launching
  gnucash from a terminal.
 Alas, there is nothing particularly helpful:
 jas...@jasiii:~$ gnucash --debug
 gnc.bin-Message: main: binreloc relocation support was disabled at 
 configure time.
 
 Found Finance::Quote version 1.13
 Segmentation fault

hmmm... okay, a couple of options. 

1) run gnucash from the command line: gnucash --nofile
which will open an empty gnucash instance. If that doesn't crash, then
try opening your file from the file menu at that point. I suspect this
won't work though, that it will crash. 
   Indeed - had tried that early on and it crashes as soon as I try to open
   an account.
 
 hmmm... try this: 
 
 launch gnucash with the --nofile flag. Then head into preferences and
 make sure the automatic running of scheduled transactions is turned
 off. Edit - Preferences - Scheduled transactions - Run when data
 file opened. Make sure that's unchecked. Then open your data file and
 see what happens. One of the problems in the past was a crash from
 sched txns running automatically. Again, it's been a while for me, so
 I'm just guessing...
 
Thanks very much; I really do appreciate the help.  My problem is no
opening the data file; that opens fine.  It is opening an account.
Nonetheless, I tried this and had the same problem.
 [...]
 
  Argh!!! This is getting very frustrating - probably all my ignorance.  I
  rebuilt the debs and still get the same segfaults.  Here's what I did
  (from our internal docs):
  
  Some of the steps need to be done as root so we will need to create a
  root console.  Install the needed packages for building
  apt-get -t lenny-backports install devscripts build-essential
  Edit /etc/apt/sources.list by adding a Lenny Backports source repository
  such as the following:
  deb-src http://www.backports.org/debian/ lenny-backports main contrib
  non-free
  Make apt aware of the repository:
  apt-get update
  Other steps MUST not be done by root so we need another user console to
  do the following steps.
  We next need to download the source and rebuild it
  mkdir /data/Tech/download/gnucash
  cd /data/Tech/download/gnucash
  apt-get -t lenny-backports source gnucash gnucash-common
 
 what output did the above command produce? 
 
  We need to install dependencies and this must be done as root so return
  to the root console and do:
  cd /data/Tech/download/gnucash
  apt-get -t lenny-backports build-dep gnucash gnucash-common
  Return to the user console
  cd gnucash-2.2.6
  debuild -us -uc
  cd ..
  The two .deb files should be in this directory and can be installed
  where needed
  
  
  I then installed them with dpkg -i. It clearly stated it was replacing
  gnucash and gnucash common:
  
  jasiii:/data/download/gnucash# ls
  gnucash-2.2.6gnucash_2.2.6-2_amd64.changes
  gnucash_2.2.6-2.diff.gz  gnucash_2.2.6.orig.tar.gz
  gnucash_2.2.6-2_amd64.build  gnucash_2.2.6-2_amd64.deb
  gnucash_2.2.6-2.dsc  gnucash-common_2.2.6-2_all.deb
 
 these are all version 2.2.6, the same one that was giving you
 trouble. You need the source for 2.2.9...
 
 A
Well, perhaps I have a misunderstanding here.  If I try to build 2.2.9
(what I first tried), running apt-get build-dep wants to bring in all
the libraries from testing that I'm trying to avoid; I might as well
install from the testing repository.

On the other hand, I thought that by compiling 2.2.6 with the newer
libglib2 libraries, it would call them properly and no longer seg fault.
Am I going about this the wrong way? Thanks again - John


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1268705187.5897.51.ca...@family.pacifera.com