[warp@warp-fedora64-devel bin]$ 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=0x7fffffffda20, res=0x61e380) at src/handler.c:330 #2 0x00007ffff7de82f6 in parse_single (stop=1342723868396877000, 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=0x7fffffffdf70) at tools/cbc.cc:1526 (gdb) frame 0 #0 0x00007ffff7bdf78f in vbucket_get_master (vb=0x619190, vbucket=21870) at src/vbucket.c:704 704 return vb->vbuckets[vbucket].servers[0]; (gdb) info frame Stack level 0, frame at 0x7fffffffd8d0: rip = 0x7ffff7bdf78f in vbucket_get_master (src/vbucket.c:704); saved rip 0x7ffff7dea4e9 called by frame at 0x7fffffffd980 source language c. Arglist at 0x7fffffffd8c0, args: vb=0x619190, vbucket=21870 Locals at 0x7fffffffd8c0, Previous frame's sp is 0x7fffffffd8d0 Saved registers: rip at 0x7fffffffd8c8 (gdb) info locals No locals. (gdb) up #1 0x00007ffff7dea4e9 in observe_response_handler (server=0x62cd00, command_data=0x7fffffffda20, res=0x61e380) at src/handler.c:330 330 server->index == vbucket_get_master(config, vb), (gdb) info frame Stack level 1, frame at 0x7fffffffd980: rip = 0x7ffff7dea4e9 in observe_response_handler (src/handler.c:330); saved rip 0x7ffff7de82f6 called by frame at 0x7fffffffda80, caller of frame at 0x7fffffffd8d0 source language c. Arglist at 0x7fffffffd8c8, args: server=0x62cd00, command_data=0x7fffffffda20, res=0x61e380 Locals at 0x7fffffffd8c8, Previous frame's sp is 0x7fffffffd980 Saved registers: rbx at 0x7fffffffd948, rbp at 0x7fffffffd950, r12 at 0x7fffffffd958, r13 at 0x7fffffffd960, r14 at 0x7fffffffd968, r15 at 0x7fffffffd970, rip at 0x7fffffffd978 (gdb) info locals cas = vb = 21870 key = 0x61e39c "own config param" obs = 0 '\000' nkey = 27502 root = 0x6176e0 status = 1 ttp = ttr = config = 0x619190 end = 0x61e3ac "" ptr = 0x624f13 "" (gdb) q