Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime error: reference binding to address 0x7ffec1ae3d54 with insufficient space for an object of type 'const always' #627

Open
matthijs opened this issue Nov 28, 2024 · 0 comments

Comments

@matthijs
Copy link

Expected Behavior

No undefined behaviour when using this library.

Actual Behavior

Although the test works it shows that there is undefined behaviour. I've taken one of the examples (data.cpp) to check.

Steps to Reproduce the Problem

  1. Take data.cpp as example (and the master of this repository)
  2. Compile with the following lines:
clang++ -isystem /home/matthijs/src/boost/boost_1_86_0 -fno-omit-frame-pointer -O1 -fsanitize=address,undefined,pointer-compare,pointer-subtract,leak -fsanitize-address-use-after-scope -Wall -Wextra -g -std=gnu++20 -o test  test.cpp

Running the test:

matthijs@vms03:~/test3$ ./test
/usr/local/include/boost/sml.hpp:2559:76: runtime error: reference binding to address 0x7ffec1ae3d54 with insufficient space for an object of type 'const always'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 00 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:2559:76
/usr/local/include/boost/sml.hpp:2562:65: runtime error: reference binding to address 0x7ffec1ae3d54 with insufficient space for an object of type 'const always'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 00 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:2562:65
/usr/local/include/boost/sml.hpp:2196:68: runtime error: constructor call on address 0x7ffec1ae3d54 with insufficient space for an object of type 'boost::sml::aux::zero_wrapper<(lambda at test.cpp:40:25)>'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 00 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:2196:68
/usr/local/include/boost/sml.hpp:2100:41: runtime error: reference binding to address 0x7ffec1ae3d54 with insufficient space for an object of type 'boost::sml::aux::zero_wrapper<(lambda at test.cpp:40:25)>'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 00 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:2100:41
/usr/local/include/boost/sml.hpp:2100:41: runtime error: constructor call on address 0x7ffec1ae3d54 with insufficient space for an object of type 'boost::sml::aux::zero_wrapper<(lambda at test.cpp:40:25)>'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 00 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:2100:41
/usr/local/include/boost/sml.hpp:358:64: runtime error: reference binding to address 0x7ffec1ae3d54 with insufficient space for an object of type 'const boost::sml::aux::zero_wrapper<(lambda at test.cpp:40:25)>'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 00 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:358:64
/usr/local/include/boost/sml.hpp:2559:76: runtime error: reference binding to address 0x7ffec1ae3d54 with insufficient space for an object of type 'const always'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 00 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:2559:76
/usr/local/include/boost/sml.hpp:2562:65: runtime error: reference binding to address 0x7ffec1ae3d54 with insufficient space for an object of type 'const always'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 00 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:2562:65
/usr/local/include/boost/sml.hpp:2559:76: runtime error: reference binding to address 0x7ffec1ae3d54 with insufficient space for an object of type 'const always'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 00 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:2559:76
/usr/local/include/boost/sml.hpp:2562:65: runtime error: reference binding to address 0x7ffec1ae3d54 with insufficient space for an object of type 'const always'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 00 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:2562:65
/usr/local/include/boost/sml.hpp:2559:76: runtime error: reference binding to address 0x7ffec1ae3d54 with insufficient space for an object of type 'const always'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 00 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:2559:76
/usr/local/include/boost/sml.hpp:2562:65: runtime error: reference binding to address 0x7ffec1ae3d54 with insufficient space for an object of type 'const always'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 00 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:2562:65
127.0.0.1:1024
/usr/local/include/boost/sml.hpp:2110:72: runtime error: constructor call on address 0x7ffec1ae3d54 with insufficient space for an object of type 'boost::sml::aux::zero_wrapper<(lambda at test.cpp:40:25)>'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 04 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:2110:72
/usr/local/include/boost/sml.hpp:2075:12: runtime error: upcast of address 0x7ffec1ae3d54 with insufficient space for an object of type 'boost::sml::aux::zero_wrapper<(lambda at test.cpp:40:25)>'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 04 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:2075:12
/usr/local/include/boost/sml.hpp:2075:12: runtime error: member call on address 0x7ffec1ae3d54 with insufficient space for an object of type 'boost::sml::aux::zero_wrapper_impl<(lambda at test.cpp:40:25), boost::sml::aux::type_list<(anonymous namespace)::Connected &, (anonymous namespace)::Interrupted &>>'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 04 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:2075:12
/usr/local/include/boost/sml.hpp:578:59: runtime error: member call on address 0x7ffec1ae3d54 with insufficient space for an object of type '(lambda at test.cpp:40:25)'
0x7ffec1ae3d54: note: pointer points here
  00 00 00 00 00 04 00 00  00 80 77 7b ff 0f 00 00  58 01 c0 db f7 7f 00 00  78 01 c0 db f7 7f 00 00
              ^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/sml.hpp:578:59
127.0.0.1:1024
127.0.0.1:1025
127.0.0.1:1025

Specifications

  • Version: LLVM version 18
  • Platform: Debian GNU/Linux 12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant