{"action":"created","issue":{"url":"https://api.github.com/repos/archiecobbs/s3backer/issues/44","labels_url":"https://api.github.com/repos/archiecobbs/s3backer/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/archiecobbs/s3backer/issues/44/comments","events_url":"https://api.github.com/repos/archiecobbs/s3backer/issues/44/events","html_url":"https://github.com/archiecobbs/s3backer/issues/44","id":72278513,"number":44,"title":"Segfault on mount","user":{"login":"daledude","id":590325,"avatar_url":"https://avatars.githubusercontent.com/u/590325?v=3","gravatar_id":"","url":"https://api.github.com/users/daledude","html_url":"https://github.com/daledude","followers_url":"https://api.github.com/users/daledude/followers","following_url":"https://api.github.com/users/daledude/following{/other_user}","gists_url":"https://api.github.com/users/daledude/gists{/gist_id}","starred_url":"https://api.github.com/users/daledude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daledude/subscriptions","organizations_url":"https://api.github.com/users/daledude/orgs","repos_url":"https://api.github.com/users/daledude/repos","events_url":"https://api.github.com/users/daledude/events{/privacy}","received_events_url":"https://api.github.com/users/daledude/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-30T20:54:10Z","updated_at":"2015-04-30T22:56:05Z","closed_at":null,"body":"I'm getting a segfault when mounting. Below is gdb output if useful.\r\n\r\nUsing Centos 6 with kernel 3.19.2-1.el6.elrepo.x86_64\r\n\r\n\r\n```\r\n# gdb --args s3backer -s -f -d --blockSize=128k --size=10g --listBlocks  testbkp /mnt/s3backer\r\n\r\nGNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6)\r\nCopyright (C) 2010 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\r\nand \"show warranty\" for details.\r\nThis GDB was configured as \"x86_64-redhat-linux-gnu\".\r\nFor bug reporting instructions, please see:\r\n<http://www.gnu.org/software/gdb/bugs/>...\r\nReading symbols from /usr/bin/s3backer...Reading symbols from /usr/lib/debug/usr/bin/s3backer.debug...done.\r\ndone.\r\n(gdb) r\r\nStarting program: /usr/bin/s3backer -s -f -d --blockSize=128k --size=10g --listBlocks testbkp /mnt/s3backer\r\n[Thread debugging using libthread_db enabled]\r\ns3backer: auto-detecting block size and total file size...\r\n2015-04-30 13:46:46 DEBUG: HEAD http://s3.amazonaws.com/testbkp/00000000\r\n[New Thread 0x7ffff7d96700 (LWP 24001)]\r\n[Thread 0x7ffff7d96700 (LWP 24001) exited]\r\n2015-04-30 13:46:46 DEBUG: rec'd 404 response: HEAD http://s3.amazonaws.com/testbkp/00000000\r\ns3backer: auto-detection failed; using configured block size 128k and file size 10g\r\n2015-04-30 13:46:46 DEBUG: HEAD http://s3.amazonaws.com/testbkp/s3backer-mounted\r\n[New Thread 0x7ffff7d96700 (LWP 24002)]\r\n[Thread 0x7ffff7d96700 (LWP 24002) exited]\r\n2015-04-30 13:46:46 DEBUG: rec'd 404 response: HEAD http://s3.amazonaws.com/testbkp/s3backer-mounted\r\ns3backer: listing non-zero blocks...2015-04-30 13:46:46 DEBUG: GET http://s3.amazonaws.com/testbkp?max-keys=256&prefix=\r\n[New Thread 0x7ffff7d96700 (LWP 24003)]\r\n[Thread 0x7ffff7d96700 (LWP 24003) exited]\r\n2015-04-30 13:46:47 DEBUG: success: GET http://s3.amazonaws.com/testbkp?max-keys=256&prefix=\r\ndone\r\ns3backer: found 0 non-zero blocks\r\n2015-04-30 13:46:47 DEBUG: s3backer config:\r\n2015-04-30 13:46:47 DEBUG:                test mode: false\r\n2015-04-30 13:46:47 DEBUG:                 directIO: false\r\n2015-04-30 13:46:47 DEBUG:                 accessId: \"WUT\"\r\n2015-04-30 13:46:47 DEBUG:                accessKey: \"****\"\r\n2015-04-30 13:46:47 DEBUG:               accessFile: \"/root/.s3backer_passwd\"\r\n2015-04-30 13:46:47 DEBUG:               accessType: private\r\n2015-04-30 13:46:47 DEBUG:              ec2iam_role: \"\"\r\n2015-04-30 13:46:47 DEBUG:              authVersion: aws4\r\n2015-04-30 13:46:47 DEBUG:                  baseURL: \"http://s3.amazonaws.com/\"\r\n2015-04-30 13:46:47 DEBUG:                   region: \"us-east-1\"\r\n2015-04-30 13:46:47 DEBUG:                   bucket: \"testbkp\"\r\n2015-04-30 13:46:47 DEBUG:                   prefix: \"\"\r\n2015-04-30 13:46:47 DEBUG:              list_blocks: true\r\n2015-04-30 13:46:47 DEBUG:                    mount: \"/mnt/s3backer\"\r\n2015-04-30 13:46:47 DEBUG:                 filename: \"file\"\r\n2015-04-30 13:46:47 DEBUG:           stats_filename: \"stats\"\r\n2015-04-30 13:46:47 DEBUG:               block_size: 128k (131072)\r\n2015-04-30 13:46:47 DEBUG:                file_size: 10g (10737418240)\r\n2015-04-30 13:46:47 DEBUG:               num_blocks: 81920\r\n2015-04-30 13:46:47 DEBUG:                file_mode: 0600\r\n2015-04-30 13:46:47 DEBUG:                read_only: false\r\n2015-04-30 13:46:47 DEBUG:                 compress: 0\r\n2015-04-30 13:46:47 DEBUG:               encryption: (none)\r\n2015-04-30 13:46:47 DEBUG:               key_length: 0\r\n2015-04-30 13:46:47 DEBUG:                 password: \"\"\r\n2015-04-30 13:46:47 DEBUG:               max_upload: - bps (0)\r\n2015-04-30 13:46:47 DEBUG:             max_download: - bps (0)\r\n2015-04-30 13:46:47 DEBUG:                  timeout: 30s\r\n2015-04-30 13:46:47 DEBUG:      initial_retry_pause: 200ms\r\n2015-04-30 13:46:47 DEBUG:          max_retry_pause: 30000ms\r\n2015-04-30 13:46:47 DEBUG:          min_write_delay: 500ms\r\n2015-04-30 13:46:47 DEBUG:           md5_cache_time: 10000ms\r\n2015-04-30 13:46:47 DEBUG:           md5_cache_size: 10000 entries\r\n2015-04-30 13:46:47 DEBUG:         block_cache_size: 1000 entries\r\n2015-04-30 13:46:47 DEBUG:      block_cache_threads: 20 threads\r\n2015-04-30 13:46:47 DEBUG:      block_cache_timeout: 0ms\r\n2015-04-30 13:46:47 DEBUG:  block_cache_write_delay: 250ms\r\n2015-04-30 13:46:47 DEBUG:    block_cache_max_dirty: 0 blocks\r\n2015-04-30 13:46:47 DEBUG:         block_cache_sync: false\r\n2015-04-30 13:46:47 DEBUG:               read_ahead: 4 blocks\r\n2015-04-30 13:46:47 DEBUG:       read_ahead_trigger: 2 blocks\r\n2015-04-30 13:46:47 DEBUG:   block_cache_cache_file: \"\"\r\n2015-04-30 13:46:47 DEBUG:    block_cache_no_verify: false\r\n2015-04-30 13:46:47 DEBUG: fuse_main arguments:\r\n2015-04-30 13:46:47 DEBUG:   [0] = \"/usr/bin/s3backer\"\r\n2015-04-30 13:46:47 DEBUG:   [1] = \"-ofsname=http://s3.amazonaws.com/testbkp/\"\r\n2015-04-30 13:46:47 DEBUG:   [2] = \"-o\"\r\n2015-04-30 13:46:47 DEBUG:   [3] = \"kernel_cache,allow_other,use_ino,max_readahead=0,subtype=s3backer,entry_timeout=31536000,negative_timeout=31536000,attr_timeout=0,default_permissions,nodev,nosuid\"\r\n2015-04-30 13:46:47 DEBUG:   [4] = \"-s\"\r\n2015-04-30 13:46:47 DEBUG:   [5] = \"-f\"\r\n2015-04-30 13:46:47 DEBUG:   [6] = \"-d\"\r\n2015-04-30 13:46:47 DEBUG:   [7] = \"/mnt/s3backer\"\r\n2015-04-30 13:46:47 INFO: s3backer process 23998 for /mnt/s3backer started\r\nDetaching after fork from child process 24007.\r\nFUSE library version: 2.9.3\r\nnullpath_ok: 0\r\nnopath: 0\r\nutime_omit_ok: 0\r\nunique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0\r\nINIT: 7.23\r\nflags=0x0003f7fb\r\nmax_readahead=0x00020000\r\n[New Thread 0x7ffff7d96700 (LWP 24008)]\r\n[New Thread 0x7ffff715f700 (LWP 24009)]\r\n[New Thread 0x7ffff695e700 (LWP 24010)]\r\n[New Thread 0x7ffff615d700 (LWP 24011)]\r\n[New Thread 0x7ffff595c700 (LWP 24012)]\r\n[New Thread 0x7ffff515b700 (LWP 24013)]\r\n[New Thread 0x7ffff495a700 (LWP 24014)]\r\n[New Thread 0x7fffeffff700 (LWP 24015)]\r\n[New Thread 0x7fffef7fe700 (LWP 24016)]\r\n[New Thread 0x7fffeeffd700 (LWP 24017)]\r\n[New Thread 0x7fffee7fc700 (LWP 24018)]\r\n[New Thread 0x7fffedffb700 (LWP 24019)]\r\n[New Thread 0x7fffed7fa700 (LWP 24020)]\r\n[New Thread 0x7fffecff9700 (LWP 24021)]\r\n[New Thread 0x7fffec7f8700 (LWP 24022)]\r\n[New Thread 0x7fffebff7700 (LWP 24023)]\r\n[New Thread 0x7fffeb7f6700 (LWP 24024)]\r\n[New Thread 0x7fffeaff5700 (LWP 24025)]\r\n[New Thread 0x7fffea7f4700 (LWP 24026)]\r\n[New Thread 0x7fffe9ff3700 (LWP 24027)]\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x0000000000841f0f in ?? ()\r\n(gdb) bt\r\n#0  0x0000000000841f0f in ?? ()\r\n#1  0x00000037ef4e9b31 in EVP_MD_CTX_cleanup (ctx=0x7fffffffd210) at digest.c:425\r\n#2  0x000000000040b0f3 in http_io_add_auth4 (priv=<value optimized out>, io=<value optimized out>, now=1430426807, payload=<value optimized out>, plen=<value optimized out>) at http_io.c:2211\r\n#3  0x000000000040e954 in http_io_set_mounted (s3b=<value optimized out>, old_valuep=0x7fffffffe00c, new_value=1) at http_io.c:806\r\n#4  0x000000000040ee87 in s3backer_create_store (conf=0x61a7a0) at s3b_config.c:604\r\n#5  0x0000000000408823 in fuse_op_init (conn=<value optimized out>) at fuse_ops.c:156\r\n#6  0x00007ffff7daf8d3 in fuse_fs_init (fs=0x61b1f0, conn=0x61ba44) at fuse.c:2594\r\n#7  0x00007ffff7dbcfe6 in do_init (req=0x61df60, nodeid=<value optimized out>, inarg=0x7ffff7160038) at fuse_lowlevel.c:1835\r\n#8  0x00007ffff7dbe69d in fuse_ll_process_buf (data=0x61b8b0, buf=0x7fffffffe240, ch=0x61bbc8) at fuse_lowlevel.c:2441\r\n#9  0x00007ffff7dbaa7c in fuse_session_loop (se=0x61dff0) at fuse_loop.c:40\r\n#10 0x00007ffff7db5570 in fuse_loop (f=0x61e180) at fuse.c:4313\r\n#11 0x00007ffff7dc2a94 in fuse_main_common (argc=<value optimized out>, argv=<value optimized out>, op=<value optimized out>, op_size=<value optimized out>, user_data=<value optimized out>, compat=<value optimized out>) at helper.c:357\r\n#12 0x0000003b8a41ed5d in __libc_start_main (main=0x403a30 <main>, argc=9, ubp_av=0x7fffffffe4a8, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fffffffe498) at libc-start.c:226\r\n#13 0x0000000000403969 in _start ()\r\n(gdb)\r\n```"},"comment":{"url":"https://api.github.com/repos/archiecobbs/s3backer/issues/comments/97994068","html_url":"https://github.com/archiecobbs/s3backer/issues/44#issuecomment-97994068","issue_url":"https://api.github.com/repos/archiecobbs/s3backer/issues/44","id":97994068,"user":{"login":"daledude","id":590325,"avatar_url":"https://avatars.githubusercontent.com/u/590325?v=3","gravatar_id":"","url":"https://api.github.com/users/daledude","html_url":"https://github.com/daledude","followers_url":"https://api.github.com/users/daledude/followers","following_url":"https://api.github.com/users/daledude/following{/other_user}","gists_url":"https://api.github.com/users/daledude/gists{/gist_id}","starred_url":"https://api.github.com/users/daledude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daledude/subscriptions","organizations_url":"https://api.github.com/users/daledude/orgs","repos_url":"https://api.github.com/users/daledude/repos","events_url":"https://api.github.com/users/daledude/events{/privacy}","received_events_url":"https://api.github.com/users/daledude/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T22:56:05Z","updated_at":"2015-04-30T22:56:05Z","body":"Thanks @archiecobbs. It doesn't segfault anymore but it cannot resolve a host. I tried the below without the --accessType\r\n\r\n```\r\n# s3backer -s -f -d --readOnly --accessType=public-read s3backer-demo s3backer\r\ns3backer: auto-detecting block size and total file size...\r\n2015-04-30 15:53:54 DEBUG: HEAD http://s3.amazonaws.com/s3backer-demo/00000000\r\n2015-04-30 15:53:54 DEBUG: success: HEAD http://s3.amazonaws.com/s3backer-demo/00000000\r\ns3backer: auto-detected block size=4k and total size=20m\r\n2015-04-30 15:53:54 DEBUG: HEAD http://s3.amazonaws.com/s3backer-demo/s3backer-mounted\r\n2015-04-30 15:53:55 DEBUG: rec'd 404 response: HEAD http://s3.amazonaws.com/s3backer-demo/s3backer-mounted\r\n2015-04-30 15:53:55 DEBUG: s3backer config:\r\n2015-04-30 15:53:55 DEBUG:                test mode: false\r\n2015-04-30 15:53:55 DEBUG:                 directIO: false\r\n2015-04-30 15:53:55 DEBUG:                 accessId: \"\"\r\n2015-04-30 15:53:55 DEBUG:                accessKey: \"\"\r\n2015-04-30 15:53:55 DEBUG:               accessFile: \"/root/.s3backer_passwd\"\r\n2015-04-30 15:53:55 DEBUG:               accessType: public-read\r\n2015-04-30 15:53:55 DEBUG:              ec2iam_role: \"\"\r\n2015-04-30 15:53:55 DEBUG:              authVersion: aws4\r\n2015-04-30 15:53:55 DEBUG:                  baseURL: \"http://s3.amazonaws.com/\"\r\n2015-04-30 15:53:55 DEBUG:                   region: \"us-east-1\"\r\n2015-04-30 15:53:55 DEBUG:                   bucket: \"s3backer-demo\"\r\n2015-04-30 15:53:55 DEBUG:                   prefix: \"\"\r\n2015-04-30 15:53:55 DEBUG:              list_blocks: false\r\n2015-04-30 15:53:55 DEBUG:                    mount: \"s3backer\"\r\n2015-04-30 15:53:55 DEBUG:                 filename: \"file\"\r\n2015-04-30 15:53:55 DEBUG:           stats_filename: \"stats\"\r\n2015-04-30 15:53:55 DEBUG:               block_size: - (4096)\r\n2015-04-30 15:53:55 DEBUG:                file_size: - (20971520)\r\n2015-04-30 15:53:55 DEBUG:               num_blocks: 5120\r\n2015-04-30 15:53:55 DEBUG:                file_mode: 0400\r\n2015-04-30 15:53:55 DEBUG:                read_only: true\r\n2015-04-30 15:53:55 DEBUG:                 compress: 0\r\n2015-04-30 15:53:55 DEBUG:               encryption: (none)\r\n2015-04-30 15:53:55 DEBUG:               key_length: 0\r\n2015-04-30 15:53:55 DEBUG:                 password: \"\"\r\n2015-04-30 15:53:55 DEBUG:               max_upload: - bps (0)\r\n2015-04-30 15:53:55 DEBUG:             max_download: - bps (0)\r\n2015-04-30 15:53:55 DEBUG:                  timeout: 30s\r\n2015-04-30 15:53:55 DEBUG:      initial_retry_pause: 200ms\r\n2015-04-30 15:53:55 DEBUG:          max_retry_pause: 30000ms\r\n2015-04-30 15:53:55 DEBUG:          min_write_delay: 0ms\r\n2015-04-30 15:53:55 DEBUG:           md5_cache_time: 0ms\r\n2015-04-30 15:53:55 DEBUG:           md5_cache_size: 0 entries\r\n2015-04-30 15:53:55 DEBUG:         block_cache_size: 1000 entries\r\n2015-04-30 15:53:55 DEBUG:      block_cache_threads: 20 threads\r\n2015-04-30 15:53:55 DEBUG:      block_cache_timeout: 0ms\r\n2015-04-30 15:53:55 DEBUG:  block_cache_write_delay: 250ms\r\n2015-04-30 15:53:55 DEBUG:    block_cache_max_dirty: 0 blocks\r\n2015-04-30 15:53:55 DEBUG:         block_cache_sync: false\r\n2015-04-30 15:53:55 DEBUG:               read_ahead: 4 blocks\r\n2015-04-30 15:53:55 DEBUG:       read_ahead_trigger: 2 blocks\r\n2015-04-30 15:53:55 DEBUG:   block_cache_cache_file: \"\"\r\n2015-04-30 15:53:55 DEBUG:    block_cache_no_verify: false\r\n2015-04-30 15:53:55 DEBUG: fuse_main arguments:\r\n2015-04-30 15:53:55 DEBUG:   [0] = \"s3backer\"\r\n2015-04-30 15:53:55 DEBUG:   [1] = \"-ofsname=http://s3.amazonaws.com/s3backer-demo/\"\r\n2015-04-30 15:53:55 DEBUG:   [2] = \"-o\"\r\n2015-04-30 15:53:55 DEBUG:   [3] = \"kernel_cache,allow_other,use_ino,max_readahead=0,subtype=s3backer,entry_timeout=31536000,negative_timeout=31536000,attr_timeout=0,default_permissions,nodev,nosuid\"\r\n2015-04-30 15:53:55 DEBUG:   [4] = \"-s\"\r\n2015-04-30 15:53:55 DEBUG:   [5] = \"-f\"\r\n2015-04-30 15:53:55 DEBUG:   [6] = \"-d\"\r\n2015-04-30 15:53:55 DEBUG:   [7] = \"s3backer\"\r\n2015-04-30 15:53:55 INFO: s3backer process 25154 for s3backer started\r\nFUSE library version: 2.9.3\r\nnullpath_ok: 0\r\nnopath: 0\r\nutime_omit_ok: 0\r\nunique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0\r\nINIT: 7.23\r\nflags=0x0003f7fb\r\nmax_readahead=0x00020000\r\n2015-04-30 15:53:55 DEBUG: HEAD \u0003s3backer-demo/s3backer-mounted\r\n2015-04-30 15:53:55 ERROR: operation failed: Couldn't resolve host name (will retry)\r\n2015-04-30 15:53:55 INFO: retrying query (attempt #2): HEAD \u0003s3backer-demo/s3backer-mounted\r\n2015-04-30 15:53:55 ERROR: operation failed: Couldn't resolve host name (will retry)\r\n2015-04-30 15:53:55 INFO: retrying query (attempt #3): HEAD \u0003s3backer-demo/s3backer-mounted\r\n2015-04-30 15:53:55 ERROR: operation failed: Couldn't resolve host name (will retry)\r\n2015-04-30 15:53:56 INFO: retrying query (attempt #4): HEAD \u0003s3backer-demo/s3backer-mounted\r\n2015-04-30 15:53:56 ERROR: operation failed: Couldn't resolve host name (will retry)\r\n2015-04-30 15:53:58 INFO: retrying query (attempt #5): HEAD \u0003s3backer-demo/s3backer-mounted\r\n2015-04-30 15:53:58 ERROR: operation failed: Couldn't resolve host name (will retry)\r\n2015-04-30 15:54:01 INFO: retrying query (attempt #6): HEAD \u0003s3backer-demo/s3backer-mounted\r\n2015-04-30 15:54:01 ERROR: operation failed: Couldn't resolve host name (will retry)\r\n2015-04-30 15:54:07 INFO: retrying query (attempt #7): HEAD \u0003s3backer-demo/s3backer-mounted\r\n2015-04-30 15:54:07 ERROR: operation failed: Couldn't resolve host name (will retry)\r\n2015-04-30 15:54:20 INFO: retrying query (attempt #8): HEAD \u0003s3backer-demo/s3backer-mounted\r\n2015-04-30 15:54:20 ERROR: operation failed: Couldn't resolve host name (will retry)\r\n2015-04-30 15:54:25 INFO: retrying query (attempt #9): HEAD \u0003s3backer-demo/s3backer-mounted\r\n2015-04-30 15:54:25 ERROR: operation failed: Couldn't resolve host name (final attempt)\r\n2015-04-30 15:54:25 ERROR: giving up on: HEAD \u0003s3backer-demo/s3backer-mounted\r\n2015-04-30 15:54:25 ERROR: error reading mounted flag on http://s3.amazonaws.com/s3backer-demo/: Input/output error\r\n2015-04-30 15:54:25 ERROR: fuse_op_init(): can't create s3backer_store: Input/output error\r\n   INIT: 7.19\r\n   flags=0x00000011\r\n   max_readahead=0x00000000\r\n   max_write=0x00020000\r\n   max_background=0\r\n   congestion_threshold=0\r\n   unique: 1, success, outsize: 40\r\nunique: 2, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 25294\r\ngetattr /\r\n   unique: 2, success, outsize: 120\r\nunique: 3, opcode: GETXATTR (22), nodeid: 1, insize: 65, pid: 25294\r\n   unique: 3, error: -38 (Function not implemented), outsize: 16\r\nunique: 4, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 25294\r\ngetattr /\r\n   unique: 4, success, outsize: 120\r\nunique: 5, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 25294\r\ngetattr /\r\n   unique: 5, success, outsize: 120\r\nunique: 6, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 25294\r\n   unique: 6, success, outsize: 32\r\nunique: 7, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 25294\r\nreaddir[0] from 0\r\n   unique: 7, success, outsize: 80\r\nunique: 8, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 25294\r\n   unique: 8, success, outsize: 16\r\nunique: 9, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0\r\n   unique: 9, success, outsize: 16\r\n```"}}