{"action":"created","issue":{"url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/539","repository_url":"https://api.github.com/repos/RedisLabsModules/RediSearch","labels_url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/539/labels{/name}","comments_url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/539/comments","events_url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/539/events","html_url":"https://github.com/RedisLabsModules/RediSearch/issues/539","id":380950580,"node_id":"MDU6SXNzdWUzODA5NTA1ODA=","number":539,"title":"FT.SUGGET with 3 parameters crashes Redis","user":{"login":"zanek","id":333102,"node_id":"MDQ6VXNlcjMzMzEwMg==","avatar_url":"https://avatars2.githubusercontent.com/u/333102?v=4","gravatar_id":"","url":"https://api.github.com/users/zanek","html_url":"https://github.com/zanek","followers_url":"https://api.github.com/users/zanek/followers","following_url":"https://api.github.com/users/zanek/following{/other_user}","gists_url":"https://api.github.com/users/zanek/gists{/gist_id}","starred_url":"https://api.github.com/users/zanek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanek/subscriptions","organizations_url":"https://api.github.com/users/zanek/orgs","repos_url":"https://api.github.com/users/zanek/repos","events_url":"https://api.github.com/users/zanek/events{/privacy}","received_events_url":"https://api.github.com/users/zanek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-15T00:44:49Z","updated_at":"2018-11-16T16:48:26Z","closed_at":null,"author_association":"NONE","body":"I added 10 words to the autosuggest . I call FT.SUGGET with 2 parameters ,  no issues\r\n\r\nI then called it with :   FT.SUGGET test \"boogee\"  1\r\nand Redis crashed\r\n\r\n100:M 10 Nov 16:46:58.397 * Ready to accept connections\r\n\r\n=== REDIS BUG REPORT START: Cut & paste starting from here ===\r\n100:M 14 Nov 16:39:46.689 # Redis 4.0.9 crashed by signal: 11\r\n100:M 14 Nov 16:39:46.689 # Crashed running the instruction at: 0x7fa307b7df83\r\n100:M 14 Nov 16:39:46.689 # Accessing address: 0x6\r\n100:M 14 Nov 16:39:46.690 # Failed assertion: <no assertion failed> (<no file>:0)\r\n\r\n------ STACK TRACE ------\r\nEIP:\r\n/lib/x86_64-linux-gnu/libc.so.6(+0x18df83)[0x7fa307b7df83]\r\n\r\nBacktrace:\r\nredis-server *:6379(logStackTrace+0x5a)[0x7fa308c6eeca]\r\nredis-server *:6379(sigsegvHandler+0xb1)[0x7fa308c6f681]\r\n/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7fa307e02890]\r\n/lib/x86_64-linux-gnu/libc.so.6(+0x18df83)[0x7fa307b7df83]"},"comment":{"url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/comments/439454690","html_url":"https://github.com/RedisLabsModules/RediSearch/issues/539#issuecomment-439454690","issue_url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/539","id":439454690,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTQ1NDY5MA==","user":{"login":"zanek","id":333102,"node_id":"MDQ6VXNlcjMzMzEwMg==","avatar_url":"https://avatars2.githubusercontent.com/u/333102?v=4","gravatar_id":"","url":"https://api.github.com/users/zanek","html_url":"https://github.com/zanek","followers_url":"https://api.github.com/users/zanek/followers","following_url":"https://api.github.com/users/zanek/following{/other_user}","gists_url":"https://api.github.com/users/zanek/gists{/gist_id}","starred_url":"https://api.github.com/users/zanek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanek/subscriptions","organizations_url":"https://api.github.com/users/zanek/orgs","repos_url":"https://api.github.com/users/zanek/repos","events_url":"https://api.github.com/users/zanek/events{/privacy}","received_events_url":"https://api.github.com/users/zanek/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T16:48:26Z","updated_at":"2018-11-16T16:48:26Z","author_association":"NONE","body":"I removed the directory and rebuilt with the latest version and it still crashes.\r\nAll I did was run \"FT.SUGGET test \"boog\" 1\" \r\nIf I remove the 1 , then it works well, but crashes with it\r\n\r\n4657:M 16 Nov 08:34:45.854 * <ft> RediSearch version 1.4.1 (Git=v1.4.1-rc2-21-gc95fa1d2)\r\n\r\n=== REDIS BUG REPORT START: Cut & paste starting from here ===\r\n4657:M 16 Nov 08:41:11.833 # Redis 4.0.9 crashed by signal: 11\r\n4657:M 16 Nov 08:41:11.833 # Crashed running the instruction at: 0x7f99cb77df83\r\n4657:M 16 Nov 08:41:11.834 # Accessing address: 0x4\r\n4657:M 16 Nov 08:41:11.835 # Failed assertion: <no assertion failed> (<no file>:0)\r\n\r\n------ STACK TRACE ------\r\nEIP:\r\n/lib/x86_64-linux-gnu/libc.so.6(+0x18df83)[0x7f99cb77df83]\r\n\r\nBacktrace:\r\nredis-server *:6379(logStackTrace+0x5a)[0x7f99cc86eeca]\r\nredis-server *:6379(sigsegvHandler+0xb1)[0x7f99cc86f681]\r\n/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f99cba02890]\r\n/lib/x86_64-linux-gnu/libc.so.6(+0x18df83)[0x7f99cb77df83]\r\n/home/zanek/RediSearch/build/redisearch.so(AC_ParseArgSpec+0xcb)[0x7f99c46b7ccb]\r\n/home/zanek/RediSearch/build/redisearch.so(parseSuggestOptions+0x145)[0x7f99c4672385]\r\n/home/zanek/RediSearch/build/redisearch.so(RSSuggestGetCommand+0xd5)[0x7f99c4672595]\r\nredis-server *:6379(RedisModuleCommandDispatcher+0x62)[0x7f99cc899da2]\r\nredis-server *:6379(call+0xab)[0x7f99cc82d3ab]\r\nredis-server *:6379(processCommand+0x42f)[0x7f99cc82db6f]\r\nredis-server *:6379(processInputBuffer+0x115)[0x7f99cc83db65]\r\nredis-server *:6379(aeProcessEvents+0x148)[0x7f99cc827128]\r\nredis-server *:6379(aeMain+0x2b)[0x7f99cc82750b]\r\nredis-server *:6379(main+0x4ec)[0x7f99cc8240fc]\r\n/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f99cb611b97]\r\nredis-server *:6379(_start+0x2a)[0x7f99cc82432a]\r\n\r\n------ INFO OUTPUT ------\r\n# Server\r\nredis_version:4.0.9\r\nredis_git_sha1:00000000\r\nredis_git_dirty:0\r\nredis_build_id:1bc80a08306a3efd\r\nredis_mode:standalone\r\nos:Linux 4.4.0-17134-Microsoft x86_64\r\narch_bits:64\r\nmultiplexing_api:epoll\r\natomicvar_api:atomic-builtin\r\ngcc_version:7.3.0\r\nprocess_id:4657\r\nrun_id:ae9bbe1ae109f79679d3e49a58150d473501ad04\r\ntcp_port:6379\r\nuptime_in_seconds:386\r\nuptime_in_days:0\r\nhz:10\r\nlru_clock:15659815\r\nexecutable:/home/zanek/redis-server\r\nconfig_file:\r\n\r\n# Clients\r\nconnected_clients:1\r\nclient_longest_output_list:0\r\nclient_biggest_input_buf:0\r\nblocked_clients:0\r\n\r\n# Memory\r\nused_memory:31000190520\r\nused_memory_human:28.87G\r\nused_memory_rss:33389944832\r\nused_memory_rss_human:31.10G\r\nused_memory_peak:31000190520\r\nused_memory_peak_human:28.87G\r\nused_memory_peak_perc:100.00%\r\nused_memory_overhead:1127971390\r\nused_memory_startup:782712\r\nused_memory_dataset:29872219130\r\nused_memory_dataset_perc:96.36%\r\ntotal_system_memory:68668452864\r\ntotal_system_memory_human:63.95G\r\nused_memory_lua:37888\r\nused_memory_lua_human:37.00K\r\nmaxmemory:0\r\nmaxmemory_human:0B\r\nmaxmemory_policy:noeviction\r\nmem_fragmentation_ratio:1.08\r\nmem_allocator:jemalloc-3.6.0\r\nactive_defrag_running:0\r\nlazyfree_pending_objects:0\r\n\r\n# Persistence\r\nloading:0\r\nrdb_changes_since_last_save:0\r\nrdb_bgsave_in_progress:0\r\nrdb_last_save_time:1542386085\r\nrdb_last_bgsave_status:ok\r\nrdb_last_bgsave_time_sec:-1\r\nrdb_current_bgsave_time_sec:-1\r\nrdb_last_cow_size:0\r\naof_enabled:0\r\naof_rewrite_in_progress:0\r\naof_rewrite_scheduled:0\r\naof_last_rewrite_time_sec:-1\r\naof_current_rewrite_time_sec:-1\r\naof_last_bgrewrite_status:ok\r\naof_last_write_status:ok\r\naof_last_cow_size:0\r\n\r\n# Stats\r\ntotal_connections_received:1\r\ntotal_commands_processed:3\r\ninstantaneous_ops_per_sec:0\r\ntotal_net_input_bytes:102\r\ntotal_net_output_bytes:12209\r\ninstantaneous_input_kbps:0.00\r\ninstantaneous_output_kbps:0.00\r\nrejected_connections:0\r\nsync_full:0\r\nsync_partial_ok:0\r\nsync_partial_err:0\r\nexpired_keys:0\r\nexpired_stale_perc:0.00\r\nexpired_time_cap_reached_count:0\r\nevicted_keys:0\r\nkeyspace_hits:742\r\nkeyspace_misses:0\r\npubsub_channels:0\r\npubsub_patterns:0\r\nlatest_fork_usec:0\r\nmigrate_cached_sockets:0\r\nslave_expires_tracked_keys:0\r\nactive_defrag_hits:0\r\nactive_defrag_misses:0\r\nactive_defrag_key_hits:0\r\nactive_defrag_key_misses:0\r\n\r\n# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_replid:deba5c97e37fecc16829002582ac4b0fa951e84f\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n\r\n# CPU\r\nused_cpu_sys:75.94\r\nused_cpu_user:243.55\r\nused_cpu_sys_children:0.00\r\nused_cpu_user_children:0.00\r\n\r\n# Commandstats\r\ncmdstat_command:calls=1,usec=337,usec_per_call=337.00\r\ncmdstat_FT.SUGGET:calls=1,usec=1218,usec_per_call=1218.00\r\ncmdstat_info:calls=1,usec=766,usec_per_call=766.00\r\n\r\n# Cluster\r\ncluster_enabled:0\r\n\r\n# Keyspace\r\ndb0:keys=21467589,expires=0,avg_ttl=0\r\n\r\n------ CLIENT LIST OUTPUT ------\r\nid=195 addr=127.0.0.1:51700 fd=8 name= age=6 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=FT.SUGGET\r\n\r\n------ CURRENT CLIENT INFO ------\r\nid=195 addr=127.0.0.1:51700 fd=8 name= age=6 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=FT.SUGGET\r\nargv[0]: 'FT.SUGGET'\r\nargv[1]: 'test'\r\nargv[2]: 'boog'\r\nargv[3]: '1'\r\n4657:M 16 Nov 08:41:11.919 # key 'test' found in DB containing the following object:\r\n4657:M 16 Nov 08:41:11.919 # Object type: 5\r\n4657:M 16 Nov 08:41:11.919 # Object encoding: 0\r\n4657:M 16 Nov 08:41:11.921 # Object refcount: 1\r\n\r\n------ REGISTERS ------\r\n4657:M 16 Nov 08:41:11.922 #\r\nRAX:00007f99cb9d8580 RBX:00007f91efb9f293\r\nRCX:0000000000000031 RDX:0000000000000001\r\nRDI:0000000000000004 RSI:00007f91efb9f293\r\nRBP:0000000000000001 RSP:00007fffdf1b4478\r\nR8 :00007f91efb9f2b8 R9 :0000000000000001\r\nR10:0000000000000013 R11:0000000000000013\r\nR12:00007fffdf1b4510 R13:00007fffdf1b4530\r\nR14:00007f99c47d4db8 R15:00007fffdf1b4630\r\nRIP:00007f99cb77df83 EFL:0000000000010246\r\nCSGSFS:00000053002b0033\r\n4657:M 16 Nov 08:41:11.927 # (00007fffdf1b4487) -> 00007fffdf1b4740\r\n4657:M 16 Nov 08:41:11.927 # (00007fffdf1b4486) -> 00057acad5c28508\r\n4657:M 16 Nov 08:41:11.928 # (00007fffdf1b4485) -> 00007f91efb9f273\r\n4657:M 16 Nov 08:41:11.928 # (00007fffdf1b4484) -> 00007f91efb9f2a0\r\n4657:M 16 Nov 08:41:11.928 # (00007fffdf1b4483) -> 00007fffdf1b4510\r\n4657:M 16 Nov 08:41:11.929 # (00007fffdf1b4482) -> 00007fffdf1b4640\r\n4657:M 16 Nov 08:41:11.929 # (00007fffdf1b4481) -> 00007fffdf1b4570\r\n4657:M 16 Nov 08:41:11.931 # (00007fffdf1b4480) -> b3ac7cc920a27500\r\n4657:M 16 Nov 08:41:11.931 # (00007fffdf1b447f) -> 0000000000000001\r\n4657:M 16 Nov 08:41:11.932 # (00007fffdf1b447e) -> 00007f91efb9f293\r\n4657:M 16 Nov 08:41:11.932 # (00007fffdf1b447d) -> 00007fffdf1b4590\r\n4657:M 16 Nov 08:41:11.933 # (00007fffdf1b447c) -> 00007fffdf1b4508\r\n4657:M 16 Nov 08:41:11.933 # (00007fffdf1b447b) -> 00007fffdf1b44a8\r\n4657:M 16 Nov 08:41:11.933 # (00007fffdf1b447a) -> 00007fffdf1b44b0\r\n4657:M 16 Nov 08:41:11.934 # (00007fffdf1b4479) -> 00007f91efb95000\r\n4657:M 16 Nov 08:41:11.934 # (00007fffdf1b4478) -> 00007f99c46b7ccb\r\n\r\n------ FAST MEMORY TEST ------\r\n4657:M 16 Nov 08:41:11.935 # Bio thread for job type #0 terminated\r\n4657:M 16 Nov 08:41:11.936 # Bio thread for job type #1 terminated\r\n4657:M 16 Nov 08:41:11.936 # Bio thread for job type #2 terminated\r\n*** Preparing to test memory region 7f91ef400000 (2902458368 bytes)\r\n*** Preparing to test memory region 7f929c7e7000 (4096 bytes)\r\n*** Preparing to test memory region 7f929c7f1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f929d000000 (30488395776 bytes)\r\n*** Preparing to test memory region 7f99b6451000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99b6c61000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99b7471000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99b7c81000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99b8491000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99b8ca1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99b94b1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99b9cc1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99ba4d1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99bace1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99bb4f1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99bbd01000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99bc511000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99bcd21000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99bd531000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99bdd41000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99be551000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99bed61000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99bf571000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99bfd81000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c0591000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c0da1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c15b1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c1dc1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c25d1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c2de1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c35f1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c3e01000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c4a37000 (24576 bytes)\r\n*** Preparing to test memory region 7f99c4a3d000 (12288 bytes)\r\n*** Preparing to test memory region 7f99c4a41000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c5251000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c5a61000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c6271000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c6a81000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c7291000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c7aa1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c82b1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c8cee000 (4096 bytes)\r\n*** Preparing to test memory region 7f99c93ab000 (151552 bytes)\r\n*** Preparing to test memory region 7f99c93d1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99c9be1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99ca3f1000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99cac00000 (8388608 bytes)\r\n*** Preparing to test memory region 7f99cb9db000 (8192 bytes)\r\n*** Preparing to test memory region 7f99cb9dd000 (16384 bytes)\r\n*** Preparing to test memory region 7f99cbc0a000 (4096 bytes)\r\n*** Preparing to test memory region 7f99cbc0b000 (16384 bytes)\r\n*** Preparing to test memory region 7f99cbe44000 (4096 bytes)\r\n*** Preparing to test memory region 7f99cbe45000 (4096 bytes)\r\n*** Preparing to test memory region 7f99cc053000 (4096 bytes)\r\n*** Preparing to test memory region 7f99cc3fd000 (4096 bytes)\r\n*** Preparing to test memory region 7f99cc628000 (4096 bytes)\r\n*** Preparing to test memory region 7f99cc629000 (4096 bytes)\r\n*** Preparing to test memory region 7f99cc780000 (8192 bytes)\r\n*** Preparing to test memory region 7f99cc790000 (8192 bytes)\r\n*** Preparing to test memory region 7f99ccb04000 (20480 bytes)\r\n*** Preparing to test memory region 7f99ccb09000 (90112 bytes)\r\n.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O\r\nFast memory test PASSED, however your memory can still be broken. Please run a memory test for several hours if possible.\r\n\r\n------ DUMPING CODE AROUND EIP ------\r\nSymbol: (null) (base: (nil))\r\nModule: /lib/x86_64-linux-gnu/libc.so.6 (base 0x7f99cb5f0000)\r\n$ xxd -r -p /tmp/dump.hex /tmp/dump.bin\r\n$ objdump --adjust-vma=(nil) -D -b binary -m i386:x86-64 /tmp/dump.bin\r\n------\r\n\r\n=== REDIS BUG REPORT END. Make sure to include from START to END. ===\r\n\r\n       Please report the crash by opening an issue on github:\r\n\r\n           http://github.com/antirez/redis/issues\r\n\r\n  Suspect RAM error? Use redis-server --test-memory to verify it.\r\n\r\nSegmentation fault (core dumped)"}}
{"actor":{"display_login":"zanek"}}