> Could you do "p linenum" in gdb at that point? You might have to use
> "up" to go up a few frames before you can print it. Then, show me
> what line is in your ledger file at that line number.
>
> Thanks! John
Does this help anymore?
(gdb) run -v
Starting program: /Users/phil/src/contrib/ledger/ledger -v
Reading symbols for shared libraries ++++++++++++... done
0ms [INFO] Ledger starting
6ms [INFO] Parsing file '/Users/phil/.ledgerrc'
Ledger master-0-g4d8fba5, the command-line accounting tool
Copyright (c) 2003-2009, John Wiegley. All rights reserved.
This program is made available under the terms of the BSD Public
License.
See LICENSE file included with the distribution for details and
disclaimer.
9ms [INFO] Parsing file '/Users/phil/Documents/Finance/Ledger/
ledger.dat'
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x0008ff20 in ledger::(anonymous
namespace)::instance_t::general_directive (this=0xbfffc01c,
line=0xbfffc064 "\f") at src/textual.cc:665
665 switch (*p) {
(gdb) bt
#0 0x0008ff20 in ledger::(anonymous
namespace)::instance_t::general_directive (this=0xbfffc01c,
line=0xbfffc064 "\f") at src/textual.cc:665
#1 0x0008eeec in ledger::(anonymous
namespace)::instance_t::read_next_directive (this=0xbfffc01c) at src/
textual.cc:375
#2 0x0008f0f5 in ledger::(anonymous namespace)::instance_t::parse
(this=0xbfffc01c) at src/textual.cc:216
#3 0x0008fa59 in ledger::journal_t::parse (this=0xd011d0,
i...@0xbfffc600, sessi...@0xd00fb0, master=0xd01160,
original_file=0xd021e8) at src/textual.cc:1154
#4 0x0006f863 in ledger::session_t::read_journal (this=0xd00fb0,
i...@0xbfffc600, pathna...@0xd021e8, master=0xd01160) at src/session.cc:
87
#5 0x0006fe05 in ledger::session_t::read_journal (this=0xd00fb0,
pathna...@0xd021e8, master=0xd01160) at src/session.cc:97
#6 0x00070553 in ledger::session_t::read_data (this=0xd00fb0,
master_accou...@0xbfffeb00) at src/session.cc:138
#7 0x00006927 in ledger::global_scope_t::read_journal_files
(this=0xd00db0) at src/global.cc:120
#8 0x000027bd in main (argc=2, argv=0xbffff2e8, envp=0xbffff2f4) at
src/main.cc:118
Regards,
Phil