[GNC] Help required for debugging gnucash to find Segmentation fault error when saving from mysql to xml

2018-09-20 Thread Uli Hansen

Dear All,

please be aware that I run gdb the first time in my life to find this 
problem.


When saving from mysql to xml I get a segmentation fault error:

Thread 1 "gnucash" received signal SIGSEGV, Segmentation fault.
g_date_time_add (datetime=0x0, timespan=0) at 
/build/glib2.0-7ZsPUq/glib2.0-2.48.2/./glib/gdatetime.c:1074
1074    /build/glib2.0-7ZsPUq/glib2.0-2.48.2/./glib/gdatetime.c: No such 
file or directory


I already comiled the sources from 2.6.12 to dive into this problem.


I assume that the cause of my error is an empty date field somewhere in 
my database.


In order to find the proper table and the id, I want to debug with gdb.

But honestly it's quiet complicated and I'm not familiar with gdb.

Can somebody give me a hint where to set a breakpoint. Which function is 
called to convert from mysql to xml?


Which file/function could be a good startpoint for me?

Many thanks in advance.

Uli


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

[GNC] Crash when saving mysql to xml

2018-08-29 Thread Uli Hansen

Hallo,

for some years I had my gnucash-data on a mysql database. Now I want to 
move back to xml for different reasons.


When saving to xml, gnc is crashing.

Searching the mailing list was not successful.

Unfotunately I'm not a Linux or  C expert but I tried to collect some 
information



OS: Linux version 4.13.0-39-generic (buildd@lcy01-amd64-024) (gcc 
version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)) 
#44~16.04.1-Ubuntu SMP Thu Apr 5 16:43:10 UTC 2018


GNC: from ubuntu packages

    GnuCash 2.6.12
    Dieses Programm wurde aus Version ed11f6d+ am 2016-04-18 erstellt


gnucash.trace:

gnucash --debug --extra

When the program crashes, I ge the following messages:

* 23:57:42  INFO  [gnc_account_dom_tree_create] lot list=(nil)
* 23:57:42  INFO  [gnc_account_dom_tree_create] lot list=(nil)
* 23:57:42  INFO  [gnc_account_dom_tree_create] lot list=(nil)
* 23:57:42  INFO  [gnc_account_dom_tree_create] lot list=(nil)
* 23:57:42  INFO  [gnc_account_dom_tree_create] lot list=(nil)


gdb gnucash:

[New Thread 0x7fffc77d6700 (LWP 7632)]
[New Thread 0x7fffc2912700 (LWP 7633)]
[New Thread 0x7fffc2111700 (LWP 7634)]
[New Thread 0x7fffc1910700 (LWP 7635)]
[Thread 0x7fffc1910700 (LWP 7635) exited]
[Thread 0x7fffc2111700 (LWP 7634) exited]
[Thread 0x7fffc77d6700 (LWP 7632) exited]
[New Thread 0x7fffc77d6700 (LWP 7636)]
[New Thread 0x7fffc2111700 (LWP 7637)]

Thread 1 "gnucash" received signal SIGSEGV, Segmentation fault.
g_date_time_add (datetime=0x0, timespan=0) at 
/build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gdatetime.c:1074
1074    /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gdatetime.c: No such 
file or directory.



If more information are necessary, please let me know how to provide it.

Thanks in advance

Uli

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.