Emmanuel Dreyfus <manu@xxxxxxxxxx> wrote: > This leads me to trying the patch below. Comments are welcome. Passing a NULL fd is not good. I understand this is what crashes me now on open callback (see backtrace below). What should I do? Program terminated with signal 11, Segmentation fault. #0 0xb9edc488 in client_add_fd_to_saved_fds (this=0xb9fd7000, fd=0x0, loc=0xb92b49b8, flags=2, remote_fd=113, is_dir=0) at client-rpc-fops.c:397 397 fdctx->lk_ctx = fd_lk_ctx_ref (fd->lk_ctx); (gdb) bt #0 0xb9edc488 in client_add_fd_to_saved_fds (this=0xb9fd7000, fd=0x0, loc=0xb92b49b8, flags=2, remote_fd=113, is_dir=0) at client-rpc-fops.c:397 #1 0xb9edc6b2 in client3_3_open_cbk (req=0xb849b3b0, iov=0xb849b3d0, count=1, myframe=0xbb3f4c90) at client-rpc-fops.c:451 #2 0xbb76744e in rpc_clnt_handle_reply (clnt=0xb9fb6270, pollin=0xb2f4bd30) at rpc-clnt.c:771 #3 0xbb7676e5 in rpc_clnt_notify (trans=0xb92cb000, mydata=0xb9fb6290, event=RPC_TRANSPORT_MSG_RECEIVED, data=0xb2f4bd30) at rpc-clnt.c:890 #4 0xbb763c86 in rpc_transport_notify (this=0xb92cb000, event=RPC_TRANSPORT_MSG_RECEIVED, data=0xb2f4bd30) at rpc-transport.c:497 #5 0xba694660 in socket_event_poll_in (this=0xb92cb000) at socket.c:2118 #6 0xba694b10 in socket_event_handler (fd=15, idx=2, data=0xb92cb000, poll_in=1, poll_out=0, poll_err=0) at socket.c:2230 #7 0xbb7d08a4 in event_dispatch_poll_handler (event_pool=0xbb341080, ufds=0xbb383160, i=2) at event-poll.c:357 #8 0xbb7d0aee in event_dispatch_poll (event_pool=0xbb341080) at event-poll.c:436 #9 0xbb7ab252 in event_dispatch (event_pool=0xbb341080) at event.c:113 #10 0x0804ff91 in main (argc=4, argv=0xbf7fe830) at glusterfsd.c:1902 -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz manu@xxxxxxxxxx