Advertisement
jimklimov

CppUnit segfault on OI

Nov 13th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.82 KB | None | 0 0
  1. Trying to build https://github.com/networkupstools/nut/blob/master/tests/cpputest.cpp I get a segfault in test on OI Hipster 2020.10:
  2.  
  3. $ ./cppunittest
  4. D: Getting test suite...
  5. D: Preparing test runner...
  6. D: Setting test runner outputter...
  7. ─── Output/messages ─────────────────────────────────────────────────────────────────────────────
  8. [Thread debugging using libthread_db enabled]
  9. D: Getting test suite...
  10. D: Preparing test runner...
  11. D: Setting test runner outputter...
  12. D: Launching the test run...
  13. [New Thread 1 (LWP 1)]
  14.  
  15. Program received signal SIGSEGV, Segmentation fault.
  16. [Switching to Thread 1 (LWP 1)]
  17. 0xfffffc7fdc415e77 in std::ostream::sentry::sentry (this=0xfffffc7fffdff110, __os=...) at /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/build/amd64/x86_64-pc-solaris2.11/libstdc++-v3/include/bits/ostream.tcc:46
  18. 46 /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/build/amd64/x86_64-pc-solaris2.11/libstdc++-v3/include/bits/ostream.tcc: No such file or directory.
  19. ─── Assembly ────────────────────────────────────────────────────────────────────────────────────
  20. 0xfffffc7fdc415e6d std::ostream::sentry::sentry+13 mov %rsi,%rbx
  21. 0xfffffc7fdc415e70 std::ostream::sentry::sentry+16 mov %rsi,0x8(%rdi)
  22. 0xfffffc7fdc415e74 std::ostream::sentry::sentry+20 movb $0x0,(%rdi)
  23. 0xfffffc7fdc415e77 std::ostream::sentry::sentry+23 mov -0x18(%rax),%rdi
  24. 0xfffffc7fdc415e7b std::ostream::sentry::sentry+27 add %rsi,%rdi
  25. 0xfffffc7fdc415e7e std::ostream::sentry::sentry+30 mov 0xd8(%rdi),%r8
  26. 0xfffffc7fdc415e85 std::ostream::sentry::sentry+37 mov 0x20(%rdi),%esi
  27. ─── Expressions ─────────────────────────────────────────────────────────────────────────────────
  28. ─── History ─────────────────────────────────────────────────────────────────────────────────────
  29. ─── Memory ──────────────────────────────────────────────────────────────────────────────────────
  30. ─── Registers ───────────────────────────────────────────────────────────────────────────────────
  31. rax 0x0000000000000000 rbx 0xfffffc7fec557060 rcx 0x000000000045ec80
  32. rdx 0x0000000000000001 rsi 0xfffffc7fec557060 rdi 0xfffffc7fffdff110
  33. rbp 0xfffffc7fffdff0e0 rsp 0xfffffc7fffdff0d0 r8 0x000000000000000b
  34. r9 0x0000000000007365 r10 0x0000000000000074 r11 0xfffffc7fdc2dc6b8
  35. r12 0xfffffc7fffdff110 r13 0x000000000045eea0 r14 0xfffffc7fffdff110
  36. r15 0x0000000000000001 rip 0xfffffc7fdc415e77 eflags [ AF SF IF RF ]
  37. cs 0x00000053 ss 0x0000004b ds 0x0000004b
  38. es 0x0000004b fs 0x00000000 gs 0x00000000
  39. ─── Source ──────────────────────────────────────────────────────────────────────────────────────
  40. Cannot display "/jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/build/amd64/x86_64-pc-solaris2.11/libstdc++-v3/include/bits/ostream.tcc" ([Errno 2] No such file or directory: '/jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/build/amd64/x86_64-pc-solaris2.11/libstdc++-v3/include/bits/ostream.tcc')
  41. ─── Stack ───────────────────────────────────────────────────────────────────────────────────────
  42. [0] from 0xfffffc7fdc415e77 in std::ostream::sentry::sentry+23 at /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/build/amd64/x86_64-pc-solaris2.11/libstdc++-v3/include/bits/ostream.tcc:46
  43. arg this = 0xfffffc7fffdff110
  44. arg __os = @0xfffffc7fec557060
  45. [1] from 0xfffffc7fec5009fa in std::__ostream_insert<char, std::char_traits<char> >+269395322 at /jenkins/jobs/oi-userland/workspace/components/developer/gcc-7/build/i86/i386-pc-solaris2.11/amd64/libstdc++-v3/include/bits/ostream_insert.h:82
  46. arg __out = @0xfffffc7fec557060
  47. arg __s = 0xfffffc7fdc563d81 "."
  48. arg __n = 1
  49. [+]
  50. ─── Threads ─────────────────────────────────────────────────────────────────────────────────────
  51. [2] id 1 from 0xfffffc7fdc415e77 in std::ostream::sentry::sentry+23 at /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/build/amd64/x86_64-pc-solaris2.11/libstdc++-v3/include/bits/ostream.tcc:46
  52. [1] id 1 from 0xfffffc7fdc415e77 in std::ostream::sentry::sentry+23 at /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/build/amd64/x86_64-pc-solaris2.11/libstdc++-v3/include/bits/ostream.tcc:46
  53. ─────────────────────────────────────────────────────────────────────────────────────────────────
  54. >>> bt
  55. #0 0xfffffc7fdc415e77 in std::ostream::sentry::sentry (this=0xfffffc7fffdff110, __os=...) at /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/build/amd64/x86_64-pc-solaris2.11/libstdc++-v3/include/bits/ostream.tcc:46
  56. #1 0xfffffc7fec5009fa in std::__ostream_insert<char, std::char_traits<char> > (__out=..., __s=0xfffffc7fdc563d81 ".", __n=1) at /jenkins/jobs/oi-userland/workspace/components/developer/gcc-7/build/i86/i386-pc-solaris2.11/amd64/libstdc++-v3/include/bits/ostream_insert.h:82
  57. #2 0xfffffc7fdc55c1e4 in CppUnit::TextTestProgressListener::startTest(CppUnit::Test*) () from /usr/lib/64/libcppunit-1.14.so.0
  58. #3 0xfffffc7fdc5580af in CppUnit::TestResult::startTest(CppUnit::Test*) () from /usr/lib/64/libcppunit-1.14.so.0
  59. #4 0xfffffc7fdc54f83b in CppUnit::TestCase::run(CppUnit::TestResult*) () from /usr/lib/64/libcppunit-1.14.so.0
  60. #5 0xfffffc7fdc5500c4 in CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) () from /usr/lib/64/libcppunit-1.14.so.0
  61. #6 0xfffffc7fdc54ff08 in CppUnit::TestComposite::run(CppUnit::TestResult*) [clone .localalias.18] () from /usr/lib/64/libcppunit-1.14.so.0
  62. #7 0xfffffc7fdc557b33 in CppUnit::TestResult::runTest(CppUnit::Test*) () from /usr/lib/64/libcppunit-1.14.so.0
  63. #8 0xfffffc7fdc55a594 in CppUnit::TestRunner::run(CppUnit::TestResult&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/lib/64/libcppunit-1.14.so.0
  64. #9 0xfffffc7fdc55c9e6 in CppUnit::TextTestRunner::run(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, bool, bool) () from /usr/lib/64/libcppunit-1.14.so.0
  65. #10 0x0000000000421da3 in main ()
  66. >>> q
  67.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement