famous-river-94971
05/25/2023, 3:27 PMfamous-river-94971
05/25/2023, 3:29 PMenough-analyst-54434
05/25/2023, 3:30 PMfamous-river-94971
05/25/2023, 3:31 PMpants_version = "2.14.0"
enough-analyst-54434
05/25/2023, 3:31 PMenough-analyst-54434
05/25/2023, 3:31 PMenough-analyst-54434
05/25/2023, 3:31 PMfamous-river-94971
05/25/2023, 3:31 PMfamous-river-94971
05/25/2023, 3:32 PMenough-analyst-54434
05/25/2023, 3:32 PMfamous-river-94971
05/25/2023, 3:32 PMfamous-river-94971
05/25/2023, 3:32 PMenough-analyst-54434
05/25/2023, 4:08 PMfamous-river-94971
05/25/2023, 4:32 PMfamous-river-94971
05/25/2023, 4:33 PMfamous-river-94971
05/25/2023, 8:04 PMFATAL: exception not rethrown
./pants: line 22: 40681 Aborted (core dumped) pants "$@"
Anything else to try? Disable the pants daemon?enough-analyst-54434
05/25/2023, 8:06 PMfamous-river-94971
05/25/2023, 8:06 PMfamous-river-94971
05/25/2023, 8:07 PMscie-pants
. I never had this problem before I switched over.enough-analyst-54434
05/25/2023, 8:07 PMenough-analyst-54434
05/25/2023, 8:07 PMenough-analyst-54434
05/25/2023, 8:09 PMfamous-river-94971
05/25/2023, 8:10 PMscie-pants
. So, I hear you, but I'm also going to try going back to not using it. If it doesn't happen then, I have to feel like it's related.famous-river-94971
05/25/2023, 8:10 PMenough-analyst-54434
05/25/2023, 8:10 PMenough-analyst-54434
05/25/2023, 8:11 PMenough-analyst-54434
05/25/2023, 8:12 PMfamous-river-94971
05/25/2023, 8:13 PMfamous-river-94971
05/25/2023, 8:13 PMecho "Previous deployment found: $most_recent_deployed_tag. Deploying only stacks that have changed since then."
pants --changed-since="$most_recent_deployed_tag" --changed-dependees=transitive --filter-tag-regex='^cdk_deploy$' list | parallel -L1 |' -P 1 pants run
enough-analyst-54434
05/25/2023, 8:14 PMenough-analyst-54434
05/25/2023, 8:14 PMenough-analyst-54434
05/25/2023, 8:14 PMenough-analyst-54434
05/25/2023, 8:14 PMfamous-river-94971
05/25/2023, 8:14 PMenough-analyst-54434
05/25/2023, 8:17 PMfamous-river-94971
05/25/2023, 8:17 PMfamous-river-94971
05/25/2023, 8:18 PMfamous-river-94971
05/25/2023, 8:18 PMenough-analyst-54434
05/25/2023, 8:20 PMpants
runs at all. It can only be an underlying Pants bug.enough-analyst-54434
05/25/2023, 8:20 PM./pants
works for you but scie-pants
gives a core-dump, the underlying core-dump issue persists and its just that you get lucky - aka a real bug is papered over. This was exactly the case with the bug you initially pointed at. An old bug brought to light by scie-pants and finally squashed.famous-river-94971
05/25/2023, 8:37 PMfamous-river-94971
05/25/2023, 8:38 PMfamous-river-94971
05/25/2023, 8:39 PMAn old bug brought to light by scie-pants and finally squashed.Sure. It sounds like I'm using the wrong terminology here. From an end-user perspective "scie-pants isn't working" but in reality "maybe pants has been broken this whole time and scie-pants surfaces the issue".
enough-analyst-54434
05/25/2023, 9:03 PMfamous-river-94971
05/25/2023, 9:03 PMfamous-river-94971
05/25/2023, 9:09 PMfamous-river-94971
05/25/2023, 9:10 PMfamous-river-94971
05/25/2023, 9:11 PMfamous-river-94971
06/02/2023, 9:22 PMgdb
now, but making progress!famous-river-94971
06/02/2023, 9:25 PMfamous-river-94971
06/02/2023, 9:26 PMfamous-river-94971
06/02/2023, 9:37 PMgdb
can't seem to read it...
Fatal Python error: FATAL: exception not rethrown
./pants: line 22: 10507 Aborted (core dumped) pants "$@"
produced
/var/crash/_home_circleci_.cache_nce_c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d_bindings_venvs_2.14.2_bin_pants.1001.crash
But then GDB can't seem to read it. I tried:
gdb /home/circleci/bin/pants -c /var/crash/_home_circleci_.cache_nce_c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d_bindings_venvs_2.14.2_bin_pants.1001.crash
Reading symbols from /home/circleci/bin/pants...
(No debugging symbols found in /home/circleci/bin/pants)
"/var/crash/_home_circleci_.cache_nce_c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d_bindings_venvs_2.14.2_bin_pants.1001.crash" is not a core dump: file format not recognized
I also tried the downstream executable too:
gdb /home/circleci/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d/bindings/venvs/2.14.2/bin/pants /var/crash/_home_circleci_.cache_nce_c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d_bindings_venvs_2.14.2_bin_pants.1001.crash
But same error 🤔famous-river-94971
06/02/2023, 9:38 PMenough-analyst-54434
06/02/2023, 9:43 PM$ file ~/support/pants/BenLimmer/_home_circleci_.cache_nce_c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d_bindings_venvs_2.14.2_bin_pants.1001.crash
/home/jsirois/support/pants/BenLimmer/_home_circleci_.cache_nce_c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d_bindings_venvs_2.14.2_bin_pants.1001.crash: ASCII text, with very long lines (43232)
famous-river-94971
06/02/2023, 9:44 PMapport
was writing out. Maybe that's not what I wanted?enough-analyst-54434
06/02/2023, 9:44 PMCoreDump: base64
H4sICAAAAAAC/0NvcmVEdW1wAA==...
So I think you know what you need to do.enough-analyst-54434
06/02/2023, 9:44 PMfamous-river-94971
06/02/2023, 9:44 PMenough-analyst-54434
06/02/2023, 9:45 PMenough-analyst-54434
06/02/2023, 9:45 PMenough-analyst-54434
06/02/2023, 9:45 PMfamous-river-94971
06/02/2023, 9:45 PMfamous-river-94971
06/02/2023, 9:45 PMenough-analyst-54434
06/02/2023, 9:46 PMfile
was even more helpful. Great tool.famous-river-94971
06/02/2023, 9:46 PMfamous-river-94971
06/02/2023, 9:46 PMfamous-river-94971
06/03/2023, 1:46 AMapport-unpack _home_circleci_.cache_nce_c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d_bindings_venvs_2.14.2_bin_pants.1001.crash unpack
unpacked and gave me a coredump
But the backtrace isn't very interesting:
Reading symbols from /home/circleci/bin/pants...
(No debugging symbols found in /home/circleci/bin/pants)
[New LWP 9799]
[New LWP 9770]
[New LWP 9798]
[New LWP 9795]
[New LWP 9764]
[New LWP 9794]
[New LWP 9797]
[New LWP 9796]
[New LWP 9771]
Core was generated by `/home/circleci/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007f4518c96a7c in ?? ()
[Current thread is 1 (LWP 9799)]
(gdb) bt
#0 0x00007f4518c96a7c in ?? ()
#1 0x00007f45151f6c10 in ?? ()
#2 0x00007f45151f6c18 in ?? ()
#3 0x00007f45151f6c28 in ?? ()
#4 0x0000000000000000 in ?? ()
Maybe I need to use a different version of pants
that has the debugging symbols?enough-analyst-54434
06/03/2023, 2:07 AMenough-analyst-54434
06/03/2023, 2:08 AMgdb -iex "set solib-search-path /home/jsirois/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d/bindings/venvs/2.14.2/lib/python3.9/site-packages/pants/engine/internals:/home/jsirois/.cache/nce/2b6e146234a4ef2a8946081fc3fbfffe0765b80b690425a49ebe40b47c33445b/cpython-3.9.16+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz/python/lib/" ~/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d/bindings/venvs/2.14.2/bin/python3.9 CoreDump
But mind you - I had never done it before, I just read up.enough-analyst-54434
06/03/2023, 2:09 AMenough-analyst-54434
06/03/2023, 2:10 AMenough-analyst-54434
06/03/2023, 2:10 AM$ gdb -iex "set solib-search-path /home/jsirois/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d/bindings/venvs/2.14.2/lib/python3.9/site-packages/pants/engine/internals:/home/jsirois/.cache/nce/2b6e146234a4ef2a8946081fc3fbfffe0765b80b690425a49ebe40b47c33445b/cpython-3.9.16+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz/python/lib/" ~/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d/bindings/venvs/2.14.2/bin/python3.9 CoreDump
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 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:
<<https://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 /home/jsirois/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d/bindings/venvs/2.14.2/bin/python3.9...
warning: Can't open file /home/circleci/.cache/nce/2b6e146234a4ef2a8946081fc3fbfffe0765b80b690425a49ebe40b47c33445b/cpython-3.9.16+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz/python/bin/python3.9 during file-backed mapping note processing
warning: Can't open file /home/circleci/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d/bindings/venvs/2.14.2/lib/python3.9/site-packages/yaml/_yaml.cpython-39-x86_64-linux-gnu.so during file-backed mapping note processing
warning: Can't open file /home/circleci/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d/bindings/venvs/2.14.2/lib/python3.9/site-packages/pants/engine/internals/native_engine.so during file-backed mapping note processing
warning: Can't open file /home/circleci/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d/bindings/venvs/2.14.2/lib/python3.9/site-packages/ujson.cpython-39-x86_64-linux-gnu.so during file-backed mapping note processing
warning: Can't open file /home/circleci/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d/bindings/venvs/2.14.2/lib/python3.9/site-packages/setproctitle.cpython-39-x86_64-linux-gnu.so during file-backed mapping note processing
warning: Can't open file /home/circleci/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d/bindings/venvs/2.14.2/lib/python3.9/site-packages/psutil/_psutil_posix.cpython-39-x86_64-linux-gnu.so during file-backed mapping note processing
warning: Can't open file /home/circleci/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d/bindings/venvs/2.14.2/lib/python3.9/site-packages/psutil/_psutil_linux.cpython-39-x86_64-linux-gnu.so during file-backed mapping note processing
warning: Can't open file /home/circleci/.cache/nce/2b6e146234a4ef2a8946081fc3fbfffe0765b80b690425a49ebe40b47c33445b/cpython-3.9.16+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz/python/lib/libpython3.9.so.1.0 during file-backed mapping note processing
warning: core file may not match specified executable file.
[New LWP 11737]
[New LWP 11720]
[New LWP 11734]
[New LWP 11721]
[New LWP 11732]
[New LWP 11738]
[New LWP 11736]
[New LWP 11714]
[New LWP 11735]
warning: Could not load shared library symbols for 5 libraries, e.g. /home/circleci/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d/bindings/venvs/2.14.2/lib/python3.9/site-packages/psutil/_psutil_linux.cpython-39-x86_64-linux-gnu.so.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
[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/circleci/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b'.
Program terminated with signal SIGABRT, Aborted.
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=139738483492416) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
[Current thread is 1 (Thread 0x7f1766ab8640 (LWP 11737))]
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=139738483492416) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=139738483492416) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=139738483492416, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007f176a242476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007f176a2287f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007f176a28945c in __libc_message (action=do_abort, fmt=0x7f176a3db7b1 "%s", fmt=0x7f176a3db7b1 "%s", action=do_abort) at ../sysdeps/posix/libc_fatal.c:155
#6 0x00007f176a289770 in __GI___libc_fatal (message=<optimized out>) at ../sysdeps/posix/libc_fatal.c:164
#7 0x00007f176a29d476 in unwind_cleanup (reason=<optimized out>, exc=<optimized out>) at ./nptl/unwind.c:114
#8 0x00007f176973a5cf in panic_unwind::real_imp::cleanup () at library/panic_unwind/src/gcc.rs:78
#9 panic_unwind::__rust_panic_cleanup () at library/panic_unwind/src/lib.rs:100
#10 0x00007f1768d398da in std::panicking::try::cleanup () at library/std/src/panicking.rs:473
#11 0x00007f1769629f06 in std::panicking::try::do_catch<core::panic::unwind_safe::AssertUnwindSafe<std::thread::{impl#0}::spawn_unchecked_::{closure#1}::{closure_env#0}<tokio::runtime::blocking::pool::{impl#4}::spawn_thread::{closure_env#0}, ()>>, ()> (payload=0x0, data=<optimized out>) at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:517
#12 std::panicking::try<(), core::panic::unwind_safe::AssertUnwindSafe<std::thread::{impl#0}::spawn_unchecked_::{closure#1}::{closure_env#0}<tokio::runtime::blocking::pool::{impl#4}::spawn_thread::{closure_env#0}, ()>>> (f=<error reading variable: Cannot access memory at address 0x0>) at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:456
#13 std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<std::thread::{impl#0}::spawn_unchecked_::{closure#1}::{closure_env#0}<tokio::runtime::blocking::pool::{impl#4}::spawn_thread::{closure_env#0}, ()>>, ()> (f=<error reading variable: Cannot access memory at address 0x0>) at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panic.rs:137
#14 std::thread::{impl#0}::spawn_unchecked_::{closure#1}<tokio::runtime::blocking::pool::{impl#4}::spawn_thread::{closure_env#0}, ()> ()
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/thread/mod.rs:504
#15 core::ops::function::FnOnce::call_once<std::thread::{impl#0}::spawn_unchecked_::{closure_env#1}<tokio::runtime::blocking::pool::{impl#4}::spawn_thread::{closure_env#0}, ()>, ()> ()
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/ops/function.rs:248
#16 0x00007f176972fb33 in alloc::boxed::{impl#44}::call_once<(), dyn core::ops::function::FnOnce<(), Output=()>, alloc::alloc::Global> () at library/alloc/src/boxed.rs:1951
#17 alloc::boxed::{impl#44}::call_once<(), alloc::boxed::Box<dyn core::ops::function::FnOnce<(), Output=()>, alloc::alloc::Global>, alloc::alloc::Global> () at library/alloc/src/boxed.rs:1951
#18 std::sys::unix::thread::{impl#2}::new::thread_start () at library/std/src/sys/unix/thread.rs:108
#19 0x00007f176a294b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#20 0x00007f176a326a00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
(gdb)
famous-river-94971
06/07/2023, 3:39 PMpants
repofamous-river-94971
06/07/2023, 3:57 PMenough-analyst-54434
06/07/2023, 4:21 PMenough-analyst-54434
06/07/2023, 4:22 PMfamous-river-94971
06/07/2023, 4:23 PMfamous-river-94971
06/07/2023, 4:23 PMfamous-river-94971
06/07/2023, 4:23 PMfamous-river-94971
06/07/2023, 4:24 PMenough-analyst-54434
06/07/2023, 4:25 PMenough-analyst-54434
06/07/2023, 4:28 PMenough-analyst-54434
06/07/2023, 4:28 PMfamous-river-94971
06/07/2023, 4:30 PMWell, I will say the latter is not true. Its image dependent.It's not not true entirely. Many people will be using the ubuntu machine images for CircleCI.
famous-river-94971
06/07/2023, 4:31 PMenough-analyst-54434
06/07/2023, 4:31 PMBut, presumably, most folks use whatever image you use (most folks don't fiddle much).
enough-analyst-54434
06/07/2023, 4:32 PMfamous-river-94971
06/07/2023, 4:38 PM