Skip to content

Logical error: 'ReadBuffer is canceled. Can't read from it.'. #84186

@tuanpach

Description

@tuanpach

Important: This issue was automatically generated and is used by CI for matching failures. DO NOT modify the body content. DO NOT remove labels.

Test name: Logical error: 'ReadBuffer is canceled. Can't read from it.' (STID: 2508-26e4)
CI report: BuzzHouse (arm_asan)
CIDB statistics: cidb

Test output:

Error:
Logical error: 'ReadBuffer is canceled. Can't read from it.'.
---

Failed query:
INSERT INTO TABLE d5.`t43` (`c2`, `c0`, `c1`) VALUES 
---

Stack trace:
__pthread_kill_implementation @ 0x0000000000082009
raise @ 0x000000000003a83c
abort @ 0x0000000000027134
src/Common/Exception.cpp:54: DB::abortOnFailedAssertion(String const&, std::basic_string_view<char, std::char_traits<char>>, void* const*, unsigned long, unsigned long) @ 0x000000001dc6c3f4
src/Common/Exception.cpp:60: ? @ 0x000000001dc6ca84
src/IO/ReadBuffer.cpp:90: DB::ReadBuffer::next() @ 0x000000001de4b718
inlined from ./src/IO/ReadBuffer.h:81: DB::ReadBuffer::eof()
inlined from ./src/IO/VarInt.h:82: void DB::varint_impl::readVarUInt<true>(unsigned long&, DB::ReadBuffer&)
inlined from ./src/IO/VarInt.h:101: DB::readVarUInt(unsigned long&, DB::ReadBuffer&)
src/Server/TCPHandler.cpp:1102: DB::TCPHandler::receivePacketsExpectData(DB::QueryState&) @ 0x0000000033359af0
src/Server/TCPHandler.cpp:1175: DB::TCPHandler::skipData(DB::QueryState&) @ 0x000000003334d558
src/Server/TCPHandler.cpp:972: DB::TCPHandler::runImpl() @ 0x0000000033334d1c
src/Server/TCPHandler.cpp:2866: DB::TCPHandler::run() @ 0x000000003336abe4
base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x000000003f342638
base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000003f343268
base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x000000003f257178
./base/poco/Foundation/src/Thread_POSIX.cpp:341: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000003f251840
asan_thread_start(void*) @ 0x000000000f094ea8
start_thread @ 0x0000000000080398
thread_start @ 0x00000000000e9e9c

Test: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=73100&sha=26819cc3037086c84d141d075873937f6196edf3&name_0=PR&name_1=Stress+test+%28amd_tsan%29

Fatal message: https://pastila.nl/?0002df04/99e0f01fcaa9175602c12b1771c49147#wywANh9PBsNUsP8rGhQIuA==

The buffer is canceled by injected fault:
https://pastila.nl/?002f2330/51ad165940ec85f9e8f080b0890678c7#kOPQJTa/s4MQCkntIW4srg==

triggering this assertion

{e18b34b3-3240-48f5-81ec-6110cde18058} <Fatal> : Logical error: 'ReadBuffer is canceled. Can't read from it.'.

@CheSema
We might need to treat the injected fault exception differently.

Metadata

Metadata

Assignees

Labels

bugConfirmed user-visible misbehaviour in official releasefuzzProblem found by one of the fuzzerstestingSpecial issue with list of bugs found by CI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions