Skip to content

Instantly share code, notes, and snippets.

@dckc
Created March 2, 2021 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dckc/8f97561e5abbc30909c0ef7f328780e5 to your computer and use it in GitHub Desktop.
Save dckc/8f97561e5abbc30909c0ef7f328780e5 to your computer and use it in GitHub Desktop.
~/projects/agoric/agoric-sdk/packages/zoe
16:26 connolly@jambox$ yarn test:xs-unit --debug test/unitTests/contracts/loan/test-loan-e2e.js
yarn run v1.22.5
$ ava-xs --debug test/unitTests/contracts/loan/test-loan-e2e.js
[Object: null prototype] {}
# test script: test/unitTests/contracts/loan/test-loan-e2e.js
Removing intrinsics.%ErrorPrototype%.stack
# exception: Object.prototype.__lookupGetter__: cannot coerce undefined to object!
test/unitTests/contracts/loan/test-loan-e2e.js: loan - lend - exit before borrow start
&& task was past its deadline when scheduled: 0 &&
@@ schedule task for:1, currently: 0 @@
(Error#1)
Error#1: <unnamed xsnap worker> exited due to signal SIGSEGV
at ChildProcess.<anonymous> (/home/connolly/projects/agoric/agoric-sdk/packages/xsnap/src/xsnap.js:101:22)
at ChildProcess.emit (events.js:315:20)
at ChildProcess.EventEmitter.emit (domain.js:485:12)
at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
~/projects/agoric/agoric-sdk/packages/zoe
16:26 connolly@jambox$ find . -name core
~/projects/agoric/agoric-sdk/packages/zoe
16:27 connolly@jambox$ ulimit -c unlimited
~/projects/agoric/agoric-sdk/packages/zoe
16:28 connolly@jambox$ yarn test:xs-unit --debug test/unitTests/contracts/loan/test-loan-e2e.js
yarn run v1.22.5
$ ava-xs --debug test/unitTests/contracts/loan/test-loan-e2e.js
[Object: null prototype] {}
# test script: test/unitTests/contracts/loan/test-loan-e2e.js
Removing intrinsics.%ErrorPrototype%.stack
# exception: Object.prototype.__lookupGetter__: cannot coerce undefined to object!
test/unitTests/contracts/loan/test-loan-e2e.js: loan - lend - exit before borrow start
&& task was past its deadline when scheduled: 0 &&
@@ schedule task for:1, currently: 0 @@
(Error#1)
Error#1: <unnamed xsnap worker> exited due to signal SIGSEGV
at ChildProcess.<anonymous> (/home/connolly/projects/agoric/agoric-sdk/packages/xsnap/src/xsnap.js:101:22)
at ChildProcess.emit (events.js:315:20)
at ChildProcess.EventEmitter.emit (domain.js:485:12)
at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
~/projects/agoric/agoric-sdk/packages/zoe
16:28 connolly@jambox$ find . -name core
./core
~/projects/agoric/agoric-sdk/packages/zoe
16:28 connolly@jambox$ gdb ../xsnap/build/
bin/ tmp/
~/projects/agoric/agoric-sdk/packages/zoe
16:28 connolly@jambox$ gdb ../xsnap/build/
bin/ tmp/
~/projects/agoric/agoric-sdk/packages/zoe
16:28 connolly@jambox$ gdb ../xsnap/build/bin/lin/debug/xsnap core
GNU gdb (Ubuntu 8.1.1-0ubuntu1) 8.1.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ../xsnap/build/bin/lin/debug/xsnap...done.
[New LWP 21155]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/home/connolly/projects/agoric/agoric-sdk/packages/xsnap/build/bin/lin/debug/xs'.
---Type <return> to continue, or q <return> to quit---
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000556a2f587770 in fxMarkWeakMapTable (the=0x556a302a22b0, table=0x7efcb8e8f050, theMarker=0x556a2f586d38 <fxMarkValue>)
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsMemory.c:957
957 if (result->value.reference->flag & XS_MARK_FLAG) {
(gdb) bt
#0 0x0000556a2f587770 in fxMarkWeakMapTable (the=0x556a302a22b0, table=0x7efcb8e8f050, theMarker=0x556a2f586d38 <fxMarkValue>)
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsMemory.c:957
#1 0x0000556a2f587907 in fxMarkWeakStuff (the=0x556a302a22b0, theMarker=0x556a2f586d38 <fxMarkValue>)
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsMemory.c:1001
#2 0x0000556a2f585a1c in fxCollect (the=0x556a302a22b0, theFlag=1)
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsMemory.c:210
#3 0x0000556a2f587b5d in fxNewChunk (the=0x556a302a22b0, theSize=618760)
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsMemory.c:1058
#4 0x0000556a2f513895 in fxConcatString (the=0x556a302a22b0, a=0x556a302bfde0, b=0x556a302bfdc0)
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsAll.c:162
#5 0x0000556a2f5c5120 in fxRunID (the=0x556a302a22b0, generator=0x7efcb87bdb30, count=1)
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsRun.c:3196
#6 0x0000556a2f565cab in fxStepAsync (the=0x556a302a22b0, instance=0x7efcb87bdb30, status=0 '\000')
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsFunction.c:683
#7 0x0000556a2f565b12 in fxRunAsync (the=0x556a302a22b0, instance=0x7efcb87bdb30)
---Type <return> to continue, or q <return> to quit---
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsFunction.c:665
#8 0x0000556a2f5b377e in fxRunID (the=0x556a302a22b0, generator=0x7efcb88a72f0, count=-1)
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsRun.c:1034
#9 0x0000556a2f565cab in fxStepAsync (the=0x556a302a22b0, instance=0x7efcb88a72f0, status=0 '\000')
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsFunction.c:683
#10 0x0000556a2f565a3e in fxResolveAwait (the=0x556a302a22b0)
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsFunction.c:648
#11 0x0000556a2f5b1f03 in fxRunID (the=0x556a302a22b0, generator=0x0, count=1)
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsRun.c:824
#12 0x0000556a2f59d9f5 in fxOnResolvedPromise (the=0x556a302a22b0)
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsPromise.c:456
#13 0x0000556a2f5b1f03 in fxRunID (the=0x556a302a22b0, generator=0x0, count=1)
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsRun.c:824
#14 0x0000556a2f5a259b in fxRunPromiseJobs (the=0x556a302a22b0)
at /home/connolly/projects/agoric/agoric-sdk/packages/xsnap/makefiles/lin/../../moddable/xs/sources/xsPromise.c:1152
---Type <return> to continue, or q <return> to quit---
#15 0x0000556a2f60a9ec in fxRunLoop (the=0x556a302a22b0) at ../../src/xsnap.c:1056
#16 0x0000556a2f600b3e in main (argc=1, argv=0x7ffe1dc182c8) at ../../src/xsnap.c:376
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment