profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/NAlexandrov/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Nikolay Alexandrov NAlexandrov R-Vision Moscow, Barnaul https://moikrug.ru/std-a

NAlexandrov/auditjs 0

Audits an NPM package.json file to identify known vulnerabilities.

NAlexandrov/DefinitelyTyped 0

The repository for high quality TypeScript type definitions.

NAlexandrov/deputy 0

Народный депутат — промо-проект Алексея Навального

NAlexandrov/docs.nestjs.com 0

The official documentation https://docs.nestjs.com 📕

NAlexandrov/fluent-plugin-beats 0

Fluentd plugin for Elastic beats

NAlexandrov/fluentd-docker-image 0

Docker image for Fluentd

NAlexandrov/getos 0

A Node.js module that returns the OS/Distribution name of the environment you are working on

NAlexandrov/grunt-dom-munger 0

Grunt task to read and manipulate HTML with CSS selectors.

NAlexandrov/HelpDesk 0

Help Desk

push eventNAlexandrov/xk6-tcp

NAlexandrov

commit sha 1948875ec7d991fb5f7fd37f04872e348f3e943c

WriteLn added

view details

push time in a month

push eventNAlexandrov/xk6-tcp

NAlexandrov

commit sha b3424fa78efc59d12bbd4af84a70c5b46989a341

new readme & some fixes

view details

push time in a month

push eventNAlexandrov/xk6-tcp

NAlexandrov

commit sha 3f11bf5a0f024ac546785c8e1be8e09eb7737dbc

init

view details

push time in a month

create barnchNAlexandrov/xk6-tcp

branch : main

created branch time in a month

created repositoryNAlexandrov/xk6-tcp

A k6 extension for sending strings to TCP port

created time in a month

issue openedeviltik/cidr-clean

Is it a bug?

Current behavior:

cidrClean([
  '192.168.1.1/32',
  '192.168.1.0/30',
  '192.168.0.0/16'
]); // returns [];

Expected behavior:

cidrClean([
  '192.168.1.1/32',
  '192.168.1.0/30',
  '192.168.0.0/16'
]); // returns ['192.168.0.0/16'];

created time in 2 months

issue openeddistribworks/dkron

Docker Dkron 3.1.7

Please, push the dkron 3.1.7 to docker hub (currently is 3.1.6 only available).

created time in 2 months

issue commentClickHouse/ClickHouse

Segmentation fault while reading array from dictionary

Ok... Maybe then at least the ClickHouse will report an error and not crash

NAlexandrov

comment created time in 2 months

issue openedClickHouse/ClickHouse

Segmentation fault while reading array from dictionary

Describe the bug

ClickHouse crashes when trying to read an array from a dictionary.

Does it reproduce on recent release?

Reproduce on v21.6.3.14-stable

How to reproduce

CREATE TABLE IF NOT EXISTS persons_table (
id UUID,
accounts Array(String)
) ENGINE = MergeTree() ORDER BY id;

INSERT INTO persons_table VALUES ('a6c5a46d-bf1e-4813-ada8-06f3406e6103', ['vfedorov@acme','vfedorov','vfedorov@acme.com']);

CREATE DICTIONARY IF NOT EXISTS persons_dictionary_ch (
id UUID,
accounts Array(String)
)
PRIMARY KEY id
SOURCE (CLICKHOUSE( host 'localhost' port 9000 user 'default' password '' db 'default' table 'persons_table' )) LAYOUT(COMPLEX_KEY_HASHED()) LIFETIME(300);

SELECT id, toString(accounts) FROM persons_dictionary_ch;

This is a synthetic example. In production, we load the dictionary from HTTP interface.

Expected behavior

SELECT id, toString(accounts) FROM persons_dictionary_ch;

┌─id───────────────────────────────────┬─toString(accounts)───────────────────────────────┐
│ a6c5a46d-bf1e-4813-ada8-06f3406e6103 │ ['vfedorov@acme','vfedorov','vfedorov@acme.com'] │
└──────────────────────────────────────┴──────────────────────────────────────────────────┘

Error message and/or stacktrace

SELECT id, toString(accounts) FROM persons_dictionary_ch;

[51b45ab248c5] 2021.06.08 17:28:50.985142 [ 162 ] <Fatal> BaseDaemon: ########################################
[51b45ab248c5] 2021.06.08 17:28:50.985210 [ 162 ] <Fatal> BaseDaemon: (version 21.6.3.14 (official build), build id: F48747FBABB1019F05627059924B154D356B9401) (from thread 161) (query_id: df9e46f0-7f00-42a8-8066-7639cddd512f) Received signal Segmentation fault (11)
[51b45ab248c5] 2021.06.08 17:28:50.985252 [ 162 ] <Fatal> BaseDaemon: Address: 0xfffffffffffffff8 Access: read. Address not mapped to object.
[51b45ab248c5] 2021.06.08 17:28:50.985284 [ 162 ] <Fatal> BaseDaemon: Stack trace: 0xf3ab701 0xa9b6667 0xa9b56e9 0xa9b4d5c 0xa76d20e 0xefc84de 0xefc89d2 0xf5dc1b5 0x105991fc 0x10599590 0x1059c467 0x1046195d 0x1045e4f1 0x1045c52d 0x1045c30d 0x1046957f 0x8b9b49f 0x8b9e9c3 0x7f0ae6ca4609 0x7f0ae6bcb293
[51b45ab248c5] 2021.06.08 17:28:50.985355 [ 162 ] <Fatal> BaseDaemon: 1. DB::SerializationArray::serializeText(DB::IColumn const&, unsigned long, DB::WriteBuffer&, DB::FormatSettings const&) const @ 0xf3ab701 in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.985441 [ 162 ] <Fatal> BaseDaemon: 2. DB::ConvertImplGenericToString::execute(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&) @ 0xa9b6667 in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.985479 [ 162 ] <Fatal> BaseDaemon: 3. DB::FunctionConvert<DB::DataTypeString, DB::NameToString, DB::ToStringMonotonicity>::executeInternal(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0xa9b56e9 in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.985518 [ 162 ] <Fatal> BaseDaemon: 4. DB::FunctionConvert<DB::DataTypeString, DB::NameToString, DB::ToStringMonotonicity>::executeImpl(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0xa9b4d5c in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.985568 [ 162 ] <Fatal> BaseDaemon: 5. DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0xa76d20e in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.985611 [ 162 ] <Fatal> BaseDaemon: 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0xefc84de in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.985670 [ 162 ] <Fatal> BaseDaemon: 7. DB::IExecutableFunction::execute(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0xefc89d2 in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.985733 [ 162 ] <Fatal> BaseDaemon: 8. DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0xf5dc1b5 in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.985783 [ 162 ] <Fatal> BaseDaemon: 9. DB::ExpressionTransform::transform(DB::Chunk&) @ 0x105991fc in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.985833 [ 162 ] <Fatal> BaseDaemon: 10. DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x10599590 in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.985880 [ 162 ] <Fatal> BaseDaemon: 11. DB::ISimpleTransform::work() @ 0x1059c467 in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.985943 [ 162 ] <Fatal> BaseDaemon: 12. ? @ 0x1046195d in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.985982 [ 162 ] <Fatal> BaseDaemon: 13. DB::PipelineExecutor::executeStepImpl(unsigned long, unsigned long, std::__1::atomic<bool>*) @ 0x1045e4f1 in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.986030 [ 162 ] <Fatal> BaseDaemon: 14. DB::PipelineExecutor::executeImpl(unsigned long) @ 0x1045c52d in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.986140 [ 162 ] <Fatal> BaseDaemon: 15. DB::PipelineExecutor::execute(unsigned long) @ 0x1045c30d in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.986203 [ 162 ] <Fatal> BaseDaemon: 16. ? @ 0x1046957f in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.986256 [ 162 ] <Fatal> BaseDaemon: 17. ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0x8b9b49f in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.986288 [ 162 ] <Fatal> BaseDaemon: 18. ? @ 0x8b9e9c3 in /usr/bin/clickhouse
[51b45ab248c5] 2021.06.08 17:28:50.986342 [ 162 ] <Fatal> BaseDaemon: 19. start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
[51b45ab248c5] 2021.06.08 17:28:50.986411 [ 162 ] <Fatal> BaseDaemon: 20. clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so
[51b45ab248c5] 2021.06.08 17:28:51.090568 [ 162 ] <Fatal> BaseDaemon: Checksum of the binary: B8C77CBC7ACCB6DD2F4B342509B65FEA, integrity check passed.

Exception on client:
Code: 32. DB::Exception: Attempt to read after eof: while receiving packet from localhost:9000

Connecting to localhost:9000 as user default.
Code: 210. DB::NetException: Connection refused (localhost:9000)

created time in 2 months

fork NAlexandrov/wait-for-it

Pure bash script to test and wait on the availability of a TCP host and port

fork in 2 months