Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache causes error: terminated by signal SIGSEGV (Address boundary error) #87

Open
william-davies opened this issue May 4, 2024 · 0 comments

Comments

@william-davies
Copy link
Contributor

I ran bean-price /Users/williamdavies/my-beancount/my-ledger-test.beancount --update --inactive --date 2019-01-01 -vv > prices.beancount

Output:

INFO    : Using price cache at "/var/folders/gl/hvd855yx0v73w7z0_wv_sx900000gp/T/bean-price.cache" (with indefinite expiration)
INFO    : Processing at date: 2019-01-01
INFO    : Loading "/Users/williamdavies/my-beancount/my-ledger-test.beancount"

<some failed balance assertions>

DEBUG   : Ignoring currency with no metadata: USD
DEBUG   : Ignoring currency with no metadata: JPY
DEBUG   : -------- Currencies in primary list:
DEBUG   :                           GBP /JPY
INFO    : Fetching: GBPJPY=X (time: 2018-01-01 16:00:00+00:00)
INFO    : Fetching: GBPJPY=X (time: 2018-01-02 16:00:00+00:00)
DEBUG   : Starting new HTTPS connection (1): query1.finance.yahoo.com:443
DEBUG   : Starting new HTTPS connection (1): query1.finance.yahoo.com:443
DEBUG   : https://query1.finance.yahoo.com:443 "GET /v8/finance/chart/GBPJPY=X?period1=1514476800&period2=1514908800&interval=1d&lang=en-US&corsDomain=finance.yahoo.com&.tsrc=finance HTTP/1.1" 200 1396
INFO    : Fetching: GBPJPY=X (time: 2018-01-03 16:00:00+00:00)
DEBUG   : https://query1.finance.yahoo.com:443 "GET /v8/finance/chart/GBPJPY=X?period1=1514390400&period2=1514822400&interval=1d&lang=en-US&corsDomain=finance.yahoo.com&.tsrc=finance HTTP/1.1" 200 1394
fish: Job 2, 'bean-price /Users/williamdavies…' terminated by signal SIGSEGV (Address boundary error)

If I use the -n flag the dry run succeeds. When I use --no-cache the command succeeds. I am fetching 261 prices for a single currency pair (GBP /JPY). I am using this source: "JPY:yahoo/GBPJPY=X".

Wanted to share my workaround/solution and bring attention to the bug (if it is a bug!).

Thank you!

@william-davies william-davies changed the title terminated by signal SIGSEGV (Address boundary error) Cache causes error: terminated by signal SIGSEGV (Address boundary error) May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant