profile
viewpoint
Alexander Millin millin N-SuN Moscow

millin/gitlab_tracking 2

Redmine: Tracking gitlab activity repo

millin/kafka-el7-rpm 1

A set of scripts to package Apache Kafka into an rpm (CentOS/RedHat 7)

millin/pg2mysql 1

Tool for safely migrating from PostgreSQL to MySQL

millin/PyAPNs 1

Python library for interacting with the Apple Push Notification service (APNs)

millin/ClickHouse 0

ClickHouse is a free analytic DBMS for big data.

millin/clickhouse-odbc 0

ODBC driver for ClickHouse

millin/clickhouse-rpm 0

ClickHouse DBMS build script for RHEL based distributions

millin/clickhouse_orm 0

A Python library for working with the ClickHouse database (https://clickhouse.yandex/)

millin/django 0

The Web framework for perfectionists with deadlines.

millin/django-async 0

A simple asynchronous execution Django application with proper database transaction management

issue commentClickHouse/ClickHouse

20.3 Segmentation fault during query with mysq() & GLOBAL JOIN

@4ertus2 I noticed that segmentation fault occurs only at high load on the server. When the load is light, the request simply fails with error like:

Poco::Exception. Code: 1000, e.code() = 224265568, e.displayText() = mysqlxx::Exception:  (H��H[]A\A]A^A_�f.�:224316616) (version 20.3.8.53 (official build))
millin

comment created time in 5 days

issue openedClickHouse/ClickHouse

20.4 Segmentation fault during query with illegal LowCardinality filter type

Describe the bug Segmentation fault occurs when WHERE filter contains illegal LowCardinality type.

How to reproduce

  • ClickHouse server version 20.4.6.53

  • Run the query with illegal filter:

SELECT * FROM table WHERE lowcardinality_string_column

Expected behavior

DB::Exception: Illegal type LowCardinality(String) of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them..

Error message and/or stacktrace

2020.06.26 06:52:26.828440 [ 1177 ] {} <Fatal> BaseDaemon: ########################################                                                                                                                                                          [20/48161]
2020.06.26 06:52:26.828534 [ 1177 ] {} <Fatal> BaseDaemon: (version 20.4.6.53 (official build)) (from thread 707) (query_id: 2b73ed59-7e17-4435-b513-a6a1009f8a8f) Received signal Segmentation fault (11).                                                            
2020.06.26 06:52:26.828569 [ 1177 ] {} <Fatal> BaseDaemon: Address: 0x14 Access: read. Address not mapped to object.                                                                                                                                                   
2020.06.26 06:52:26.828597 [ 1177 ] {} <Fatal> BaseDaemon: Stack trace: 0xcee82f0 0xcee8ad5 0xd5afbbf 0xcf5081d 0xd9bffff 0xd9c4b40 0xd9c5b74 0xd9eae0c 0xd9237d6 0xd92cadc 0xd92f433 0xd74048d 0xd64557c 0xd273c16 0xd276868 0xd23942d 0xd6746a7 0xd674af7 0xd675cbd 0
xd67c9f8 0xd665e75 0xd64557c 0xd273c16 0xd276868 0xd239673 0xd404fc0 0xd4070ec 0xd5445c9 0xd548000                                                                                                                                                                     
2020.06.26 06:52:26.829727 [ 1177 ] {} <Fatal> BaseDaemon: 3. DB::ReverseIndex<unsigned long, DB::ColumnString>::insert(StringRef const&) @ 0xcee82f0 in /usr/bin/clickhouse                                                                                           
2020.06.26 06:52:26.829799 [ 1177 ] {} <Fatal> BaseDaemon: 4. DB::ColumnUnique<DB::ColumnString>::uniqueInsertData(char const*, unsigned long) @ 0xcee8ad5 in /usr/bin/clickhouse                                                                                      
2020.06.26 06:52:26.830809 [ 1177 ] {} <Fatal> BaseDaemon: 5. DB::ColumnLowCardinality::insert(DB::Field const&) @ 0xd5afbbf in /usr/bin/clickhouse                                                                                                                    
2020.06.26 06:52:26.830916 [ 1177 ] {} <Fatal> BaseDaemon: 6. DB::IDataType::createColumnConst(unsigned long, DB::Field const&) const @ 0xcf5081d in /usr/bin/clickhouse                                                                                               
2020.06.26 06:52:26.831798 [ 1177 ] {} <Fatal> BaseDaemon: 7. DB::MergeTreeBaseSelectProcessor::executePrewhereActions(DB::Block&, std::__1::shared_ptr<DB::PrewhereInfo> const&) @ 0xd9bffff in /usr/bin/clickhouse                                                   
2020.06.26 06:52:26.831857 [ 1177 ] {} <Fatal> BaseDaemon: 8. DB::MergeTreeBaseSelectProcessor::getHeader(DB::Block, std::__1::shared_ptr<DB::PrewhereInfo> const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char
> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) @ 0xd9c4b40 in /usr/bin/clickhouse                                                                                                          
2020.06.26 06:52:26.831896 [ 1177 ] {} <Fatal> BaseDaemon: 9. DB::MergeTreeBaseSelectProcessor::MergeTreeBaseSelectProcessor(DB::Block, DB::MergeTreeData const&, std::__1::shared_ptr<DB::PrewhereInfo> const&, unsigned long, unsigned long, unsigned long, DB::Merge
TreeReaderSettings const&, bool, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) @ 0xd9c5
b74 in /usr/bin/clickhouse                                                                                                                                                                                                                                             
2020.06.26 06:52:26.832572 [ 1177 ] {} <Fatal> BaseDaemon: 10. DB::MergeTreeThreadSelectBlockInputProcessor::MergeTreeThreadSelectBlockInputProcessor(unsigned long, std::__1::shared_ptr<DB::MergeTreeReadPool> const&, unsigned long, unsigned long, unsigned long, u
nsigned long, DB::MergeTreeData const&, bool, std::__1::shared_ptr<DB::PrewhereInfo> const&, DB::MergeTreeReaderSettings const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::
basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) @ 0xd9eae0c in /usr/bin/clickhouse                                                                                                                                             
2020.06.26 06:52:26.833023 [ 1177 ] {} <Fatal> BaseDaemon: 11. DB::MergeTreeDataSelectExecutor::spreadMarkRangesAmongStreams(std::__1::vector<DB::RangesInDataPart, std::__1::allocator<DB::RangesInDataPart> >&&, unsigned long, std::__1::vector<std::__1::basic_stri
ng<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, unsigned long, bool, DB::SelectQueryInfo const&, std::__1::vector<std::__1::ba
sic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, DB::Settings const&, DB::MergeTreeReaderSettings const&) const @ 0xd9237d6 in /usr/bin/clickhouse
2020.06.26 06:52:26.833108 [ 1177 ] {} <Fatal> BaseDaemon: 12. DB::MergeTreeDataSelectExecutor::readFromParts(std::__1::vector<std::__1::shared_ptr<DB::IMergeTreeDataPart const>, std::__1::allocator<std::__1::shared_ptr<DB::IMergeTreeDataPart const> > >, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, DB::SelectQueryInfo const&, DB::Context const&, unsigned long, unsigned int, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, long, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, long> > > const*) const @ 0xd92cadc in /usr/bin/clickhouse
2020.06.26 06:52:26.833912 [ 1177 ] {} <Fatal> BaseDaemon: 13. DB::MergeTreeDataSelectExecutor::read(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, DB::SelectQueryInfo const&, DB::Context const&, unsigned long, unsigned int, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, long, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, long> > > const*) const @ 0xd92f433 in /usr/bin/clickhouse
2020.06.26 06:52:26.833998 [ 1177 ] {} <Fatal> BaseDaemon: 14. DB::StorageReplicatedMergeTree::read(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, DB::SelectQueryInfo const&, DB::Context const&, DB::QueryProcessingStage::Enum, unsigned long, unsigned int) @ 0xd74048d in /usr/bin/clickhouse
2020.06.26 06:52:26.834048 [ 1177 ] {} <Fatal> BaseDaemon: 15. DB::IStorage::readStreams(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, DB::SelectQueryInfo const&, DB::Context const&, DB::QueryProcessingStage::Enum, unsigned long, unsigned int) @ 0xd64557c in /usr/bin/clickhouse
2020.06.26 06:52:26.834096 [ 1177 ] {} <Fatal> BaseDaemon: 16. void DB::InterpreterSelectQuery::executeFetchColumns<DB::InterpreterSelectQuery::Pipeline>(DB::QueryProcessingStage::Enum, DB::InterpreterSelectQuery::Pipeline&, std::__1::shared_ptr<DB::PrewhereInfo> const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, DB::QueryPipeline&) @ 0xd273c16 in /usr/bin/clickhouse
2020.06.26 06:52:26.834137 [ 1177 ] {} <Fatal> BaseDaemon: 17. void DB::InterpreterSelectQuery::executeImpl<DB::InterpreterSelectQuery::Pipeline>(DB::InterpreterSelectQuery::Pipeline&, std::__1::shared_ptr<DB::IBlockInputStream> const&, std::__1::optional<DB::Pipe>, DB::QueryPipeline&) @ 0xd276868 in /usr/bin/clickhouse
2020.06.26 06:52:26.834159 [ 1177 ] {} <Fatal> BaseDaemon: 18. DB::InterpreterSelectQuery::execute() @ 0xd23942d in /usr/bin/clickhouse
2020.06.26 06:52:26.834180 [ 1177 ] {} <Fatal> BaseDaemon: 19. ? @ 0xd6746a7 in /usr/bin/clickhouse
2020.06.26 06:52:26.834204 [ 1177 ] {} <Fatal> BaseDaemon: 20. ? @ 0xd674af7 in /usr/bin/clickhouse
2020.06.26 06:52:26.834245 [ 1177 ] {} <Fatal> BaseDaemon: 21. DB::ClusterProxy::SelectStreamFactory::createForShard(DB::Cluster::ShardInfo const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<DB::IAST> const&, DB::Context const&, std::__1::shared_ptr<DB::Throttler> const&, DB::SelectQueryInfo const&, std::__1::vector<DB::Pipe, std::__1::allocator<DB::Pipe> >&) @ 0xd675cbd in /usr/bin/clickhouse
2020.06.26 06:52:26.834275 [ 1177 ] {} <Fatal> BaseDaemon: 22. DB::ClusterProxy::executeQuery(DB::ClusterProxy::IStreamFactory&, std::__1::shared_ptr<DB::Cluster> const&, std::__1::shared_ptr<DB::IAST> const&, DB::Context const&, DB::Settings const&, DB::SelectQueryInfo const&) @ 0xd67c9f8 in /usr/bin/clickhouse
2020.06.26 06:52:26.834309 [ 1177 ] {} <Fatal> BaseDaemon: 23. DB::StorageDistributed::read(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, DB::SelectQueryInfo const&, DB::Context const&, DB::QueryProcessingStage::Enum, unsigned long, unsigned int) @ 0xd665e75 in /usr/bin/clickhouse
2020.06.26 06:52:26.834333 [ 1177 ] {} <Fatal> BaseDaemon: 24. DB::IStorage::readStreams(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, DB::SelectQueryInfo const&, DB::Context const&, DB::QueryProcessingStage::Enum, unsigned long, unsigned int) @ 0xd64557c in /usr/bin/clickhouse
2020.06.26 06:52:26.834357 [ 1177 ] {} <Fatal> BaseDaemon: 25. void DB::InterpreterSelectQuery::executeFetchColumns<DB::InterpreterSelectQuery::Pipeline>(DB::QueryProcessingStage::Enum, DB::InterpreterSelectQuery::Pipeline&, std::__1::shared_ptr<DB::PrewhereInfo> const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, DB::QueryPipeline&) @ 0xd273c16 in /usr/bin/clickhouse
2020.06.26 06:52:26.834380 [ 1177 ] {} <Fatal> BaseDaemon: 26. void DB::InterpreterSelectQuery::executeImpl<DB::InterpreterSelectQuery::Pipeline>(DB::InterpreterSelectQuery::Pipeline&, std::__1::shared_ptr<DB::IBlockInputStream> const&, std::__1::optional<DB::Pip
e>, DB::QueryPipeline&) @ 0xd276868 in /usr/bin/clickhouse
2020.06.26 06:52:26.834401 [ 1177 ] {} <Fatal> BaseDaemon: 27. DB::InterpreterSelectQuery::executeWithMultipleStreams(DB::QueryPipeline&) @ 0xd239673 in /usr/bin/clickhouse
2020.06.26 06:52:26.834433 [ 1177 ] {} <Fatal> BaseDaemon: 28. DB::InterpreterSelectWithUnionQuery::executeWithMultipleStreams(DB::QueryPipeline&) @ 0xd404fc0 in /usr/bin/clickhouse
2020.06.26 06:52:26.834464 [ 1177 ] {} <Fatal> BaseDaemon: 29. DB::InterpreterSelectWithUnionQuery::execute() @ 0xd4070ec in /usr/bin/clickhouse
2020.06.26 06:52:26.834490 [ 1177 ] {} <Fatal> BaseDaemon: 30. ? @ 0xd5445c9 in /usr/bin/clickhouse
2020.06.26 06:52:26.834515 [ 1177 ] {} <Fatal> BaseDaemon: 31. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, DB::Context&, std::__1::function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>) @ 0xd548000 in /usr/bin/clickhouse

created time in 9 days

issue commentClickHouse/ClickHouse

20.3 Segmentation fault during query with mysq() & GLOBAL JOIN

On versions 19.14-19.17 such kind of queries worked fine. tbl_distributed is Distributed table with 3 shard * 2 replicas.

SELECT toTime(toStartOfHour(dttm)) AS dt
     , name
     , avg(distance) AS avg_distance
FROM tbl_distributed
         GLOBAL ANY
         LEFT JOIN
     (
         SELECT id
              , name
         FROM mysql(...)
         ) AS gt USING id
WHERE (dttm > (now() - toIntervalWeek(1)))
GROUP BY dt, name
ORDER BY dt ASC;
millin

comment created time in 17 days

issue commentClickHouse/ClickHouse

Executable external dictionary doesn't get any STDIN

I don't know, I have not used this for a long time

millin

comment created time in a month

issue commentClickHouse/ClickHouse

20.3 Segmentation fault during query with mysq() & GLOBAL JOIN

In my opinion this still needs to be fixed for the LTS branch which is 20.3

millin

comment created time in a month

issue commentClickHouse/ClickHouse

20.4 Segmentation fault during ALTER ON CLUSTER

Sorry for misinformation. According log it was not during ALTER query itself, but during auto-introspection after ALTER query. Client - DataGrip/clickhouse-jdbc 0.2.4.

2020.06.07 11:17:48.799301 [ 544 ] {} <Trace> DynamicQueryHandler: Request URI: /?extremes=0&query_id=3a55e895-0716-4503-8baa-788ce119e7b8&database=default&password=******&session_id=DataGrip_4177231a-0a62-43c0-bb57-70461b5ebb15&compress=1          
2020.06.07 11:17:48.799714 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: (from 10.40.20.231:57382) select version() FORMAT TabSeparatedWithNamesAndTypes;                                                                                       
2020.06.07 11:17:48.799926 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> ContextAccess (default): Access granted: SELECT(dummy) ON system.one                                                                                                                 
2020.06.07 11:17:48.799979 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> InterpreterSelectQuery: FetchColumns -> Complete                                                                                                                                     
2020.06.07 11:17:48.800053 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: Query pipeline:                                                                                                                                                        
2020.06.07 11:17:48.800160 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Information> executeQuery: Read 1 rows, 1.00 B in 0.000 sec., 2588 rows/sec., 2.53 KiB/sec.                                                                                                 
2020.06.07 11:17:48.800301 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> MemoryTracker: Peak memory usage (for query): 4.01 MiB.                                                                                                                              
2020.06.07 11:17:48.807693 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: (from 10.40.20.231:57382) select version() FORMAT TabSeparatedWithNamesAndTypes;                                                                                       
2020.06.07 11:17:48.807890 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> ContextAccess (default): Access granted: SELECT(dummy) ON system.one                                                                                                                 
2020.06.07 11:17:48.807962 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> InterpreterSelectQuery: FetchColumns -> Complete                                                                                                                                     
2020.06.07 11:17:48.808041 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: Query pipeline:                                                                                                                                                        
2020.06.07 11:17:48.808142 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Information> executeQuery: Read 1 rows, 1.00 B in 0.000 sec., 2518 rows/sec., 2.46 KiB/sec.                                                                                                 
2020.06.07 11:17:48.808266 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> MemoryTracker: Peak memory usage (for query): 4.00 MiB.                                                                                                                              
2020.06.07 11:17:48.826814 [ 625 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: (from 10.40.20.231:57382) SELECT 1 FORMAT TabSeparatedWithNamesAndTypes;
2020.06.07 11:17:48.827016 [ 625 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> ContextAccess (default): Access granted: SELECT(dummy) ON system.one
2020.06.07 11:17:48.827083 [ 625 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> InterpreterSelectQuery: FetchColumns -> Complete
2020.06.07 11:17:48.827139 [ 625 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: Query pipeline:
2020.06.07 11:17:48.827246 [ 625 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Information> executeQuery: Read 1 rows, 1.00 B in 0.000 sec., 2626 rows/sec., 2.56 KiB/sec.
2020.06.07 11:17:48.827357 [ 625 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> MemoryTracker: Peak memory usage (for query): 4.00 MiB.
2020.06.07 11:17:48.836345 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: (from 10.40.20.231:57382) select currentDatabase() FORMAT TabSeparatedWithNamesAndTypes;
2020.06.07 11:17:48.836556 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> ContextAccess (default): Access granted: SELECT(dummy) ON system.one
2020.06.07 11:17:48.836624 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> InterpreterSelectQuery: FetchColumns -> Complete
2020.06.07 11:17:48.836686 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: Query pipeline:
2020.06.07 11:17:48.836804 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Information> executeQuery: Read 1 rows, 1.00 B in 0.000 sec., 2526 rows/sec., 2.47 KiB/sec.
2020.06.07 11:17:48.836981 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> MemoryTracker: Peak memory usage (for query): 4.00 MiB.
2020.06.07 11:17:48.847214 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: (from 10.40.20.231:57382) select currentDatabase(), version() FORMAT TabSeparatedWithNamesAndTypes;
2020.06.07 11:17:48.847439 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> ContextAccess (default): Access granted: SELECT(dummy) ON system.one
2020.06.07 11:17:48.847492 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> InterpreterSelectQuery: FetchColumns -> Complete
2020.06.07 11:17:48.847545 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: Query pipeline:
2020.06.07 11:17:48.847652 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Information> executeQuery: Read 1 rows, 1.00 B in 0.000 sec., 2636 rows/sec., 2.57 KiB/sec.
2020.06.07 11:17:48.847768 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> MemoryTracker: Peak memory usage (for query): 4.00 MiB.
2020.06.07 11:17:48.857383 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: (from 10.40.20.231:57382) select name from system.databases order by name != currentDatabase() FORMAT TabSeparatedWithNamesAndTypes;
2020.06.07 11:17:48.857658 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> ContextAccess (default): Access granted: SELECT(name) ON system.databases
2020.06.07 11:17:48.857709 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> ContextAccess (default): Access granted: SHOW DATABASES ON *.*
2020.06.07 11:17:48.857848 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> InterpreterSelectQuery: FetchColumns -> Complete
2020.06.07 11:17:48.858034 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: Query pipeline:
2020.06.07 11:17:48.858202 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Information> executeQuery: Read 39 rows, 4.90 KiB in 0.001 sec., 51096 rows/sec., 6.27 MiB/sec.
2020.06.07 11:17:48.858333 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> MemoryTracker: Peak memory usage (for query): 4.00 MiB.
2020.06.07 11:17:48.871400 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: (from 10.40.20.231:57382) select name, is_aggregate from system.functions FORMAT TabSeparatedWithNamesAndTypes;
2020.06.07 11:17:48.871606 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> ContextAccess (default): Access granted: SELECT(name, is_aggregate) ON system.functions
2020.06.07 11:17:48.872090 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> InterpreterSelectQuery: FetchColumns -> Complete
2020.06.07 11:17:48.872150 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: Query pipeline:
2020.06.07 11:17:48.872372 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Information> executeQuery: Read 760 rows, 24.68 KiB in 0.001 sec., 829067 rows/sec., 26.29 MiB/sec.
2020.06.07 11:17:48.872504 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> MemoryTracker: Peak memory usage (for query): 4.00 MiB.
2020.06.07 11:17:48.887057 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: (from 10.40.20.231:57382) select name from system.databases order by name != currentDatabase() FORMAT TabSeparatedWithNamesAndTypes;
2020.06.07 11:17:48.887326 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> ContextAccess (default): Access granted: SELECT(name) ON system.databases
2020.06.07 11:17:48.887374 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> ContextAccess (default): Access granted: SHOW DATABASES ON *.*
2020.06.07 11:17:48.887474 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> InterpreterSelectQuery: FetchColumns -> Complete
2020.06.07 11:17:48.887557 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: Query pipeline:
2020.06.07 11:17:48.887711 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Information> executeQuery: Read 39 rows, 4.90 KiB in 0.001 sec., 64944 rows/sec., 7.97 MiB/sec.
2020.06.07 11:17:48.887839 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> MemoryTracker: Peak memory usage (for query): 4.00 MiB.
2020.06.07 11:17:48.900149 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: (from 10.40.20.231:57382) select name, engine,  is_temporary         from system.tables         where database = '_temporary_and_external_tables' FORMAT TabSeparatedWithNamesAndTypes;
2020.06.07 11:17:48.900521 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> ContextAccess (default): Access granted: SELECT(database, name, engine, is_temporary) ON system.tables
2020.06.07 11:17:48.900696 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> InterpreterSelectQuery: FetchColumns -> Complete
2020.06.07 11:17:48.900767 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: Query pipeline:
2020.06.07 11:17:48.900828 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> ContextAccess (default): Access granted: SHOW TABLES ON *.*
2020.06.07 11:17:48.900948 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Information> executeQuery: Read 2 rows, 210.00 B in 0.001 sec., 2710 rows/sec., 277.95 KiB/sec.
2020.06.07 11:17:48.901109 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> MemoryTracker: Peak memory usage (for query): 4.00 MiB.
2020.06.07 11:17:48.911265 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: (from 10.40.20.231:57382) select table, name, type, default_kind, default_expression           from system.columns           where database = '_temporary_and_external_tables' FORMAT TabSeparatedWithNamesAndTypes;
2020.06.07 11:17:48.911699 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> ContextAccess (default): Access granted: SELECT(database, table, name, type, default_kind, default_expression) ON system.columns
2020.06.07 11:17:48.911915 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> InterpreterSelectQuery: FetchColumns -> Complete
2020.06.07 11:17:48.912011 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: Query pipeline:
2020.06.07 11:17:48.912080 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> ContextAccess (default): Access granted: SHOW COLUMNS ON *.*
2020.06.07 11:17:48.912195 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Information> executeQuery: Read 2 rows, 285.00 B in 0.001 sec., 2295 rows/sec., 319.41 KiB/sec.
2020.06.07 11:17:48.912322 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> MemoryTracker: Peak memory usage (for query): 4.00 MiB.
2020.06.07 11:17:48.922569 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Debug> executeQuery: (from 10.40.20.231:57382) show create table `_temporary_and_external_tables`.`_tmp_cd3447c1-c3fb-4b89-a5f1-4f70f46cbea6` FORMAT TabSeparatedWithNamesAndTypes;
2020.06.07 11:17:48.922638 [ 544 ] {3a55e895-0716-4503-8baa-788ce119e7b8} <Trace> ContextAccess (default): Access granted: SHOW COLUMNS ON _temporary_and_external_tables.`_tmp_cd3447c1-c3fb-4b89-a5f1-4f70f46cbea6`
2020.06.07 11:17:48.939614 [ 667 ] {} <Fatal> BaseDaemon: (version 20.4.4.18 (official build)) (from thread 544) (query_id: 3a55e895-0716-4503-8baa-788ce119e7b8) Received signal Segmentation fault (11).
millin

comment created time in a month

issue openedClickHouse/ClickHouse

20.4 Segmentation fault during ALTER ON CLUSTER

Describe the bug During ALTER ON CLUSTER segmentation fault may occur.

ClickHouse server version 20.4.4.18 Error message and/or stacktrace

2020.06.07 11:17:48.939477 [ 667 ] {} <Fatal> BaseDaemon: ########################################
2020.06.07 11:17:48.939614 [ 667 ] {} <Fatal> BaseDaemon: (version 20.4.4.18 (official build)) (from thread 544) (query_id: 3a55e895-0716-4503-8baa-788ce119e7b8) Received signal Segmentation fault (11).
2020.06.07 11:17:48.939646 [ 667 ] {} <Fatal> BaseDaemon: Address: NULL pointer. Access: read. Address not mapped to object.
2020.06.07 11:17:48.939674 [ 667 ] {} <Fatal> BaseDaemon: Stack trace: 0xdf541b9 0xd419b0c 0xd41b393 0xd5499f9 0xd54d430 0x90e47fc 0x90e8256 0x102c9b83 0x10304f4b 0x103053db 0x104b2fa6 0x104ae260 0x7f88949026db 0x7f8894fd988f
2020.06.07 11:17:48.939771 [ 667 ] {} <Fatal> BaseDaemon: 3. DB::formatAST(DB::IAST const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, bool) @ 0xdf541b9 in /usr/bin/clickhouse
2020.06.07 11:17:48.939798 [ 667 ] {} <Fatal> BaseDaemon: 4. DB::InterpreterShowCreateQuery::executeImpl() @ 0xd419b0c in /usr/bin/clickhouse
2020.06.07 11:17:48.939820 [ 667 ] {} <Fatal> BaseDaemon: 5. DB::InterpreterShowCreateQuery::execute() @ 0xd41b393 in /usr/bin/clickhouse
2020.06.07 11:17:48.939841 [ 667 ] {} <Fatal> BaseDaemon: 6. ? @ 0xd5499f9 in /usr/bin/clickhouse
2020.06.07 11:17:48.939878 [ 667 ] {} <Fatal> BaseDaemon: 7. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, DB::Context&, std::__1::function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>) @ 0xd54d430 in /usr/bin/clickhouse
2020.06.07 11:17:48.939921 [ 667 ] {} <Fatal> BaseDaemon: 8. DB::HTTPHandler::processQuery(Poco::Net::HTTPServerRequest&, HTMLForm&, Poco::Net::HTTPServerResponse&, DB::HTTPHandler::Output&) @ 0x90e47fc in /usr/bin/clickhouse
2020.06.07 11:17:48.939963 [ 667 ] {} <Fatal> BaseDaemon: 9. DB::HTTPHandler::handleRequest(Poco::Net::HTTPServerRequest&, Poco::Net::HTTPServerResponse&) @ 0x90e8256 in /usr/bin/clickhouse
2020.06.07 11:17:48.940008 [ 667 ] {} <Fatal> BaseDaemon: 10. Poco::Net::HTTPServerConnection::run() @ 0x102c9b83 in /usr/bin/clickhouse
2020.06.07 11:17:48.941808 [ 667 ] {} <Fatal> BaseDaemon: 11. Poco::Net::TCPServerConnection::start() @ 0x10304f4b in /usr/bin/clickhouse
2020.06.07 11:17:48.941898 [ 667 ] {} <Fatal> BaseDaemon: 12. Poco::Net::TCPServerDispatcher::run() @ 0x103053db in /usr/bin/clickhouse
2020.06.07 11:17:48.941929 [ 667 ] {} <Fatal> BaseDaemon: 13. Poco::PooledThread::run() @ 0x104b2fa6 in /usr/bin/clickhouse
2020.06.07 11:17:48.941954 [ 667 ] {} <Fatal> BaseDaemon: 14. Poco::ThreadImpl::runnableEntry(void*) @ 0x104ae260 in /usr/bin/clickhouse
2020.06.07 11:17:48.941988 [ 667 ] {} <Fatal> BaseDaemon: 15. start_thread @ 0x76db in /lib/x86_64-linux-gnu/libpthread-2.27.so
2020.06.07 11:17:48.942027 [ 667 ] {} <Fatal> BaseDaemon: 16. clone @ 0x12188f in /lib/x86_64-linux-gnu/libc-2.27.so

created time in a month

issue commentClickHouse/ClickHouse

20.3 Segmentation fault during query with mysq() & GLOBAL JOIN

I'm not sure, but looks like issue disappeared in v20.4.4.18

millin

comment created time in a month

issue openedClickHouse/ClickHouse

20.3 Segmentation fault during query with mysq() & GLOBAL JOIN

Describe the bug When query contains mysql() table function & GLOBAL JOIN segmentation fault may occur.

How to reproduce

  • ClickHouse server version 20.3.9.70

Error message and/or stacktrace

2020.06.05 14:50:53.014570 [ 3744 ] {} <Fatal> BaseDaemon: ########################################
2020.06.05 14:50:53.014707 [ 3744 ] {} <Fatal> BaseDaemon: (version 20.3.9.70 (official build)) (from thread 953) (query_id: 160A038829104004) Received signal Segmentation fault (11).
2020.06.05 14:50:53.014771 [ 3744 ] {} <Fatal> BaseDaemon: Address: NULL pointer. Access: read. Unknown si_code.
2020.06.05 14:50:53.014816 [ 3744 ] {} <Fatal> BaseDaemon: Stack trace: 0x1060397b 0x103f68b5 0x103f8621 0xdb561f9 0xce48ccf 0xdeed484 0xdb9ac1b 0xdeed365 0xdbe264e 0xdbe3e27 0xce48ccf 0xd27448a 0xce48ccf 0xd27448a 0xce48ccf 0xd2e8cbe 0xd2eac67 0xce475ea 0xce878b1 0xd554297 0x8fed706 0x8ff0bc3 0xe37c6f4 0xe3ac69b 0xe3acb1d 0x105c3317 0x105bf11c 0x105c0abd 0x7f793cd326db
2020.06.05 14:50:53.014980 [ 3744 ] {} <Fatal> BaseDaemon: 3. mysql_errno @ 0x1060397b in /usr/bin/clickhouse
2020.06.05 14:50:53.015101 [ 3744 ] {} <Fatal> BaseDaemon: 4. mysqlxx::checkError(st_mysql*) @ 0x103f68b5 in /usr/bin/clickhouse
2020.06.05 14:50:53.015134 [ 3744 ] {} <Fatal> BaseDaemon: 5. mysqlxx::UseQueryResult::fetch() @ 0x103f8621 in /usr/bin/clickhouse
2020.06.05 14:50:53.015206 [ 3744 ] {} <Fatal> BaseDaemon: 6. DB::MySQLBlockInputStream::readImpl() @ 0xdb561f9 in /usr/bin/clickhouse
2020.06.05 14:50:53.015268 [ 3744 ] {} <Fatal> BaseDaemon: 7. DB::IBlockInputStream::read() @ 0xce48ccf in /usr/bin/clickhouse
2020.06.05 14:50:53.015367 [ 3744 ] {} <Fatal> BaseDaemon: 8. DB::SourceFromInputStream::generate() @ 0xdeed484 in /usr/bin/clickhouse
2020.06.05 14:50:53.015427 [ 3744 ] {} <Fatal> BaseDaemon: 9. DB::ISource::work() @ 0xdb9ac1b in /usr/bin/clickhouse
2020.06.05 14:50:53.015462 [ 3744 ] {} <Fatal> BaseDaemon: 10. DB::SourceFromInputStream::work() @ 0xdeed365 in /usr/bin/clickhouse
2020.06.05 14:50:53.015512 [ 3744 ] {} <Fatal> BaseDaemon: 11. DB::TreeExecutorBlockInputStream::execute(bool, bool) @ 0xdbe264e in /usr/bin/clickhouse
2020.06.05 14:50:53.015545 [ 3744 ] {} <Fatal> BaseDaemon: 12. DB::TreeExecutorBlockInputStream::readImpl() @ 0xdbe3e27 in /usr/bin/clickhouse
2020.06.05 14:50:53.015580 [ 3744 ] {} <Fatal> BaseDaemon: 13. DB::IBlockInputStream::read() @ 0xce48ccf in /usr/bin/clickhouse
2020.06.05 14:50:53.015638 [ 3744 ] {} <Fatal> BaseDaemon: 14. DB::ExpressionBlockInputStream::readImpl() @ 0xd27448a in /usr/bin/clickhouse
2020.06.05 14:50:53.015668 [ 3744 ] {} <Fatal> BaseDaemon: 15. DB::IBlockInputStream::read() @ 0xce48ccf in /usr/bin/clickhouse
2020.06.05 14:50:53.015755 [ 3744 ] {} <Fatal> BaseDaemon: 16. DB::ExpressionBlockInputStream::readImpl() @ 0xd27448a in /usr/bin/clickhouse
2020.06.05 14:50:53.015791 [ 3744 ] {} <Fatal> BaseDaemon: 17. DB::IBlockInputStream::read() @ 0xce48ccf in /usr/bin/clickhouse
2020.06.05 14:50:53.016789 [ 3744 ] {} <Fatal> BaseDaemon: 18. DB::CreatingSetsBlockInputStream::createOne(DB::SubqueryForSet&) @ 0xd2e8cbe in /usr/bin/clickhouse
2020.06.05 14:50:53.016860 [ 3744 ] {} <Fatal> BaseDaemon: 19. DB::CreatingSetsBlockInputStream::readPrefixImpl() @ 0xd2eac67 in /usr/bin/clickhouse
2020.06.05 14:50:53.016894 [ 3744 ] {} <Fatal> BaseDaemon: 20. DB::IBlockInputStream::readPrefix() @ 0xce475ea in /usr/bin/clickhouse
2020.06.05 14:50:53.016937 [ 3744 ] {} <Fatal> BaseDaemon: 21. DB::copyData(DB::IBlockInputStream&, DB::IBlockOutputStream&, std::__1::atomic<bool>*) @ 0xce878b1 in /usr/bin/clickhouse
2020.06.05 14:50:53.017033 [ 3744 ] {} <Fatal> BaseDaemon: 22. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, DB::Context&, std::__1::function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>) @ 0xd554297 in /usr/bin/clickhouse
2020.06.05 14:50:53.017075 [ 3744 ] {} <Fatal> BaseDaemon: 23. DB::HTTPHandler::processQuery(Poco::Net::HTTPServerRequest&, HTMLForm&, Poco::Net::HTTPServerResponse&, DB::HTTPHandler::Output&) @ 0x8fed706 in /usr/bin/clickhouse
2020.06.05 14:50:53.017117 [ 3744 ] {} <Fatal> BaseDaemon: 24. DB::HTTPHandler::handleRequest(Poco::Net::HTTPServerRequest&, Poco::Net::HTTPServerResponse&) @ 0x8ff0bc3 in /usr/bin/clickhouse
2020.06.05 14:50:53.017156 [ 3744 ] {} <Fatal> BaseDaemon: 25. Poco::Net::HTTPServerConnection::run() @ 0xe37c6f4 in /usr/bin/clickhouse
2020.06.05 14:50:53.017192 [ 3744 ] {} <Fatal> BaseDaemon: 26. Poco::Net::TCPServerConnection::start() @ 0xe3ac69b in /usr/bin/clickhouse
2020.06.05 14:50:53.017229 [ 3744 ] {} <Fatal> BaseDaemon: 27. Poco::Net::TCPServerDispatcher::run() @ 0xe3acb1d in /usr/bin/clickhouse
2020.06.05 14:50:53.017257 [ 3744 ] {} <Fatal> BaseDaemon: 28. Poco::PooledThread::run() @ 0x105c3317 in /usr/bin/clickhouse
2020.06.05 14:50:53.017309 [ 3744 ] {} <Fatal> BaseDaemon: 29. Poco::ThreadImpl::runnableEntry(void*) @ 0x105bf11c in /usr/bin/clickhouse
2020.06.05 14:50:53.017338 [ 3744 ] {} <Fatal> BaseDaemon: 30. ? @ 0x105c0abd in /usr/bin/clickhouse
2020.06.05 14:50:53.017424 [ 3744 ] {} <Fatal> BaseDaemon: 31. start_thread @ 0x76db in /lib/x86_64-linux-gnu/libpthread-2.27.so

created time in a month

startedClickHouse/ClickHouse

started time in a month

issue commentdarlinghq/darling

Darling Shell Crashing on Launch

Upgrade to Ubuntu 20.04 solved an issue for me

ghost

comment created time in 2 months

starteddarlinghq/darling

started time in 2 months

issue commentdarlinghq/darling

Darling Shell Crashing on Launch

Same happened for me. Ubuntu 19.10 with secure boot enabled. MOK is imported, module darling_mach is listed by lsmod, but launching the shell fails with the same error.

ghost

comment created time in 2 months

more