Re: Make fails

2015-12-03 Thread John Ralls

> On Dec 3, 2015, at 4:22 PM, Alex Aycinena  wrote:
> 
> John,
> 
> Your last commit fixed the failure related to test-xml-pricedb. So make 
> worked and make check almost worked. At the end I go the following, 3 odd 
> failures:
> 
> PASS: test-load-module
> echo '/home/gnucash-dev/gitcheckouts/gnucash-clean-build/gnc-guile --debug -l 
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/report/report-system/test/test-collectors.scm
>  -c "(exit (run-test))"' > test-collectors
> chmod a+x test-collectors
> FAIL: test-collectors
> echo '/home/gnucash-dev/gitcheckouts/gnucash-clean-build/gnc-guile --debug -l 
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/report/report-system/test/test-list-extras.scm
>  -c "(exit (run-test))"' > test-list-extras
> chmod a+x test-list-extras
> FAIL: test-list-extras
> echo '/home/gnucash-dev/gitcheckouts/gnucash-clean-build/gnc-guile --debug -l 
> /home/gnucash-dev/gitcheckouts/gnucash-clean/src/report/report-system/test/test-test-extras.scm
>  -c "(exit (run-test))"' > test-test-extras
> chmod a+x test-test-extras
> FAIL: test-test-extras
> 
> Testsuite summary for GnuCash 2.6.99
> 
> # TOTAL: 5
> # PASS:  2
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  3
> # XPASS: 0
> # ERROR: 0
> 
> See src/report/report-system/test/test-suite.log
> Please report to gnucash-devel@gnucash.org 
> 
> Makefile:882: recipe for target 'test-suite.log' failed
> make[6]: *** [test-suite.log] Error 1
> make[6]: Leaving directory 
> '/home/gnucash-dev/gitcheckouts/gnucash-clean-build/src/report/report-system/test'
> 
> src/report/report-system/test/test-suite.log shows:
> 
> 
> FAIL: test-collectors
> =
> 
> /home/gnucash-dev/gitcheckouts/gnucash-clean-build/gnc-guile: symbol lookup 
> error: /opt/gnucash-git/gnucash-clean/lib/gnucash/libgncmod-backend-xml.so: 
> undefined symbol: gnc_address_xml_initialize
> FAIL test-collectors (exit status: 127)
> 
> FAIL: test-list-extras
> ==
> 
> /home/gnucash-dev/gitcheckouts/gnucash-clean-build/gnc-guile: symbol lookup 
> error: /opt/gnucash-git/gnucash-clean/lib/gnucash/libgncmod-backend-xml.so: 
> undefined symbol: gnc_address_xml_initialize
> FAIL test-list-extras (exit status: 127)
> 
> FAIL: test-test-extras
> ==
> 
> /home/gnucash-dev/gitcheckouts/gnucash-clean-build/gnc-guile: symbol lookup 
> error: /opt/gnucash-git/gnucash-clean/lib/gnucash/libgncmod-backend-xml.so: 
> undefined symbol: gnc_address_xml_initialize
> FAIL test-test-extras (exit status: 127)
> 
> I'm not sure why it is looking in 
> /opt/gnucash-git/gnucash-clean/lib/gnucash/libgncmod-backend-xml.so when I 
> haven't installed the system there yet.
> 
> If I install the system, it runs fine (no seg fault on application exit) and 
> then if I re-run make check, then it runs to completion. It seems like the 
> tests should be doing symbol lookups in the build directory, not the install 
> directory.

Alex,

I’ve noticed make check failures before when GC is installed, but I’ve always 
just assigned it to libtool and run make uninstall to force libtool to look in 
the right place. I think that it’s always an ltdl_opened module, so perhaps 
setting LTDL_LIBRARY_PATH in TEST_ENVIRONMENT would solve the problem.

Regards,
John Ralls
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


[MAINT] Upstream network maintenance expected Monday Dec 7 5-10pm EST

2015-12-03 Thread Derek Atkins
Hi,

My ISP is performing a network restructuring, currently scheduled for
Monday, December 7, around 5pm to 10pm US/EST.  During this time it is
likely that network access to the GnuCash servers will be unavailable.
Exact start time and expected downtime is still TBD.  Once I learn more
I'll let you all know.  It's not really in my hands.

During the outage there will be no access to Email, Archives, Wiki, or
Git commit.

Another thing to note is that as part of the move I'll be losing my IPv6
networking for a while; I expect that will return in January.

If I hear any updates that change this I'll let you all know.

Thanks,

-derek
-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   warl...@mit.eduPGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Make fails

2015-12-03 Thread Alex Aycinena
On Thu, Dec 3, 2015 at 11:41 AM, Alex Aycinena 
wrote:

> On Wed, Dec 2, 2015 at 5:27 PM, John Ralls  wrote:
>
>>
>> Alex,
>>
>> Of course it’s supposed to work! Now it does, though I’m not comfortable
>> with the fix. Moving the include of kvp_frame.hpp to the top of the list
>> implies that there’s something about one of the other headers that confuses
>> gcc. More research required, but at least now make check passes on Linux 64.
>>
>> Regards,
>> John Ralls
>>
>>
> John,
>
> Well, what I meant was whether you had intended for that particular commit
> to fix this problem as well as the make failure.
>
> In any case, the commit you made a few minutes ago changed the failure in
> make clean from what I had previously reported to a new one:
>
>



> Regards,
>
> Alex
>

Oh, and I forgot to mention that the segmentation fault on application exit
is gone.

Alex
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Make fails

2015-12-03 Thread John Ralls

> On Dec 3, 2015, at 11:47 AM, Alex Aycinena  wrote:
> 
> 
> 
> On Thu, Dec 3, 2015 at 11:41 AM, Alex Aycinena  
> wrote:
> On Wed, Dec 2, 2015 at 5:27 PM, John Ralls  wrote:
> 
> Alex,
> 
> Of course it’s supposed to work! Now it does, though I’m not comfortable with 
> the fix. Moving the include of kvp_frame.hpp to the top of the list implies 
> that there’s something about one of the other headers that confuses gcc. More 
> research required, but at least now make check passes on Linux 64.
> 
> Regards,
> John Ralls
> 
> 
> John,
> 
> Well, what I meant was whether you had intended for that particular commit to 
> fix this problem as well as the make failure.
> 
> In any case, the commit you made a few minutes ago changed the failure in 
> make clean from what I had previously reported to a new one:
> 
> 
> 
>  
> Regards,
> 
> Alex
> 
> Oh, and I forgot to mention that the segmentation fault on application exit 
> is gone.

Alex,

Yeah, the segfault is the same one Geert reported.

I don’t see the problem with test-pricedb in Debian stable, so I’m trying F21. 
In the meantime can you run it under gdb and get a stack trace of the crash?

Regards,
John Ralls


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Runtime issues with current master

2015-12-03 Thread John Ralls

> On Dec 2, 2015, at 12:51 AM, Geert Janssens  
> wrote:
> 
> I have done a fresh rebuild of master as of this morning (commit 
> b3cfef70842). While running it I got the following errors:
> 
> 1. It will run, but segfaults when quitting the application. See 
> attached backtrace.
> 
> 2. I tried to create a new file. The assistant completes successfully, 
> however it crashes while saving with this error:
> 
> ./bin/gnucash: symbol lookup error: 
> /kobaltnet/janssege/Development/installs/gnucash/master/lib/gnucash/libgncmod-
> backend-xml.so: undefined symbol: 
> _Z34gnc_prefs_get_file_save_compressedv
> 
> The command was run from 
> /kobaltnet/janssege/Development/installs/gnucash/master which is where 
> my fresh build got installed.
> 


The first crash is fixed, it was from moving #include “gnc-backend-dbi.h” to 
after the obi version check, which naturally didn’t work.

Regards,
John Ralls



___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Make fails

2015-12-03 Thread Alex Aycinena
On Wed, Dec 2, 2015 at 5:27 PM, John Ralls  wrote:

>
> Alex,
>
> Of course it’s supposed to work! Now it does, though I’m not comfortable
> with the fix. Moving the include of kvp_frame.hpp to the top of the list
> implies that there’s something about one of the other headers that confuses
> gcc. More research required, but at least now make check passes on Linux 64.
>
> Regards,
> John Ralls
>
>
John,

Well, what I meant was whether you had intended for that particular commit
to fix this problem as well as the make failure.

In any case, the commit you made a few minutes ago changed the failure in
make clean from what I had previously reported to a new one:

PASS: test-xml-commodity
/home/gnucash-dev/gitcheckouts/gnucash/test-driver: line 107:  7622
Segmentation fault  (core dumped) "$@" > $log_file 2>&1
FAIL: test-xml-pricedb
PASS: test-xml-transaction
PASS: test-xml2-is-file

Testsuite summary for GnuCash 2.6.99

# TOTAL: 13
# PASS:  12
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

See src/backend/xml/test/test-suite.log
Please report to gnucash-devel@gnucash.org

Makefile:1811: recipe for target 'test-suite.log' failed
make[7]: *** [test-suite.log] Error 1
make[7]: Leaving directory
'/home/gnucash-dev/gitcheckouts/gnucash-build/src/backend/xml/test'

The test-xml-pricedb.log file only says:

FAIL test-xml-pricedb (exit status: 139)

The /test-suite.log says pretty much the same:

=
   GnuCash 2.6.99: src/backend/xml/test/test-suite.log
=

# TOTAL: 13
# PASS:  12
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: test-xml-pricedb
==

FAIL test-xml-pricedb (exit status: 139)


I couldn't find the core dump it says it put in a log file (" (core dumped)
"$@" > $log_file 2>&1").

Regards,

Alex
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Make fails

2015-12-03 Thread Alex Aycinena
On Thu, Dec 3, 2015 at 11:54 AM, John Ralls  wrote:

>
>
>
> Alex,
>
> Yeah, the segfault is the same one Geert reported.
>
> I don’t see the problem with test-pricedb in Debian stable, so I’m trying
> F21. In the meantime can you run it under gdb and get a stack trace of the
> crash?
>
> Regards,
> John Ralls
>
>
John,

This is what I did:

cd /home/gnucash-dev/gitcheckouts/gnucash-build
export LT=`pwd`/libtool
cd src/backend/xml/test
$LT --mode=execute gdb test-xml-pricedb

Then:

(gdb) run
Starting program:
/home/gnucash-dev/gitcheckouts/gnucash-build/src/backend/xml/test/.libs/lt-test-xml-pricedb

Missing separate debuginfos, use: dnf debuginfo-install
glibc-2.21-8.fc22.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00449228 in gnc_price_to_dom_tree (tag=0x4574ce "price",
price=0x695590)
at
/home/gnucash-dev/gitcheckouts/gnucash/src/backend/xml/gnc-pricedb-xml-v2.cpp:445
445if (sourcestr && (strlen(sourcestr) != 0))
Missing separate debuginfos, use: dnf debuginfo-install
boost-date-time-1.57.0-6.fc22.x86_64 gc-7.4.2-2.fc22.x86_64
glib2-2.44.1-2.fc22.x86_64 gmp-6.0.0-9.fc22.x86_64
guile-2.0.11-7.fc22.x86_64 libatomic_ops-7.4.2-4.fc22.x86_64
libffi-3.1-7.fc22.x86_64 libgcc-5.1.1-4.fc22.x86_64
libselinux-2.3-10.fc22.x86_64 libstdc++-5.1.1-4.fc22.x86_64
libtool-ltdl-2.4.2-34.fc22.x86_64 libunistring-0.9.4-1.fc22.x86_64
libxml2-2.9.3-1.fc22.x86_64 nss-softokn-freebl-3.21.0-1.1.fc22.x86_64
pcre-8.37-5.fc22.x86_64 xz-libs-5.2.0-2.fc22.x86_64 zlib-1.2.8-7.fc22.x86_64
(gdb) strace
warning: Couldn't determine the static tracepoint marker to probe
Static tracepoint 2 at 0x449228: file
/home/gnucash-dev/gitcheckouts/gnucash/src/backend/xml/gnc-pricedb-xml-v2.cpp,
line 445.

Does this help you? By the way I'm on Fedora 22.

Alex
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Make fails

2015-12-03 Thread John Ralls

> On Dec 3, 2015, at 1:00 PM, Alex Aycinena  wrote:
> 
> John,
> 
> When I put a breakpoint on /gnc-pricedb-xml-v2.cpp:445 and ran the test, it 
> stopped at the break and then I continued several times before the following:
> 
> Breakpoint 1, gnc_price_to_dom_tree (tag=0x4574ce "price", price=0x695590)
> at 
> /home/gnucash-dev/gitcheckouts/gnucash/src/backend/xml/gnc-pricedb-xml-v2.cpp:445
> 445if (sourcestr && (strlen(sourcestr) != 0))
> (gdb) c
> Continuing.
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00449228 in gnc_price_to_dom_tree (tag=0x4574ce "price", 
> price=0x695590)
> at 
> /home/gnucash-dev/gitcheckouts/gnucash/src/backend/xml/gnc-pricedb-xml-v2.cpp:445
> 445if (sourcestr && (strlen(sourcestr) != 0))
> (gdb) p sourcestr
> $3 = (const gchar *) 0x3 
> (gdb) p strlen(sourcestr)
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x746d20ba in strlen () from /lib64/libc.so.6

Alex,

That might be good enough, it pointed out to me that the PriceSource enum had 
one more entry than the source_names array. I’ve fixed that and pushed it, see 
if that does it.

You didn’t want “strace” after the crash, you wanted “bt”.

I couldn’t replicate the crash on F21 so I’m in the process of setting up an 
F23 VM. Odd, though, that everywhere else over-running the array returns NULL 
instead of garbage.

Regards,
John Ralls


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Make fails

2015-12-03 Thread John Ralls

> On Dec 3, 2015, at 1:39 PM, John Ralls  wrote:
> 
> 
>> On Dec 3, 2015, at 1:00 PM, Alex Aycinena  wrote:
>> 
>> John,
>> 
>> When I put a breakpoint on /gnc-pricedb-xml-v2.cpp:445 and ran the test, it 
>> stopped at the break and then I continued several times before the following:
>> 
>> Breakpoint 1, gnc_price_to_dom_tree (tag=0x4574ce "price", price=0x695590)
>>at 
>> /home/gnucash-dev/gitcheckouts/gnucash/src/backend/xml/gnc-pricedb-xml-v2.cpp:445
>> 445if (sourcestr && (strlen(sourcestr) != 0))
>> (gdb) c
>> Continuing.
>> 
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x00449228 in gnc_price_to_dom_tree (tag=0x4574ce "price", 
>>price=0x695590)
>>at 
>> /home/gnucash-dev/gitcheckouts/gnucash/src/backend/xml/gnc-pricedb-xml-v2.cpp:445
>> 445if (sourcestr && (strlen(sourcestr) != 0))
>> (gdb) p sourcestr
>> $3 = (const gchar *) 0x3 
>> (gdb) p strlen(sourcestr)
>> 
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x746d20ba in strlen () from /lib64/libc.so.6
> 
> Alex,
> 
> That might be good enough, it pointed out to me that the PriceSource enum had 
> one more entry than the source_names array. I’ve fixed that and pushed it, 
> see if that does it.
> 
> You didn’t want “strace” after the crash, you wanted “bt”.
> 
> I couldn’t replicate the crash on F21 so I’m in the process of setting up an 
> F23 VM. Odd, though, that everywhere else over-running the array returns NULL 
> instead of garbage.

Won’t crash for me on F23 either, so it’s down to you testing the last push.

Regards,
John Ralls


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Make fails

2015-12-03 Thread Alex Aycinena
John,

When I put a breakpoint on /gnc-pricedb-xml-v2.cpp:445 and ran the test, it
stopped at the break and then I continued several times before the
following:

Breakpoint 1, gnc_price_to_dom_tree (tag=0x4574ce "price", price=0x695590)
at
/home/gnucash-dev/gitcheckouts/gnucash/src/backend/xml/gnc-pricedb-xml-v2.cpp:445
445if (sourcestr && (strlen(sourcestr) != 0))
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x00449228 in gnc_price_to_dom_tree (tag=0x4574ce "price",
price=0x695590)
at
/home/gnucash-dev/gitcheckouts/gnucash/src/backend/xml/gnc-pricedb-xml-v2.cpp:445
445if (sourcestr && (strlen(sourcestr) != 0))
(gdb) p sourcestr
$3 = (const gchar *) 0x3 
(gdb) p strlen(sourcestr)

Program received signal SIGSEGV, Segmentation fault.
0x746d20ba in strlen () from /lib64/libc.so.6

Alex
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Make fails

2015-12-03 Thread Alex Aycinena
John,

Your last commit fixed the failure related to test-xml-pricedb. So make
worked and make check almost worked. At the end I go the following, 3 odd
failures:

PASS: test-load-module
echo '/home/gnucash-dev/gitcheckouts/gnucash-clean-build/gnc-guile --debug
-l
/home/gnucash-dev/gitcheckouts/gnucash-clean/src/report/report-system/test/test-collectors.scm
-c "(exit (run-test))"' > test-collectors
chmod a+x test-collectors
FAIL: test-collectors
echo '/home/gnucash-dev/gitcheckouts/gnucash-clean-build/gnc-guile --debug
-l
/home/gnucash-dev/gitcheckouts/gnucash-clean/src/report/report-system/test/test-list-extras.scm
-c "(exit (run-test))"' > test-list-extras
chmod a+x test-list-extras
FAIL: test-list-extras
echo '/home/gnucash-dev/gitcheckouts/gnucash-clean-build/gnc-guile --debug
-l
/home/gnucash-dev/gitcheckouts/gnucash-clean/src/report/report-system/test/test-test-extras.scm
-c "(exit (run-test))"' > test-test-extras
chmod a+x test-test-extras
FAIL: test-test-extras

Testsuite summary for GnuCash 2.6.99

# TOTAL: 5
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  3
# XPASS: 0
# ERROR: 0

See src/report/report-system/test/test-suite.log
Please report to gnucash-devel@gnucash.org

Makefile:882: recipe for target 'test-suite.log' failed
make[6]: *** [test-suite.log] Error 1
make[6]: Leaving directory
'/home/gnucash-dev/gitcheckouts/gnucash-clean-build/src/report/report-system/test'

src/report/report-system/test/test-suite.log shows:


FAIL: test-collectors
=

/home/gnucash-dev/gitcheckouts/gnucash-clean-build/gnc-guile: symbol lookup
error: /opt/gnucash-git/gnucash-clean/lib/gnucash/libgncmod-backend-xml.so:
undefined symbol: gnc_address_xml_initialize
FAIL test-collectors (exit status: 127)

FAIL: test-list-extras
==

/home/gnucash-dev/gitcheckouts/gnucash-clean-build/gnc-guile: symbol lookup
error: /opt/gnucash-git/gnucash-clean/lib/gnucash/libgncmod-backend-xml.so:
undefined symbol: gnc_address_xml_initialize
FAIL test-list-extras (exit status: 127)

FAIL: test-test-extras
==

/home/gnucash-dev/gitcheckouts/gnucash-clean-build/gnc-guile: symbol lookup
error: /opt/gnucash-git/gnucash-clean/lib/gnucash/libgncmod-backend-xml.so:
undefined symbol: gnc_address_xml_initialize
FAIL test-test-extras (exit status: 127)

I'm not sure why it is looking in
/opt/gnucash-git/gnucash-clean/lib/gnucash/libgncmod-backend-xml.so when I
haven't installed the system there yet.

If I install the system, it runs fine (no seg fault on application exit)
and then if I re-run make check, then it runs to completion. It seems like
the tests should be doing symbol lookups in the build directory, not the
install directory.

Regards,

Alex
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel