https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81021

--- Comment #13 from Avi Kivity <a...@cloudius-systems.com> ---
Output:

$ build/debug/tests/view_schema_test_g -- --smp 1 -m 1G
WARNING: debug mode. Not for benchmarking or production
Running 60 test cases...
WARN  2017-07-10 11:41:14,955 seastar - Seastar compiled with default
allocator, heap profiler not supported
==7130==WARNING: ASan doesn't fully support makecontext/swapcontext functions
and may produce false positives in some cases!
INFO  2017-07-10 11:41:15,021 [shard 0] messaging_service - Starting Messaging
Service on port 7000
INFO  2017-07-10 11:41:15,026 [shard 0] database - Row: max_vector_size: 32,
internal_count: 5
INFO  2017-07-10 11:41:15,113 [shard 0] database - Setting compaction strategy
of system_schema.keyspaces to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,138 [shard 0] database - Setting compaction strategy
of system_schema.tables to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,151 [shard 0] database - Setting compaction strategy
of system_schema.columns to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,165 [shard 0] database - Setting compaction strategy
of system_schema.dropped_columns to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,176 [shard 0] database - Setting compaction strategy
of system_schema.triggers to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,200 [shard 0] database - Setting compaction strategy
of system_schema.views to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,211 [shard 0] database - Setting compaction strategy
of system_schema.indexes to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,225 [shard 0] database - Setting compaction strategy
of system_schema.types to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,241 [shard 0] database - Setting compaction strategy
of system_schema.functions to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,253 [shard 0] database - Setting compaction strategy
of system_schema.aggregates to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,263 [shard 0] database - Setting compaction strategy
of system.IndexInfo to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,275 [shard 0] database - Setting compaction strategy
of system.hints to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,287 [shard 0] database - Setting compaction strategy
of system.batchlog to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,301 [shard 0] database - Setting compaction strategy
of system.paxos to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,323 [shard 0] database - Setting compaction strategy
of system.local to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,341 [shard 0] database - Setting compaction strategy
of system.peers to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,350 [shard 0] database - Setting compaction strategy
of system.peer_events to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,360 [shard 0] database - Setting compaction strategy
of system.range_xfers to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,373 [shard 0] database - Setting compaction strategy
of system.compactions_in_progress to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,387 [shard 0] database - Setting compaction strategy
of system.compaction_history to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,401 [shard 0] database - Setting compaction strategy
of system.sstable_activity to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,412 [shard 0] database - Setting compaction strategy
of system.size_estimates to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,426 [shard 0] database - Setting compaction strategy
of system.schema_keyspaces to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,457 [shard 0] database - Setting compaction strategy
of system.schema_columnfamilies to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,473 [shard 0] database - Setting compaction strategy
of system.schema_columns to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,483 [shard 0] database - Setting compaction strategy
of system.schema_triggers to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,497 [shard 0] database - Setting compaction strategy
of system.schema_usertypes to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,512 [shard 0] database - Setting compaction strategy
of system.schema_functions to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,529 [shard 0] database - Setting compaction strategy
of system.schema_aggregates to SizeTieredCompactionStrategy
INFO  2017-07-10 11:41:15,530 [shard 0] database - Populating Keyspace
system_schema
INFO  2017-07-10 11:41:15,531 [shard 0] database - Keyspace system_schema:
Reading CF aggregates 
INFO  2017-07-10 11:41:15,572 [shard 0] database - Keyspace system_schema:
Reading CF functions 
INFO  2017-07-10 11:41:15,615 [shard 0] database - Keyspace system_schema:
Reading CF indexes 
INFO  2017-07-10 11:41:15,658 [shard 0] database - Keyspace system_schema:
Reading CF tables 
INFO  2017-07-10 11:41:15,700 [shard 0] database - Keyspace system_schema:
Reading CF dropped_columns 
INFO  2017-07-10 11:41:15,743 [shard 0] database - Keyspace system_schema:
Reading CF types 
INFO  2017-07-10 11:41:15,787 [shard 0] database - Keyspace system_schema:
Reading CF keyspaces 
INFO  2017-07-10 11:41:15,831 [shard 0] database - Keyspace system_schema:
Reading CF columns 
INFO  2017-07-10 11:41:15,874 [shard 0] database - Keyspace system_schema:
Reading CF triggers 
INFO  2017-07-10 11:41:15,917 [shard 0] database - Keyspace system_schema:
Reading CF views 
INFO  2017-07-10 11:41:15,971 [shard 0] database - Populating Keyspace system
INFO  2017-07-10 11:41:15,971 [shard 0] database - Keyspace system: Reading CF
schema_aggregates 
INFO  2017-07-10 11:41:16,014 [shard 0] database - Keyspace system: Reading CF
schema_functions 
INFO  2017-07-10 11:41:16,057 [shard 0] database - Keyspace system: Reading CF
schema_usertypes 
INFO  2017-07-10 11:41:16,099 [shard 0] database - Keyspace system: Reading CF
peers 
INFO  2017-07-10 11:41:16,141 [shard 0] database - Keyspace system: Reading CF
schema_triggers 
INFO  2017-07-10 11:41:16,184 [shard 0] database - Keyspace system: Reading CF
local 
INFO  2017-07-10 11:41:16,226 [shard 0] database - Keyspace system: Reading CF
schema_keyspaces 
INFO  2017-07-10 11:41:16,269 [shard 0] database - Keyspace system: Reading CF
paxos 
INFO  2017-07-10 11:41:16,312 [shard 0] database - Keyspace system: Reading CF
batchlog 
INFO  2017-07-10 11:41:16,354 [shard 0] database - Keyspace system: Reading CF
size_estimates 
INFO  2017-07-10 11:41:16,396 [shard 0] database - Keyspace system: Reading CF
IndexInfo 
INFO  2017-07-10 11:41:16,439 [shard 0] database - Keyspace system: Reading CF
range_xfers 
INFO  2017-07-10 11:41:16,482 [shard 0] database - Keyspace system: Reading CF
compactions_in_progress 
INFO  2017-07-10 11:41:16,525 [shard 0] database - Keyspace system: Reading CF
hints 
INFO  2017-07-10 11:41:16,569 [shard 0] database - Keyspace system: Reading CF
compaction_history 
INFO  2017-07-10 11:41:16,610 [shard 0] database - Keyspace system: Reading CF
peer_events 
INFO  2017-07-10 11:41:16,653 [shard 0] database - Keyspace system: Reading CF
sstable_activity 
INFO  2017-07-10 11:41:16,696 [shard 0] database - Keyspace system: Reading CF
schema_columnfamilies 
INFO  2017-07-10 11:41:16,738 [shard 0] database - Keyspace system: Reading CF
schema_columns 
WARN  2017-07-10 11:41:17,636 [shard 0] database - Skipping undefined keyspace:
commitlog.dir
INFO  2017-07-10 11:41:17,681 [shard 0] storage_service - Loading persisted
ring state
INFO  2017-07-10 11:41:17,691 [shard 0] storage_service - load_peer_features:
peer_features size=0
INFO  2017-07-10 11:41:17,691 [shard 0] storage_service - Checking remote
features skipped, since this node is a new seed node which knows nothing about
the cluster
INFO  2017-07-10 11:41:17,823 [shard 0] storage_service - Starting up server
gossip
INFO  2017-07-10 11:41:17,953 [shard 0] messaging_service - Starting Messaging
Service on port 7000
INFO  2017-07-10 11:41:18,057 [shard 0] database - Schema version changed to
59adb24e-f3cd-3e02-97f0-5b395827453f
INFO  2017-07-10 11:41:18,102 [shard 0] storage_service - This node will not
auto bootstrap because it is configured to be a seed node.
INFO  2017-07-10 11:41:18,109 [shard 0] storage_service - Generated random
tokens. tokens are {5277017775470228232, -3149032176503632173,
6918678879915053103, -6214059385919638191, 431518700249747231,
-2795520657113736572, -9171576655963096531, -4236095787031081532,
-862742671094537682, -8786752690166129600, -794561857450593587,
4280499881535802017, -5254270875140267035, 8576469168768206662,
7603559258420162578, 9203421070445168457, 1965934070155273368,
-8714145087808133711, 201509160966781703, 5618298268306836006,
1222683424586290082, -8794375030421978821, 1811798210834461323,
1107322262212111991, -2285242727787964858, -8556080526733354592,
-3737909030439096473, -6723038530593856458, -6531722454757872447,
7609157480713920819, 3223968038723178127, -4920796840658363696,
-6171622099032705176, -3636630340658873271, -3798310933864147217,
3369128621765164656, 3500118117754486898, -1526654947517780574,
284579136422396478, 1961523005439521634, 2456063035677020331,
-2090772194978868834, -4495343564310927573, -6497871392230163591,
4784374479910449914, -553319205009893408, -861694641480896039,
3889323806968516224, 6431810399906284122, -660879007195459292,
-5230356761069292043, 2944864738543723420, 8146340287861716001,
1811314971692508645, 2078317847706225173, -3666082038053298337,
-9194675185869479406, 4963616799241321100, 5611114226450976338,
6153982833108503554, 6763094016138499808, 4074010566085689515,
5113766936376121209, 2321067787764961022, 3013219229139303437,
2379100950945208352, -5362175870843682657, -3060344689905207117,
-4136760943793516623, 4704252142101803275, -4834626097888479167,
-5328822815818541760, -7978118885021032382, -7123134448010757672,
4467206096391582825, 3164753419578643811, -5129852743422530855,
957744560650596721, 1915802836757386300, -3858403897874012575,
-3098097984096299369, -7475220334192342022, 4643101791818822553,
2961284724578411456, -74052646822649718, -3305355950088603673,
-8326161457349473048, 5324380674624003558, 3820204443284041232,
-4953521240695843861, 1591403258715213023, -146190511374040940,
2217095833913961599, 5209600754722468059, -4852904940987897568,
-2608879648961693850, 714472393579150367, -3133878073266057171,
8246635347271898930, -2724471908154653789, -5705685456265636161,
1359956809699057541, -206076922347835399, 6366138749414281464,
6540358945660468872, -631133175253971822, -6628637206719785000,
-2906426982270429430, -8394994385276009641, -8797250288713679045,
3093049289988779517, 2250901526199599924, -1005927695454676467,
7319829808469568663, 8081718430081243705, 5727518238667703436,
-3692789498306194774, 1962812807096680182, -222571430943243441,
5369442114722151154, 3108003686421710978, -2428815741054963959,
-245989541129556317, -362287780358971353, -6314744459329608615,
-6438251120987526228, 8296887618090334790, -8621074758944893441,
5233598531116091025, 7739609218967273266, 1518217212077664801,
5385316569069229535, 3696319673368847556, 8023110829857289340,
-2245747907366892349, -7181966470622069155, -5471566543868058604,
6333139432811292792, 8705423835063178360, -6570305392799039413,
2158313343400598561, 8865082921666912174, -7877916836002986142,
7040916577112724433, -5007528877769182900, -1671538483673809220,
-2552440704217853242, 6736839334881147503, -4514835216881263566,
-6570440945175133226, 1877199639196945732, -1435804309482919606,
9160807649866047676, 9090651636172848294, 7197799920595750043,
3423721910129576296, -8594249671502201188, -4464132814935342123,
197295883190268528, 8403560927793850950, 4530187890895994561,
4664071858863586825, 1364408225948321145, 5035993506645611335,
-2732856538056336220, 539751703024870426, -1406349987842940974,
2187780504945802486, -9000701069265132474, -7855669465753699782,
2150001954001865695, 6913937375009580547, -256832459897465421,
4914935678409409030, -1984921949184022590, 4417126742309622525,
9190620833864259391, -7465177894070855439, 6444360212164351146,
1371800440055610080, -8725628412686165557, 4639621185361894812,
-469742335694819354, -8643774315479598905, 6242805936508052819,
-8854795361548416758, 7898315227689894832, 6694737723790039724,
941568141969804298, -397963969161795303, 654204114074803448,
-8650704849201966023, -3354325394331352329, -3521641320785712809,
3523117924917544910, 91687065838866709, 6421980122092051674,
8378045081182400995, -5389937341498965536, 8959680664522416824,
-863935521696228286, 8590423201507568074, -3973077845070693883,
-3826303978083295704, 9011849040472675929, -1726699824563081126,
-2899374781909880791, 1248046833025584285, 5715774048319627062,
858873693475937886, -6803160176907357231, 4112459414198554355,
-5819119801775748249, 1827951546032884449, -7058479370545777919,
-4677321685401598423, -1334334745567416052, -6938152656691332623,
8918589145301947990, -7181573130144063157, 4647718129660392004,
-7478981417093451087, -4720627975526908736, -2104775542918632938,
-5295543441533960099, -7915856732950957729, -6927416052080866543,
-3907693495779328989, 8654238939157944624, 8343427532792956961,
-4018826674293891761, 7456906641455858038, 1708718365179196219,
3385096500971950349, 1973734113926124692, -8597432305828740208,
-4161795129675830049, -3822168596590714198, 5016775091295446409,
234992356666874853, 3308449546899129755, 7953732782563230068,
1463407973215183128, 8584021837666842398, -3552018655300461689,
-4832509822091931339, 7777341259346398983, 7074072680576302988,
-8220155290136719480, -5180704995802562185, 5275918723393323762,
7960843074958532810, 7972039309090988092, -2082584600391249606,
-7471903590609996799, -1957943304721421766}
INFO  2017-07-10 11:41:18,431 [shard 0] compaction - Compacting
[tmpdir_brV4rt/system/local-7ad54392bcdd35a684174e047860b377/system-local-ka-2-Data.db:level=0,
tmpdir_brV4rt/system/local-7ad54392bcdd35a684174e047860b377/system-local-ka-1-Data.db:level=0,
tmpdir_brV4rt/system/local-7ad54392bcdd35a684174e047860b377/system-local-ka-3-Data.db:level=0,
tmpdir_brV4rt/system/local-7ad54392bcdd35a684174e047860b377/system-local-ka-4-Data.db:level=0,
]
INFO  2017-07-10 11:41:18,545 [shard 0] storage_service - Node 127.0.0.1 state
jump to normal
INFO  2017-07-10 11:41:18,686 [shard 0] storage_service - NORMAL: node is now
in normal status
INFO  2017-07-10 11:41:18,686 [shard 0] gossip - Feature RANGE_TOMBSTONES is
enabled
INFO  2017-07-10 11:41:18,686 [shard 0] gossip - Feature LARGE_PARTITIONS is
enabled
INFO  2017-07-10 11:41:18,687 [shard 0] gossip - Feature COUNTERS is enabled
INFO  2017-07-10 11:41:18,687 [shard 0] gossip - Feature MATERIALIZED_VIEWS is
enabled
INFO  2017-07-10 11:41:18,687 [shard 0] gossip - Feature INDEXES is enabled
=================================================================
==7130==ERROR: AddressSanitizer: stack-use-after-scope on address
0x7fc0e6067220 at pc 0x00000a5890e2 bp 0x7fc0e60670f0 sp 0x7fc0e60670e0
WRITE of size 32 at 0x7fc0e6067220 thread T1
    #0 0xa5890e1 in
single_node_cql_env::create_keyspace(seastar::basic_sstring<char, unsigned int,
15u>) tests/cql_test_env.cc:247
    #1 0xa59e9d6 in
single_node_cql_env::do_with(std::function<seastar::future<> (cql_test_env&)>,
db::config const&)::{lambda()#1}::operator()() const tests/cql_test_env.cc:348
    #2 0xa71ba44 in
seastar::apply_helper<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}, std::tuple<>&&,
std::integer_sequence<unsigned long> >::apply({lambda()#1}&&, std::tuple<>)
seastar/core/apply.hh:36
    #3 0xa71bacb in auto
seastar::apply<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config
const&)::{lambda()#1}>(single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}&&, std::tuple<>&&)
seastar/core/apply.hh:44
    #4 0xa71bbec in
std::enable_if<!seastar::is_future<std::result_of<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1} ()>::type>::value,
seastar::future<> >::type
seastar::do_void_futurize_apply_tuple<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}>(std::result_of&&,
std::tuple<(single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1})...>&&)
seastar/core/future.hh:1270
    #5 0xa6a75a8 in seastar::future<>
seastar::futurize<void>::apply<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config
const&)::{lambda()#1}>(single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}&&, std::tuple<>&&)
seastar/core/future.hh:1290
    #6 0xa6381cb in
seastar::futurize<std::result_of<std::decay<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}>::type ()>::type>::type
seastar::async<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}>(seastar::thread_attributes,
std::decay&&,
(std::decay<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config
const&)::{lambda()#1}>::type&&)...)::{lambda(seastar::futurize<std::result_of<std::decay<auto:1>::type
()>::type>
seastar::async<{lambda()#1}>(seastar::futurize<std::result_of<std::decay<auto:1>::type
()>::type>::type, seastar::thread_attributes,
std::decay<auto:1>::type&&)::work&)#1}::operator()(seastar::futurize<std::result_of<std::decay<{lambda()#1}>::type
()>::type>
seastar::async<{lambda()#1}>(seastar::futurize<std::result_of<std::decay<{lambda()#1}>::type
()>::type>::type, seastar::thread_attributes,
std::decay<{lambda()#1}>::type&&)::work)::{lambda()#1}::operator()() const
seastar/core/thread.hh:312
    #7 0xa797c31 in std::_Function_handler<void (),
seastar::futurize<std::result_of<std::decay<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}>::type ()>::type>::type
seastar::async<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}>(seastar::thread_attributes,
std::decay&&,
(std::decay<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config
const&)::{lambda()#1}>::type&&)...)::{lambda(seastar::futurize<std::result_of<std::decay<auto:1>::type
()>::type>
seastar::async<{lambda()#1}>(seastar::futurize<std::result_of<std::decay<auto:1>::type
()>::type>::type, seastar::thread_attributes,
std::decay<auto:1>::type&&)::work&)#1}::operator()(seastar::futurize<std::result_of<std::decay<{lambda()#1}>::type
()>::type>
seastar::async<{lambda()#1}>(seastar::futurize<std::result_of<std::decay<{lambda()#1}>::type
()>::type>::type, seastar::thread_attributes,
std::decay<{lambda()#1}>::type&&)::work)::{lambda()#1}>::_M_invoke(std::_Any_data
const&) /usr/include/c++/7/bits/std_function.h:316
    #8 0x787ba9 in std::function<void ()>::operator()() const
/usr/include/c++/7/bits/std_function.h:706
    #9 0xc12440 in seastar::thread_context::main() core/thread.cc:300

0x7fc0e6067220 is located 13095456 bytes inside of 13107200-byte region
[0x7fc0e53ea000,0x7fc0e606a000)
allocated by thread T1 here:
    #0 0x7fc0f75c74a0 in posix_memalign (/lib64/libasan.so.4+0xdf4a0)
    #1 0xaa70d2 in operator new[](unsigned long, seastar::with_alignment)
core/memory.cc:1754
    #2 0xc0d590 in seastar::thread_context::make_stack() core/thread.cc:169
    #3 0xc0c7b3 in
seastar::thread_context::thread_context(seastar::thread_attributes,
std::function<void ()>) core/thread.cc:153
    #4 0xa71bfd2 in std::_MakeUniq<std::decay>::__single_object
std::make_unique<seastar::thread_context, seastar::thread_attributes,
seastar::futurize<std::result_of<std::decay<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}>::type ()>::type>::type
seastar::async<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}>(seastar::thread_attributes,
std::decay&&,
(std::decay<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config
const&)::{lambda()#1}>::type&&)...)::{lambda(seastar::futurize<std::result_of<std::decay<auto:1>::type
()>::type> seastar::async<{lambda()#1}>(seastar::thread_attributes,
seastar::futurize<std::result_of<std::decay<auto:1>::type ()>::type>::type,
std::decay<auto:1>::type&&)::work&)#1}::operator()(seastar::futurize<std::result_of<std::decay<{lambda()#1}>::type
()>::type> seastar::async<{lambda()#1}>(seastar::thread_attributes,
seastar::futurize<std::result_of<std::decay<{lambda()#1}>::type
()>::type>::type,
std::decay<{lambda()#1}>::type&&)::work)::{lambda()#1}&>(std::decay<seastar::thread_context>::type&&)
/usr/include/c++/7/bits/unique_ptr.h:825
    #5 0xa6a7673 in
_ZN7seastar6threadC2IZZNS_5asyncIZN19single_node_cql_env7do_withESt8functionIFNS_6futureIJEEER12cql_test_envEERKN2db6configEEUlvE_JEEENS_8futurizeINSt9result_ofIFNSt5decayIT_E4typeEDpNSI_IT0_E4typeEEE4typeEE4typeENS_17thread_attributesEOSJ_DpOSM_ENUlRZNS2_ISF_JEEESU_SV_SW_SY_E4workE_clES10_EUlvE_EESV_SJ_
seastar/core/thread.hh:258
    #6 0xa636ddf in
seastar::futurize<std::result_of<std::decay<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}>::type ()>::type>::type
seastar::async<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}>(seastar::thread_attributes,
std::decay&&,
(std::decay<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config
const&)::{lambda()#1}>::type&&)...)::{lambda(seastar::futurize<std::result_of<std::decay<auto:1>::type
()>::type>
seastar::async<{lambda()#1}>(seastar::futurize<std::result_of<std::decay<auto:1>::type
()>::type>::type, seastar::thread_attributes,
std::decay<auto:1>::type&&)::work&)#1}::operator()(seastar::futurize<std::result_of<std::decay<{lambda()#1}>::type
()>::type>
seastar::async<{lambda()#1}>(seastar::futurize<std::result_of<std::decay<{lambda()#1}>::type
()>::type>::type, seastar::thread_attributes,
std::decay<{lambda()#1}>::type&&)::work) seastar/core/thread.hh:311
    #7 0xa639712 in
_ZN7seastar7do_withIZNS_5asyncIZN19single_node_cql_env7do_withESt8functionIFNS_6futureIJEEER12cql_test_envEERKN2db6configEEUlvE_JEEENS_8futurizeINSt9result_ofIFNSt5decayIT_E4typeEDpNSH_IT0_E4typeEEE4typeEE4typeENS_17thread_attributesEOSI_DpOSL_E4workZNS1_ISE_JEEEST_SU_SV_SX_EUlRSY_E_EEDaSV_OT0_
seastar/core/do_with.hh:57
    #8 0xa63a04a in
seastar::futurize<std::result_of<std::decay<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}>::type ()>::type>::type
seastar::async<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}>(seastar::thread_attributes,
std::decay&&,
(std::decay<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}>::type&&)...)
seastar/core/thread.hh:317
    #9 0xa5db254 in
seastar::futurize<std::result_of<std::decay<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}>::type ()>::type>::type
seastar::async<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}>(std::decay&&,
(std::decay<single_node_cql_env::do_with(std::function<seastar::future<>
(cql_test_env&)>, db::config const&)::{lambda()#1}>::type&&)...)
seastar/core/thread.hh:333
    #10 0xa5b27aa in
single_node_cql_env::do_with(std::function<seastar::future<> (cql_test_env&)>,
db::config const&) tests/cql_test_env.cc:352
    #11 0xa561f3a in do_with_cql_env_thread(std::function<void
(cql_test_env&)>, db::config const&) tests/cql_test_env.cc:372
    #12 0xa5621aa in do_with_cql_env_thread(std::function<void
(cql_test_env&)>) tests/cql_test_env.cc:376
    #13 0x13e7d4c in test_case_sensitivity::run_test_case()
tests/view_schema_test.cc:75
    #14 0xa9e5b23 in operator() seastar/tests/test-utils.cc:47
    #15 0xaa09180 in _M_invoke /usr/include/c++/7/bits/std_function.h:302
    #16 0x796af7 in std::function<seastar::future<> ()>::operator()() const
/usr/include/c++/7/bits/std_function.h:706
    #17 0xab5a345 in operator() seastar/tests/test_runner.cc:76
    #18 0xab6132d in _M_invoke /usr/include/c++/7/bits/std_function.h:302
    #19 0x796af7 in std::function<seastar::future<> ()>::operator()() const
/usr/include/c++/7/bits/std_function.h:706
    #20 0xab5805a in operator() seastar/tests/test_runner.cc:56
    #21 0xab5f2dd in do_until_continued<seastar::test_runner::start(int,
char**)::<lambda()> mutable::<lambda()>::<lambda()>,
seastar::test_runner::start(int, char**)::<lambda()>
mutable::<lambda()>::<lambda()> >
/home/avi/urchin/seastar/core/future-util.hh:155
    #22 0xab5b364 in do_until<seastar::test_runner::start(int,
char**)::<lambda()> mutable::<lambda()>::<lambda()>,
seastar::test_runner::start(int, char**)::<lambda()>
mutable::<lambda()>::<lambda()> >
/home/avi/urchin/seastar/core/future-util.hh:330
    #23 0xab58506 in operator() seastar/tests/test_runner.cc:52
    #24 0xab604b1 in _M_invoke /usr/include/c++/7/bits/std_function.h:316
    #25 0x787ba9 in std::function<void ()>::operator()() const
/usr/include/c++/7/bits/std_function.h:706
    #26 0xbfeb1f in seastar::apply_helper<std::function<void ()>,
std::tuple<>&&, std::integer_sequence<unsigned long>
>::apply(std::function<void ()>&&, std::tuple<>&&)
/home/avi/urchin/seastar/core/apply.hh:36
    #27 0xbfeba6 in auto seastar::apply<std::function<void
()>>(std::function<void ()>&&, std::tuple<>&&)
/home/avi/urchin/seastar/core/apply.hh:44
    #28 0xbfecc7 in
std::enable_if<!seastar::is_future<std::result_of<std::function<void ()>
()>::type>::value, seastar::future<> >::type
seastar::do_void_futurize_apply_tuple<std::function<void
()>>(std::function<void ()>&&, std::tuple<>&&)
/home/avi/urchin/seastar/core/future.hh:1270
    #29 0xbfa1b4 in seastar::future<>
seastar::futurize<void>::apply<std::function<void ()>>(std::function<void
()>&&, std::tuple<>&&) /home/avi/urchin/seastar/core/future.hh:1290

Thread T1 created by T0 here:
    #0 0x7fc0f751fa2f in pthread_create (/lib64/libasan.so.4+0x37a2f)
    #1 0xaa2d40 in
seastar::posix_thread::posix_thread(seastar::posix_thread::attr,
std::function<void ()>) core/posix.cc:83
    #2 0xaa273c in seastar::posix_thread::posix_thread(std::function<void ()>)
core/posix.cc:57
    #3 0xab5c267 in make_unique<seastar::posix_thread,
seastar::test_runner::start(int, char**)::<lambda()> >
/usr/include/c++/7/bits/unique_ptr.h:825
    #4 0xab59506 in seastar::test_runner::start(int, char**)
seastar/tests/test_runner.cc:49
    #5 0xa9e701d in seastar::init_unit_test_suite()
seastar/tests/test-utils.cc:77
    #6 0xa981f42 in invoke_init_func
/usr/include/boost/test/impl/framework.ipp:176
    #7 0xab1dddf in void boost::_bi::list1<boost::_bi::value<bool (*)()>
>::operator()<void (*)(bool (*)()), boost::_bi::list0>(boost::_bi::type<void>,
void (*&)(bool (*)()), boost::_bi::list0&, int)
/usr/include/boost/bind/bind.hpp:259
    #8 0xab106cd in boost::_bi::bind_t<void, void (*)(bool (*)()),
boost::_bi::list1<boost::_bi::value<bool (*)()> > >::operator()()
/usr/include/boost/bind/bind.hpp:1294
    #9 0xaafa743 in
boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void,
void (*)(bool (*)()), boost::_bi::list1<boost::_bi::value<bool (*)()> > >,
void>::invoke(boost::detail::function::function_buffer&)
/usr/include/boost/function/function_template.hpp:159
    #10 0x36e8a9b in boost::function0<void>::operator()() const
/usr/include/boost/function/function_template.hpp:770
    #11 0xaa400b7 in boost::detail::forward::operator()()
/usr/include/boost/test/impl/execution_monitor.ipp:1300
    #12 0xaafe5d8 in
boost::detail::function::function_obj_invoker0<boost::detail::forward,
int>::invoke(boost::detail::function::function_buffer&)
/usr/include/boost/function/function_template.hpp:138
    #13 0xaaaa8c7 in boost::function0<int>::operator()() const
/usr/include/boost/function/function_template.hpp:771
    #14 0xaa74e61 in int
boost::detail::do_invoke<boost::shared_ptr<boost::detail::translator_holder_base>,
boost::function<int ()>
>(boost::shared_ptr<boost::detail::translator_holder_base> const&,
boost::function<int ()> const&)
/usr/include/boost/test/impl/execution_monitor.ipp:281
    #15 0xa993db1 in
boost::execution_monitor::catch_signals(boost::function<int ()> const&)
/usr/include/boost/test/impl/execution_monitor.ipp:864
    #16 0xa9942a6 in boost::execution_monitor::execute(boost::function<int ()>
const&) /usr/include/boost/test/impl/execution_monitor.ipp:1203
    #17 0xa996b32 in boost::execution_monitor::vexecute(boost::function<void
()> const&) /usr/include/boost/test/impl/execution_monitor.ipp:1309
    #18 0xa988d24 in boost::unit_test::framework::init(bool (*)(), int, char**)
/usr/include/boost/test/impl/framework.ipp:1065
    #19 0xa9c0960 in boost::unit_test::unit_test_main(bool (*)(), int, char**)
/usr/include/boost/test/impl/unit_test_main.ipp:189
    #20 0xa9e7193 in main seastar/tests/test-utils.cc:84
    #21 0x7fc0f19cd4d9 in __libc_start_main (/lib64/libc.so.6+0x204d9)

SUMMARY: AddressSanitizer: stack-use-after-scope tests/cql_test_env.cc:247 in
single_node_cql_env::create_keyspace(seastar::basic_sstring<char, unsigned int,
15u>)
Shadow bytes around the buggy address:
  0x0ff89cc04df0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ff89cc04e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ff89cc04e10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ff89cc04e20: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2
  0x0ff89cc04e30: f2 f2 f2 f2 00 00 f2 f2 f2 f2 f2 f2 00 00 00 00
=>0x0ff89cc04e40: f2 f2 f2 f2[f8]f8 00 00 f3 f3 f3 f3 00 00 00 00
  0x0ff89cc04e50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ff89cc04e60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ff89cc04e70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ff89cc04e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ff89cc04e90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==7130==ABORTING

Reply via email to