Re: Re: [Kmymoney2-user] ofx
ace jones <[email protected]> Sat, 24 Sep 2005 22:15:50 -0700
| Newsgroups | gmane.comp.finance.libofx.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 2005-09-24 at 21:04, Benoit Grégoire wrote:
> tree.hh is software maintained by http://www.aei.mpg.de/~peekas/tree/. We
> should look if there is an update, I don't mind udating it, but I'd like to
> avoid patching it in libofx.
I tried bringing in the latest tree.hh. Unfortunately, the first file I
tested ofxdump on hung in tree.hh!! The backtrace is below. This is an
integer underflow problem. operator+=(unsigned) is getting passed a
bogus value, which is (unsigned)(-2), because add_container gets the
number_of_siblings and subtracts 2. In this case there are 0 siblings,
so -2 gets sent in.
Unfortunately, I have no idea why it's number_of_siblings-2 here, so
Benoit, you'll probably have to take a look.
#0 tree<OfxGenericContainer*,
std::allocator<tree_node_<OfxGenericContainer*> >
>::sibling_iterator::operator+=(unsigned) (this=0xbfffe790,
num=3390540005) at tree.hh:2030
#1 0x400291b4 in
OfxMainContainer::add_container(OfxTransactionContainer*)
(this=0x8177288, container=0x8181710) at ofx_container_main.cpp:133
#2 0x4002cac1 in OfxTransactionContainer::add_to_main_tree()
(this=0x8181710) at ofx_container_transaction.cpp:84
#3 0x40036fe7 in
OFXApplication::endElement(SGMLApplication::EndElementEvent const&)
(this=0x8069510, event=@0xbfffe8e0) at ofx_sgml.cpp:258
#4 0x4014298f in
OpenSP::GenericEventHandler::endElement(OpenSP::EndElementEvent*) ()
from /usr/lib/libosp.so.3
#5 0x401c3902 in OpenSP::Parser::acceptEndTag(OpenSP::EndElementEvent*)
() from /usr/lib/libosp.so.3
#6 0x401bef4e in OpenSP::Parser::doContent() () from
/usr/lib/libosp.so.3
#7 0x4015dd1e in OpenSP::Parser::parseAll(OpenSP::EventHandler&, int
volatile const*) () from /usr/lib/libosp.so.3
#8 0x40188f8d in OpenSP::SgmlParser::parseAll(OpenSP::EventHandler&,
int volatile const*) () from /usr/lib/libosp.so.3
#9 0x4015ffe3 in OpenSP::ParserApp::parseAll(OpenSP::SgmlParser&,
OpenSP::EventHandler&, int volatile const*) () from /usr/lib/libosp.so.3
#10 0x40161df5 in OpenSP::ParserEventGenerator::run(SGMLApplication&) ()
from /usr/lib/libosp.so.3
#11 0x40034ac2 in ofx_proc_sgml(LibofxContext*, int, char**)
(libofx_context=0x804f060, argc=3, argv=0xbfffefa0) at ofx_sgml.cpp:360
#12 0x40024ad2 in ofx_proc_file (ctx=0x804f060, p_filename=0x804f028
"ofx/s10ofxdl.qfx") at ofx_preproc.cpp:173
#13 0x40022a43 in libofx_proc_file (p_libofx_context=0x804f060,
p_filename=0x804f028 "ofx/s10ofxdl.qfx",
p_file_type=AUTODETECT) at file_preproc.cpp:90
#14 0x0804b2da in main (argc=2, argv=0xbffff794) at ofxdump.cpp:413
</Ace>
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php