$ gdb ./cbc GNU gdb (GDB) Fedora (7.3.50.20110722-13.fc16) Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /opt/libcouchbase/bin/cbc...done. (gdb) set args observe -h192.168.0.101 -bvp_transactions -uwarp -Ptesttest 0001 (gdb) show args Argument list to give program being debugged when it is started is "observe -h192.168.0.101 -bvp_transactions -uwarp -Ptesttest 0001". (gdb) run Starting program: /opt/libcouchbase/bin/cbc observe -h192.168.0.101 -bvp_transactions -uwarp -Ptesttest 0001 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7bdf78f in vbucket_get_master (vb=0x619190, vbucket=21870) at src/vbucket.c:704 704 return vb->vbuckets[vbucket].servers[0]; Missing separate debuginfos, use: debuginfo-install glibc-2.14.90-24.fc16.6.x86_64 (gdb) backtrace #0 0x00007ffff7bdf78f in vbucket_get_master (vb=0x619190, vbucket=21870) at src/vbucket.c:704 #1 0x00007ffff7dea4e9 in observe_response_handler (server=0x62cd00, command_data=0x7fffffffda00, res=0x61e380) at src/handler.c:330 #2 0x00007ffff7de82f6 in parse_single (stop=1342731596383565000, c=0x62cd00) at src/event.c:143 #3 do_read_data (c=0x62cd00) at src/event.c:226 #4 libcouchbase_server_event_handler (sock=, which=2, arg=0x62cd00) at src/event.c:291 #5 0x00007ffff7783bcc in event_process_active_single_queue (activeq=, base=) at event.c:1287 #6 event_process_active (base=) at event.c:1354 #7 event_base_loop (base=0x617170, flags=0) at event.c:1551 #8 0x000000000040844b in handleCommandLineOptions (cmd=, argc=, argv=) at tools/cbc.cc:1378 #9 0x0000000000404241 in main (argc=6, argv=0x7fffffffdf50) at tools/cbc.cc:1526 (gdb) frame 1 #1 0x00007ffff7dea4e9 in observe_response_handler (server=0x62cd00, command_data=0x7fffffffda00, res=0x61e380) at src/handler.c:330 330 server->index == vbucket_get_master(config, vb), (gdb) x/100c res 0x61e380: -127 '\201' -110 '\222' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 1 '\001' 0x61e388: 0 '\000' 0 '\000' 0 '\000' 20 '\024' 1 '\001' 0 '\000' 0 '\000' 0 '\000' 0x61e390: 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0x61e398: 85 'U' 110 'n' 107 'k' 110 'n' 111 'o' 119 'w' 110 'n' 32 ' ' 0x61e3a0: 99 'c' 111 'o' 110 'n' 102 'f' 105 'i' 103 'g' 32 ' ' 112 'p' 0x61e3a8: 97 'a' 114 'r' 97 'a' 109 'm' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0x61e3b0: 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0x61e3b8: 113 'q' -46 '\322' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0x61e3c0: 32 ' ' -59 '\305' 97 'a' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0x61e3c8: -64 '\300' -30 '\342' 97 'a' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0x61e3d0: 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0x61e3d8: 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0x61e3e0: 0 '\000' 0 '\000' 0 '\000' 0 '\000' (gdb) q