You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hw Test on fake SAI is failing due to a segmentation Fault
I am attempting to run test cases in the Fake SAI environment, but they are failing due to a segmentation fault. It appears that the agent.conf file is incorrect, causing parsing to fail. Could anyone provide the correct agent.conf file for the fake_wedge environment?
[root@ab6c55c3647a fboss]# ./bin/sai_test-fake --gtest_filter=HwVlanTest.VlanApplyConfig
Note: Google Test filter = HwVlanTest.VlanApplyConfig
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from HwVlanTest
[ RUN ] HwVlanTest.VlanApplyConfig
Not valid AgentConfig, fallback to parsing as SwitchConfig...
Not valid AgentConfig, fallback to parsing as SwitchConfig...
I0423 04:28:49.139727 4429 PlatformProductInfo.cpp:334] Success parsing product info fields
V0423 04:28:49.143259 4429 Utils.cpp:297] Calculating local mac address=02:42:ac:11:00:02 took 3ms
*** Aborted at 1745382529 (Unix time, try 'date -d @1745382529') ***
*** Signal 11 (SIGSEGV) (0x8) received by PID 4429 (pthread TID 0x7ffa2c989440) (linux TID 4429) (code: address not mapped to object), stack trace: ***
@ 00000000028a9e09 folly::symbolizer::(anonymous namespace)::signalHandler(int, siginfo_t*, void*)
/var/FBOSS/tmp_bld_dir/repos/github.com-facebook-folly.git/folly/debugging/symbolizer/SignalHandler.cpp:453
@ 000000000003ebef (unknown)
@ 000000000185fbaa facebook::fboss::Platform::setConfig(std::unique_ptr<facebook::fboss::AgentConfig, std::default_deletefacebook::fboss::AgentConfig >)
@ 0000000001860211 facebook::fboss::Platform::init(std::unique_ptr<facebook::fboss::AgentConfig, std::default_deletefacebook::fboss::AgentConfig >, unsigned int, short)
@ 0000000000ed56d9 facebook::fboss::initSaiPlatform(std::unique_ptr<facebook::fboss::AgentConfig, std::default_deletefacebook::fboss::AgentConfig >, unsigned int, short)
@ 00000000009b384a facebook::fboss::SaiSwitchEnsemble::init(facebook::fboss::HwSwitchEnsemble::HwSwitchEnsembleInitInfo const&)
@ 0000000000a5f263 facebook::fboss::HwTest::SetUp()
@ 0000000000b9cc5c void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::)(), char const)
@ 0000000000b94353 testing::Test::Run()
@ 0000000000b9448b testing::TestInfo::Run()
@ 0000000000b945b7 testing::TestSuite::Run()
@ 0000000000b96da2 testing::internal::UnitTestImpl::RunAllTests()
@ 0000000000b9d00a bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::)(), char const)
@ 0000000000b946d0 testing::UnitTest::Run()
@ 000000000050821d main
@ 00000000000295cf __libc_start_call_main
@ 000000000002967f __libc_start_main
@ 00000000007e1184 _start
Segmentation fault (core dumped)
[root@ab6c55c3647a fboss]#[root@ab6c55c3647a fboss]# ./bin/sai_test-fake --gtest_filter=HwVlanTest.VlanApplyConfig
Note: Google Test filter = HwVlanTest.VlanApplyConfig
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from HwVlanTest
[ RUN ] HwVlanTest.VlanApplyConfig
Not valid AgentConfig, fallback to parsing as SwitchConfig...
Not valid AgentConfig, fallback to parsing as SwitchConfig...
I0423 04:28:49.139727 4429 PlatformProductInfo.cpp:334] Success parsing product info fields
V0423 04:28:49.143259 4429 Utils.cpp:297] Calculating local mac address=02:42:ac:11:00:02 took 3ms
*** Aborted at 1745382529 (Unix time, try 'date -d @1745382529') ***
*** Signal 11 (SIGSEGV) (0x8) received by PID 4429 (pthread TID 0x7ffa2c989440) (linux TID 4429) (code: address not mapped to object), stack trace: ***
@ 00000000028a9e09 folly::symbolizer::(anonymous namespace)::signalHandler(int, siginfo_t*, void*)
/var/FBOSS/tmp_bld_dir/repos/github.com-facebook-folly.git/folly/debugging/symbolizer/SignalHandler.cpp:453
@ 000000000003ebef (unknown)
@ 000000000185fbaa facebook::fboss::Platform::setConfig(std::unique_ptr<facebook::fboss::AgentConfig, std::default_deletefacebook::fboss::AgentConfig >)
@ 0000000001860211 facebook::fboss::Platform::init(std::unique_ptr<facebook::fboss::AgentConfig, std::default_deletefacebook::fboss::AgentConfig >, unsigned int, short)
@ 0000000000ed56d9 facebook::fboss::initSaiPlatform(std::unique_ptr<facebook::fboss::AgentConfig, std::default_deletefacebook::fboss::AgentConfig >, unsigned int, short)
@ 00000000009b384a facebook::fboss::SaiSwitchEnsemble::init(facebook::fboss::HwSwitchEnsemble::HwSwitchEnsembleInitInfo const&)
@ 0000000000a5f263 facebook::fboss::HwTest::SetUp()
@ 0000000000b9cc5c void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::)(), char const)
@ 0000000000b94353 testing::Test::Run()
@ 0000000000b9448b testing::TestInfo::Run()
@ 0000000000b945b7 testing::TestSuite::Run()
@ 0000000000b96da2 testing::internal::UnitTestImpl::RunAllTests()
@ 0000000000b9d00a bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::)(), char const)
@ 0000000000b946d0 testing::UnitTest::Run()
@ 000000000050821d main
@ 00000000000295cf __libc_start_call_main
@ 000000000002967f __libc_start_main
@ 00000000007e1184 _start
Segmentation fault (core dumped)
[root@ab6c55c3647a fboss]#
The text was updated successfully, but these errors were encountered:
Hw Test on fake SAI is failing due to a segmentation Fault
I am attempting to run test cases in the Fake SAI environment, but they are failing due to a segmentation fault. It appears that the agent.conf file is incorrect, causing parsing to fail. Could anyone provide the correct agent.conf file for the fake_wedge environment?
[root@ab6c55c3647a fboss]# ./bin/sai_test-fake --gtest_filter=HwVlanTest.VlanApplyConfig
Note: Google Test filter = HwVlanTest.VlanApplyConfig
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from HwVlanTest
[ RUN ] HwVlanTest.VlanApplyConfig
Not valid AgentConfig, fallback to parsing as SwitchConfig...
Not valid AgentConfig, fallback to parsing as SwitchConfig...
I0423 04:28:49.139727 4429 PlatformProductInfo.cpp:334] Success parsing product info fields
V0423 04:28:49.143259 4429 Utils.cpp:297] Calculating local mac address=02:42:ac:11:00:02 took 3ms
*** Aborted at 1745382529 (Unix time, try 'date -d @1745382529') ***
*** Signal 11 (SIGSEGV) (0x8) received by PID 4429 (pthread TID 0x7ffa2c989440) (linux TID 4429) (code: address not mapped to object), stack trace: ***
@ 00000000028a9e09 folly::symbolizer::(anonymous namespace)::signalHandler(int, siginfo_t*, void*)
/var/FBOSS/tmp_bld_dir/repos/github.com-facebook-folly.git/folly/debugging/symbolizer/SignalHandler.cpp:453
@ 000000000003ebef (unknown)
@ 000000000185fbaa facebook::fboss::Platform::setConfig(std::unique_ptr<facebook::fboss::AgentConfig, std::default_deletefacebook::fboss::AgentConfig >)
@ 0000000001860211 facebook::fboss::Platform::init(std::unique_ptr<facebook::fboss::AgentConfig, std::default_deletefacebook::fboss::AgentConfig >, unsigned int, short)
@ 0000000000ed56d9 facebook::fboss::initSaiPlatform(std::unique_ptr<facebook::fboss::AgentConfig, std::default_deletefacebook::fboss::AgentConfig >, unsigned int, short)
@ 00000000009b384a facebook::fboss::SaiSwitchEnsemble::init(facebook::fboss::HwSwitchEnsemble::HwSwitchEnsembleInitInfo const&)
@ 0000000000a5f263 facebook::fboss::HwTest::SetUp()
@ 0000000000b9cc5c void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::)(), char const)
@ 0000000000b94353 testing::Test::Run()
@ 0000000000b9448b testing::TestInfo::Run()
@ 0000000000b945b7 testing::TestSuite::Run()
@ 0000000000b96da2 testing::internal::UnitTestImpl::RunAllTests()
@ 0000000000b9d00a bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::)(), char const)
@ 0000000000b946d0 testing::UnitTest::Run()
@ 000000000050821d main
@ 00000000000295cf __libc_start_call_main
@ 000000000002967f __libc_start_main
@ 00000000007e1184 _start
Segmentation fault (core dumped)
[root@ab6c55c3647a fboss]#[root@ab6c55c3647a fboss]# ./bin/sai_test-fake --gtest_filter=HwVlanTest.VlanApplyConfig
Note: Google Test filter = HwVlanTest.VlanApplyConfig
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from HwVlanTest
[ RUN ] HwVlanTest.VlanApplyConfig
Not valid AgentConfig, fallback to parsing as SwitchConfig...
Not valid AgentConfig, fallback to parsing as SwitchConfig...
I0423 04:28:49.139727 4429 PlatformProductInfo.cpp:334] Success parsing product info fields
V0423 04:28:49.143259 4429 Utils.cpp:297] Calculating local mac address=02:42:ac:11:00:02 took 3ms
*** Aborted at 1745382529 (Unix time, try 'date -d @1745382529') ***
*** Signal 11 (SIGSEGV) (0x8) received by PID 4429 (pthread TID 0x7ffa2c989440) (linux TID 4429) (code: address not mapped to object), stack trace: ***
@ 00000000028a9e09 folly::symbolizer::(anonymous namespace)::signalHandler(int, siginfo_t*, void*)
/var/FBOSS/tmp_bld_dir/repos/github.com-facebook-folly.git/folly/debugging/symbolizer/SignalHandler.cpp:453
@ 000000000003ebef (unknown)
@ 000000000185fbaa facebook::fboss::Platform::setConfig(std::unique_ptr<facebook::fboss::AgentConfig, std::default_deletefacebook::fboss::AgentConfig >)
@ 0000000001860211 facebook::fboss::Platform::init(std::unique_ptr<facebook::fboss::AgentConfig, std::default_deletefacebook::fboss::AgentConfig >, unsigned int, short)
@ 0000000000ed56d9 facebook::fboss::initSaiPlatform(std::unique_ptr<facebook::fboss::AgentConfig, std::default_deletefacebook::fboss::AgentConfig >, unsigned int, short)
@ 00000000009b384a facebook::fboss::SaiSwitchEnsemble::init(facebook::fboss::HwSwitchEnsemble::HwSwitchEnsembleInitInfo const&)
@ 0000000000a5f263 facebook::fboss::HwTest::SetUp()
@ 0000000000b9cc5c void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::)(), char const)
@ 0000000000b94353 testing::Test::Run()
@ 0000000000b9448b testing::TestInfo::Run()
@ 0000000000b945b7 testing::TestSuite::Run()
@ 0000000000b96da2 testing::internal::UnitTestImpl::RunAllTests()
@ 0000000000b9d00a bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::)(), char const)
@ 0000000000b946d0 testing::UnitTest::Run()
@ 000000000050821d main
@ 00000000000295cf __libc_start_call_main
@ 000000000002967f __libc_start_main
@ 00000000007e1184 _start
Segmentation fault (core dumped)
[root@ab6c55c3647a fboss]#
The text was updated successfully, but these errors were encountered: