Skip to content

Instantly share code, notes, and snippets.

@RunsFor
Created June 4, 2019 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RunsFor/90a8639c17ed81a28b174706a3032973 to your computer and use it in GitHub Desktop.
Save RunsFor/90a8639c17ed81a28b174706a3032973 to your computer and use it in GitHub Desktop.
tarantool segfault when creating kafka consumer
Tarantool 2.1.1-434-g881c7b59b
type 'help' for interactive help
tarantool> kafka = require'kafka'
---
...
tarantool> consumer, err = kafka.Consumer.create({
> brokers = 'localhost:9292', -- brokers for bootstrap
> options = {
> ["enable.auto.offset.store"] = "true",
> -- ["group.id"] = tostring(opts.group),
> ["auto.offset.reset"] = "earliest",
> ["enable.partition.eof"] = "false"
> }, -- options for librdkafka
> -- error_callback = error_callback, -- optional callback for errors
> -- log_callback = log_callback, -- optional callback for logs and debug messages
> default_topic_options = {
> ["auto.offset.reset"] = "earliest",
> }, -- optional default topic options
> })
Segmentation fault
code: SEGV_MAPERR
addr: 0x8
context: 0x11167fda8
siginfo: 0x11167fd40
Current time: 1559654775
Please file a bug at http://github.com/tarantool/tarantool/issues
Attempting backtrace... Note: since the server has already crashed,
this may fail as well
%3|1559654775.748|FAIL|rdkafka#consumer-1| [thrd:localhost:9292/bootstrap]: localhost:9292/bootstrap: Connect to ipv6#[::1]:9292 failed: Connection refused (after 1ms in state CONNECT)
%3|1559654775.748|ERROR|rdkafka#consumer-1| [thrd:localhost:9292/bootstrap]: localhost:9292/bootstrap: Connect to ipv6#[::1]:9292 failed: Connection refused (after 1ms in state CONNECT)
%3|1559654775.748|ERROR|rdkafka#consumer-1| [thrd:localhost:9292/bootstrap]: 1/1 brokers are down
#0 0x10ea3f405 in print_backtrace+9
#1 0x10e984a83 in _ZL12sig_fatal_cbiP9__siginfoPv+158
#2 0x7fff6948fb5d in _sigtramp+1d
#3 0x11104cf54 in rd_kafka_queue_poll+14
#4 0x11103c9fb in lua_consumer_poll_msg+ab
#5 0x10ea54455 in lj_BC_FUNCC+44
#6 0x10ea645cf in lua_pcall+9b
#7 0x10ea2fa09 in luaT_call+13
#8 0x10ea2c4ea in lua_fiber_run_f+57
#9 0x10e98465f in _ZL16fiber_cxx_invokePFiP13__va_list_tagES0_+c
#10 0x10ea3d569 in fiber_loop+2a
#11 0x10eb61d00 in coro_init+4b
[1] 85041 abort tarantool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment