Skip to content

Instantly share code, notes, and snippets.

View themarwhal's full-sized avatar
🐙
cambridge, ma

Marie themarwhal

🐙
cambridge, ma
  • cambridge, ma
View GitHub Profile
[2023-03-04T17:34:28.474-08:00]
[2023-03-04T17:34:28.474-08:00] BUILD ERRORS (1)
[2023-03-04T17:34:28.474-08:00] The following actions failed during the execution of this command:
[2023-03-04T17:34:28.474-08:00] Action failed: root//compiler:hello_world (bootstrap//platform:stage0-9e3fd863fe7e766) (rustc bin-pic-static_pic-link/hello_world-link bin,pic,link [diag])
[2023-03-04T17:34:28.474-08:00] Local command returned non-zero exit code 1
[2023-03-04T17:34:28.474-08:00] Local command: /usr/bin/env "PYTHONPATH=buck-out/v2/gen/prelude/9e3fd863fe7e766/rust/tools/__rustc_action__/__rustc_action__" python3 buck-out/v2/gen/prelude/9e3fd863fe7e766/rust/tools/__rustc_action__/rustc_action.py @buck-out/v2/gen/root/9e3fd863fe7e766/compiler/__hello_world__/bin-pic-static_pic-link/hello_world-link-diag.args
[2023-03-04T17:34:28.474-08:00] Stdout: ['buck-out/v2/gen/root/9e3fd863fe7e766/sysroot/__rustc_wrapper__/rustc_wrapper']
[2023-03-04T17:34:28.474-08:00] Stderr: error: linking with `buck-out/v2/gen/root/9e3fd863fe7e7
enum ValueType {
ARRAY,
INFO_OBJECT,
OBJECT,
RAW,
}
function splitOnTopLevelProviders(data: string): Map<string, string> {
let result = new Map<string, string>();
// Each array element looks like "target1: Providers(...)"
@themarwhal
themarwhal / gist:75373bd07e72998bc68aae034186db6f
Created March 4, 2022 16:50
MME ASAN crash after running: make integ_test TESTS=s1aptests/test_attach_detach_with_mme_restart.py
sudo jovagrant@magma-dev-focal:~/magma/lte/gateway$ sudo journalctl -fu magma@mme
-- Logs begin at Thu 2021-06-17 23:23:20 UTC. --
Mar 04 16:49:20 magma-dev-focal mme[142341]: Initializing OAI Logging to syslog
Mar 04 16:49:20 magma-dev-focal mme[142341]: Initializing shared logging
Mar 04 16:49:20 magma-dev-focal mme[142341]: Initializing shared logging Done
Mar 04 16:49:20 magma-dev-focal mme[142341]: [SIG][D]MME_UNIT_TEST Flag is Disabled
Mar 04 16:49:20 magma-dev-focal mme[142341]: GetAssignedIPBlock fails with code 14, msg: Connect Failed
Mar 04 16:49:21 magma-dev-focal sudo[142402]: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/ovs-vsctl list Open_vSwitch
Mar 04 16:49:21 magma-dev-focal sudo[142402]: pam_unix(sudo:session): session opened for user root by (uid=0)
Mar 04 16:49:21 magma-dev-focal sudo[142402]: pam_unix(sudo:session): session closed for user root
[ RUN ] test_ngap_handle_new_association.empty_initial_state
[ OK ] test_ngap_handle_new_association.empty_initial_state (5 ms)
[----------] 1 test from test_ngap_handle_new_association (5 ms total)
[----------] 21 tests from NgapFlowTest
[ RUN ] NgapFlowTest.test_ngap_setup_request
[ OK ] NgapFlowTest.test_ngap_setup_request (6 ms)
[ RUN ] NgapFlowTest.initial_ue_message_sunny_day
[ OK ] NgapFlowTest.initial_ue_message_sunny_day (2 ms)
[ RUN ] NgapFlowTest.uplink_nas_transport_sunny_day
-- Generating done
-- Build files have been written to: /workspaces/magma/build/c/core/oai
[6/8] Performing build step for 'MagmaCore'
[1/5] Linking CXX executable test/spgw_task/spgw_state_converter_test
[2/5] Linking CXX executable test/spgw_task/spgw_service_impl_test
[3/5] Linking CXX executable test/spgw_task/pgw_pco_test
[4/5] Linking CXX executable test/spgw_task/spgw_procedures_test
[5/5] Linking CXX executable test/spgw_task/spgw_procedures_with_injected_state_test
[8/8] Completed 'MagmaCore'
cd /workspaces/magma/build/c/core/oai && ctest --output-on-failure -R ".*"
@themarwhal
themarwhal / gist:b9b7ce59d1ed2e883fb2d34f52bc502e
Created March 1, 2022 19:04
s1ap_state_converter from compile commands
{
"directory": "/home/vagrant/build/c/core/oai",
"command": "/usr/lib/ccache/c++ -DCMAKER -DCMAKE_BUILD_TYPE=\\\"Debug\\\" -DEMBEDDED_SGW=1 -DLINK_GCOV=1 -DMME_BENCHMARK=0 -DMME_UNIT_TEST=1 -DS1AP_DEBUG_LIST=0 -DS6A_OVER_GRPC=1 -DSCTP_DUMP_LIST=0 -DTRACE_3GPP_SPEC=1 -DTRACE_HASHTABLE=0 -I/home/vagrant/magma/lte/gateway/c/core/oai/include -I/usr/src/googletest/googlemock/include -I/home/vagrant/magma/lte/gateway/c/core/oai -I/home/vagrant/magma/lte/gateway/c/core/oai/test/s1ap_task -Itasks/s1ap -I/home/vagrant/magma/lte/gateway/c/core/oai/tasks/s1ap -I/home/vagrant/magma/lte/gateway/c/core/oai/tasks/s1ap/messages -I/home/vagrant/magma/lte/gateway/c/core/oai/tasks/s1ap/messages/asn1 -I/home/vagrant/magma/lte/gateway/c/core/oai/common -Icommon -I/home/vagrant/magma/lte/gateway/c/core/oai/lib/3gpp -I/home/vagrant/magma/lte/gateway/c/core/oai/lib/bstr -Itasks/s1ap/r15 -I/home/vagrant/magma/lte/gateway/c/core/oai/tasks/s1ap/r15 -I/home/vagrant/magma/lte/gateway/c/core/oai/lib/hashtable -Itasks/ngap/r16 -I/home
@themarwhal
themarwhal / gist:6d6b2ad5fd03933c0dc70fba02e930dc
Created February 15, 2022 03:55
Linking error even after setting linkstatic=1 for ASN library
| ^~
ERROR: /workspaces/magma/lte/gateway/c/core/BUILD.bazel:1557:8: Linking lte/gateway/c/core/itti_test failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc @bazel-out/k8-fastbuild/bin/lte/gateway/c/core/itti_test-2.params
Use --sandbox_debug to see verbose messages from the sandbox
bazel-out/k8-fastbuild/bin/_solib_k8/liblte_Sgateway_Sc_Score_Slibcore.so: error: undefined reference to 's6a_fd_new_peer'
bazel-out/k8-fastbuild/bin/_solib_k8/liblte_Sgateway_Sc_Score_Slibcore.so: error: undefined reference to 'as_message_encode'
bazel-out/k8-fastbuild/bin/_solib_k8/liblte_Sgateway_Sc_Score_Slibcore.so: error: undefined reference to 'Fatal'
bazel-out/k8-fastbuild/bin/_solib_k8/liblte_Sgateway_Sc_Score_Slibcore.so: error: undefined reference to 'as_message_decode'
collect2: error: ld returned 1 exit status
Target //lte/gateway/c/core:itti_test failed to build
Changes to Outputs:
~ commit_hash = "774e325e" -> "58d67382"
│ Warning: Version constraints inside provider configuration blocks are deprecated
│ on .terraform/modules/orc8r/orc8r/cloud/deploy/terraform/orc8r-aws/providers.tf line 19, in provider "random":
│ 19: version = "~> 2.1"
│ Terraform 0.13 and earlier allowed provider version constraints inside the provider configuration block, but that is now deprecated and will be removed in a future version
│ of Terraform. To silence this warning, move the provider version constraint into the required_providers block.
@themarwhal
themarwhal / SessionStore.cpp
Created December 14, 2021 14:58
single file diff - SessionStore.cpp
diff --git a/lte/gateway/c/session_manager/SessionStore.cpp b/lte/gateway/c/session_manager/SessionStore.cpp
index dc36b56c6..a6400beff 100644
--- a/lte/gateway/c/session_manager/SessionStore.cpp
+++ b/lte/gateway/c/session_manager/SessionStore.cpp
@@ -64,6 +64,7 @@ SessionMap SessionStore::read_all_sessions() {
void SessionStore::set_and_save_reporting_flag(
bool value, const UpdateSessionRequest& update_session_request,
SessionUpdate& session_uc) {
+ MLOG(MINFO) << "Hello! This will only affect some tests";
MLOG(MDEBUG) << "saving flag is_reporting = " << value << " on session store";
313 results - 193 files
lte/gateway/c/core/oai/common/common_defs.h:
41 #include <string.h> // memcpy
42: #include <arpa/inet.h>
43
lte/gateway/c/core/oai/common/conversions.h:
41 #include <endian.h>
42: #include <netinet/in.h>