2023-08-29 GnuCash IRC logs

00:18:17 *** NoobAlice has quit IRC
01:38:21 *** fell has quit IRC
01:39:37 *** fell has joined #gnucash
01:39:38 *** ChanServ sets mode: +o fell
01:46:09 *** gandalf has joined #gnucash
03:01:25 *** gandalf1 has joined #gnucash
03:01:52 *** gandalf has quit IRC
03:01:52 *** gandalf1 is now known as gandalf
03:38:09 *** gandalf has quit IRC
03:38:54 *** gandalf has joined #gnucash
03:44:59 *** bertbob has quit IRC
03:50:09 *** bertbob has joined #gnucash
03:50:09 *** ChanServ sets mode: +v bertbob
03:50:21 *** gjanssens has joined #gnucash
03:50:21 *** ChanServ sets mode: +o gjanssens
07:17:20 *** Aussie_matt has joined #gnucash
09:01:00 *** jwhite has joined #gnucash
09:01:01 *** ChanServ sets mode: +v jwhite
09:08:01 *** nevivurn has joined #gnucash
09:08:01 *** ChanServ sets mode: +v nevivurn
10:13:40 *** Aussie_matt has quit IRC
10:27:13 <Robert847> Regarding debug tools, since I am running Jammy, Ubuntu says that I can configure and run gdb to export DEBUGINFOD_URLS="https://debuginfod.ubuntu.com"then set debuginfod enabled on according to https://ubuntu.com/server/docs/service-debuginfod. so I will try that.
10:37:15 <Robert847> I looked at the definition schedxactions ( in SQL section of wiki.gnucash.org and it appears that I probably cannot find my problem by using the SX editor to examine the transactions as every field is simply defined as char(32), text, date or integer.
10:40:34 <Robert847> I need to eat breakfast before I start
10:43:58 *** palerider has joined #gnucash
10:45:16 *** palerider has left #gnucash
12:16:26 *** mydogsnameisrudy has joined #gnucash
12:20:03 *** mydogsnameisrudy has quit IRC
13:12:02 *** ArtGravity has joined #gnucash
13:12:02 *** ChanServ sets mode: +v ArtGravity
13:45:14 *** warlord has quit IRC
13:51:43 *** jwhite has quit IRC
14:01:01 *** gandalf1 has joined #gnucash
14:01:29 *** gandalf has quit IRC
14:01:29 *** gandalf1 is now known as gandalf
14:28:38 <Robert847> I have started my debugging session, hopefully with debugging symbols this time. gdb reports:
14:28:42 <Robert847> (gdb) continue
14:28:42 <Robert847> Continuing.
14:28:42 <Robert847> Thread 1 "gnucash" received signal SIGSEGV, Segmentation fault.
14:28:42 <Robert847> 0x00007ff5cfca94d6 in gnc_sx_instance_model_effect_change () from /usr/lib/x86_64-linux-gnu/gnucash/libgnc-app-utils.so
14:29:49 <Robert847> Anyone here able to help with this today
14:30:03 <jralls> I'm here.
14:30:42 <jralls> If it doesn't give the line number you don't have symbols.
14:33:04 <Robert847> hmmmn. I do have the environment variable DEBUGINFOD_URLS=https://debuginfod.ubuntu.com
14:33:04 <Robert847> and I did tell gdb to (gdb) set debuginfod enabled on
14:33:04 <Robert847> so I must have missed something elsee
14:34:56 <Robert847> According to https://ubuntu.com/server/docs/service-debuginfod, that was supposed to work
14:35:04 <jralls> Not necessarily. Maybe there aren't debugging symbols for gnucash. OTOH, if you got it set up right gdb should have spewed out a bunch of messages about retrieving the symbols, IIRC right after attaching.
14:37:15 <Robert847> after attaching gdb responded thus:
14:37:17 <Robert847> gdb) attach 93512
14:37:18 <Robert847> Attaching to process 93512
14:37:18 <Robert847> [New LWP 93516]
14:37:18 <Robert847> [New LWP 93518]
14:37:18 <Robert847> [New LWP 93519]
14:37:18 <Robert847> [New LWP 93533]
14:37:18 <Robert847> [New LWP 93534]
14:37:18 <Robert847> [New LWP 93535]
14:37:18 <Robert847> [New LWP 93536]
14:37:18 <Robert847> [New LWP 93557]
14:37:19 <Robert847> [New LWP 93558]
14:37:21 <Robert847> [New LWP 93560]
14:37:22 <Robert847> [New LWP 93561]
14:37:23 <Robert847> [New LWP 93562]
14:37:24 <Robert847> [New LWP 93564]
14:37:25 <Robert847> [New LWP 94494]
14:37:27 <Robert847> [Thread debugging using libthread_db enabled]
14:37:29 <Robert847> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
14:37:31 <Robert847> 0x00007ff5ce918d7f in __GI___poll (fds=0x556138769680, nfds=11, timeout=10000) at ../sysdeps/unix/sysv/linux/poll.c:29
14:37:33 <Robert847> 29 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
14:40:11 <jralls> Showing that it has kernel symbols. Does ~/.cache/debuginfod_client/ exist and contain anything?
14:44:33 <jralls> Are you sure that you have debuginfod installed? You can check with `sudo dpkg-query -l | grep debuginfod`.
14:47:57 <Robert847> that query responded:
14:48:31 <Robert847> sudo dpkg-query -l | grep debuginfod
14:48:31 <Robert847> [sudo] password for henry2:
14:48:31 <Robert847> ii libdebuginfod-common 0.186-1build1 all configuration to enable the Debian debug info server
14:48:31 <Robert847> ii libdebuginfod1:amd64 0.186-1build1 amd64 library to interact with debuginfod (development files)
14:49:11 <Robert847> is that all of it or is it incomplete?
14:49:57 <Robert847> So far I have not tracked down the cache
14:51:02 <jralls> I think that's not sufficient, so try `sudo apt install debuginfod`
14:51:37 <jralls> If everything is already there then it will say so and not do anything.
14:52:53 <Robert847> That triggered an installation, so now i have it
14:54:35 <Robert847> Should I start over or is there sometning else to try first?
14:55:52 <jralls> You don't need to start over, just detach, quit, and restart gdb. You should get some messages about reading symbols.
14:56:37 <jralls> Oh, actually, gnucash is crashed so you do need to start over.
14:57:15 <Robert847> I was about to ask!
14:57:47 <Robert847> gdb is still running
14:58:11 <jralls> Do `gdb gnucash` first, if it doesn't spit out "Reading symbols for program" then there's still more to look for.
14:59:53 <Robert847> Ididn't enter that command correctly. should I quit first?
15:01:07 <jralls> Yes, you need to restart gnucash.
15:01:51 <jralls> Oh, but first, did the install say anything about starting debuginfod?
15:02:31 <jralls> Sorry, restart gdb.
15:05:03 <Robert847> I need to type more carefully. another try to start gnucash with the correct data file
15:06:33 <jralls> Meh, you can change the file after gnucash is started. Focus on the symbols.
15:14:38 <Robert847> here is the complete terminal output:
15:14:42 <Robert847> henry2@henry2-HP-ProBook-4540s:~$ pidof gnucash
15:14:43 <Robert847> 157281
15:14:43 <Robert847> henry2@henry2-HP-ProBook-4540s:~$ sudo gdb 2>&1 | tee gdb-gnucash-3.txt
15:14:43 <Robert847> [sudo] password for henry2:
15:14:43 <Robert847> GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
15:14:43 <Robert847> Copyright (C) 2022 Free Software Foundation, Inc.
15:14:43 <Robert847> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
15:14:43 <Robert847> This is free software: you are free to change and redistribute it.
15:14:43 <Robert847> There is NO WARRANTY, to the extent permitted by law.
15:14:43 <Robert847> Type "show copying" and "show warranty" for details.
15:14:44 <Robert847> This GDB was configured as "x86_64-linux-gnu".
15:14:45 <Robert847> Type "show configuration" for configuration details.
15:14:46 <Robert847> For bug reporting instructions, please see:
15:14:47 <Robert847> <https://www.gnu.org/software/gdb/bugs/>.
15:14:48 <Robert847> Find the GDB manual and other documentation resources online at:
15:14:49 <Robert847> <http://www.gnu.org/software/gdb/documentation/>.
15:14:50 <Robert847> For help, type "help".
15:14:51 <Robert847> Type "apropos word" to search for commands related to "word".
15:14:52 <Robert847> (gdb) handle SIG33 pass nostop noprint
15:14:53 <Robert847> Signal Stop Print Pass to program Description
15:14:54 <Robert847> SIG33 No No Yes Real-time event 33
15:14:56 <Robert847> (gdb) set pagination 0
15:14:57 <Robert847> (gdb) attach 157281
15:14:58 <Robert847> Attaching to process 157281
15:14:59 <Robert847> [New LWP 157284]
15:15:00 <Robert847> [New LWP 157286]
15:15:01 <Robert847> [New LWP 157287]
15:15:03 <Robert847> [New LWP 157301]
15:15:05 <Robert847> [New LWP 157302]
15:15:06 <Robert847> [New LWP 157303]
15:15:07 <Robert847> [New LWP 157304]
15:15:08 <Robert847> [New LWP 157321]
15:15:10 <Robert847> [New LWP 157322]
15:15:12 <Robert847> [New LWP 157324]
15:15:13 <Robert847> [New LWP 157325]
15:15:14 <Robert847> [New LWP 157326]
15:15:15 <Robert847> [New LWP 157332]
15:15:17 <Robert847> [Thread debugging using libthread_db enabled]
15:15:19 <Robert847> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
15:15:21 <Robert847> 0x00007ff3b4918d7f in __GI___poll (fds=0x5589c9e02540, nfds=11, timeout=10000) at ../sysdeps/unix/sysv/linux/poll.c:29
15:15:23 <Robert847> 29 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
15:15:25 <Robert847> (gdb) continue
15:15:26 <Robert847> Continuing.
15:15:27 <Robert847> Thread 1 "gnucash" received signal SIGSEGV, Segmentation fault.
15:15:29 <Robert847> 0x00007ff3b52064d6 in gnc_sx_instance_model_effect_change () from /usr/lib/x86_64-linux-gnu/gnucash/libgnc-app-utils.so
15:15:32 <Robert847> (gdb)
15:15:33 <Robert847> not easy to read
15:16:18 <Robert847> I still need to do something else
15:17:31 <jralls> Yes. Just test with `gdb gnucash` until you get gdb to say "Reading symbols for gnucash", much quicker.
15:20:44 <jralls> Did you put "set debuginfod enabled on" in ~/.gdb?
15:21:10 <jralls> What does gdb --version say?
15:21:34 <Robert847> since gdb is still running, what command should I use?
15:21:57 <jralls> quit gdb.
15:24:24 <Robert847> Oh, I need to automate that so I don't forget that step. I think that I need to create .gdb or edit something
15:25:35 <Robert847> I need my hand held with Linux
15:26:33 <jralls> no, don't do that.
15:27:44 <Robert847> sorry. I have already quit gdb
15:28:57 <jralls> Good. I meant don't mess with .gdb. gdb will prompt you about using debuginfo, see the sample session on the debuginfod page you referenced earlier.
15:30:12 <jralls> Are you sure that $DEBUGINFOD_URLS is set? Does `echo $DEBUGINFOD_URLS` spit out https://debuginfod.ubuntu.com ?
15:33:43 <Robert847> yes, echo $DEBUGINFOD_URLS does spit out that url
15:34:24 <jralls> Does `gdb --version` say that it's 12.someting?
15:35:40 <Robert847> 12.1
15:36:59 <Robert847> I will try gdb gnucash
15:38:42 <Robert847> this time it asks Enable debuginfod for this session? (y or [n]) Finally I see that prompt!
15:40:02 <Robert847> Since I only use that here I could make it permanent
15:41:23 <Robert847> this is what happened:
15:41:25 <Robert847> Enable debuginfod for this session? (y or [n]) y
15:41:26 <Robert847> Debuginfod has been enabled.
15:41:26 <Robert847> To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
15:41:26 <Robert847> Downloading 0.40 MB separate debug info for /home/henry2/gnucash
15:41:26 <Robert847> Reading symbols from /home/henry2/.cache/debuginfod_client/e8dc0dbed3ecd5c1b8ffc28a60555133dbe67c7c/debuginfo...
15:41:26 <Robert847> Downloading 0.47 MB separate debug info for /home/henry2/.cache/debuginfod_client/e8dc0dbed3ecd5c1b8ffc28a60555133dbe67c7c/debuginfo
15:43:21 <jralls> woo-hoo! Now start gnucash and crash it.
15:43:51 <Robert847> I will!
15:45:26 <Robert847> I have to remember to attach before crashing
15:48:07 <Robert847> I got ahead of myself anyway. I didn't use dudo to start gdb and now it won't let me attach
15:48:17 <Robert847> sudo?
15:49:38 <Robert847> looks like the easiest thing to do is sudo spelled with an s
15:52:13 <Robert847> this time I didn't get the Enable debuginfod for this session? (y or [n] prompt and it cannot find the gnucash symbols
15:52:46 <Robert847> sigh
15:54:43 <Robert847> I will try set debuginfod enabled on
15:55:17 <Robert847> It did not tell me that it downloaded the gnucash symbols
15:55:42 <jralls> So maybe running with sudo stops it from using debuginfod. What happens if you `gdb gnucash` and then say `r` at the gdb prompt?
15:56:40 <jralls> OTOH it's already downloaded the symbols and put them in ~/.cache. It won't download them again.
16:00:14 <Robert847> Where is the gdbinit?
16:00:51 <jralls> In your home dir, but it's .gdbinit so you have to say `ls -a` to see it.
16:01:31 <Robert847> even then I still need to attach the PID
16:03:06 <Robert847> Now I am running out of time. Will have to continue another day
16:03:22 <jralls> OK.
16:03:33 <Robert847> Thanks for your help
16:04:00 *** Robert847 has left #gnucash
16:11:39 *** gandalf has quit IRC
16:41:54 *** gjanssens has quit IRC
17:01:01 *** NoobAlice has joined #gnucash
17:01:01 *** ChanServ sets mode: +v NoobAlice
17:36:41 *** jwhite has joined #gnucash
17:36:41 *** ChanServ sets mode: +v jwhite
18:05:39 <jwhite> @tell chris: fwiw, pr 1756 causes a python error on startup re undefined string_to_gnc_numeric. full text here: https://gist.github.com/jwhite66/d02d7e351e8e2c2bf3c5c1de882c15e1
18:05:39 <gncbot> jwhite: The operation succeeded.
19:06:12 *** ArtGravity has quit IRC
21:21:27 *** Aussie_matt has joined #gnucash
23:15:44 *** Aussie_matt has quit IRC