Skip to content

Instantly share code, notes, and snippets.

@rfjakob
Created November 3, 2015 23:13
Show Gist options
  • Save rfjakob/4bea2186b101cd15443a to your computer and use it in GitHub Desktop.
Save rfjakob/4bea2186b101cd15443a to your computer and use it in GitHub Desktop.
better encfs backtrace
(gdb) bt full
#0 0x00007ff1dcd68430 in __memcpy_sse2_unaligned () from /lib64/libc.so.6
No symbol table info available.
#1 0x00007ff1de8f363e in BlockFileIO::cacheReadOneBlock (this=0x6c6060, req=...) at /home/jakob/code/encfs/encfs/BlockFileIO.cpp:93
tmp = {offset = 0, dataLen = 1024, data = 0x6c60f0 ""}
result = -1
__FUNCTION__ = "cacheReadOneBlock"
#2 0x00007ff1de8f419b in BlockFileIO::padFile (this=0x6c6060, oldSize=-1, newSize=1979297792, forceWrite=false) at /home/jakob/code/encfs/encfs/BlockFileIO.cpp:318
oldLastBlock = 0
newLastBlock = 1932908
newBlockSize = 0
req = {offset = 0, dataLen = -1, data = 0x6e9b10 ""}
mb = {data = 0x6e9b10 "", internalData = 0x6c6bc0}
__FUNCTION__ = "padFile"
#3 0x00007ff1de8f3c2b in BlockFileIO::write (this=0x6c6060, req=...) at /home/jakob/code/encfs/encfs/BlockFileIO.cpp:196
forceWrite = false
__FUNCTION__ = "write"
fileSize = -1
blockNum = 1932908
partialOffset = 0
lastFileBlock = 0
lastBlockSize = -1
lastNonEmptyBlock = 0
mb = {data = 0x0, internalData = 0x6006c8c01}
blockReq = {offset = 140720457281984, dataLen = -561041878, data = 0x4 <error: Cannot access memory at address 0x4>}
ok = false
size = 140676797771462
inPtr = 0x7ffc08de7200 ""
#4 0x00007ff1de918d83 in FileNode::write (this=0x6c4ec0, offset=1979297792,
data=0x7ff1ded6a060 "ion-md5: fb375c278b15a5774cef34cf9570ecc9\nTag: role::shared-lib\nSection: libs\nPriority: optional\nFilename: pool/main/g/gcc-4.9/libquadmath0_4.9.2-10_amd64.deb\nSize: 129150\nMD5sum: 2aecb8a44198903fa97d"...,
size=4096) at /home/jakob/code/encfs/encfs/FileNode.cpp:228
__FUNCTION__ = "write"
req = {offset = 1979297792, dataLen = 4096,
data = 0x7ff1ded6a060 "ion-md5: fb375c278b15a5774cef34cf9570ecc9\nTag: role::shared-lib\nSection: libs\nPriority: optional\nFilename: pool/main/g/gcc-4.9/libquadmath0_4.9.2-10_amd64.deb\nSize: 129150\nMD5sum: 2aecb8a44198903fa97d"...}
_lock = {_mutex = 0x6c4ec0}
#5 0x00007ff1de90d385 in _do_write (fnode=0x6c4ec0,
ptr=0x7ff1ded6a060 "ion-md5: fb375c278b15a5774cef34cf9570ecc9\nTag: role::shared-lib\nSection: libs\nPriority: optional\nFilename: pool/main/g/gcc-4.9/libquadmath0_4.9.2-10_amd64.deb\nSize: 129150\nMD5sum: 2aecb8a44198903fa97d"...,
size=4096, offset=1979297792) at /home/jakob/code/encfs/encfs/encfs.cpp:598
No locals.
#6 0x00007ff1de9171ae in std::_Bind<int (*(std::_Placeholder<1>, unsigned char*, unsigned long, long))(FileNode*, unsigned char*, unsigned long, long)>::__call<int, FileNode*&&, 0ul, 1ul, 2ul, 3ul>(std::tuple<FileNode*&&>&&, std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) (this=0x6ea300, __args=<unknown type in /home/jakob/code/encfs/build/libencfs.so.1.9, CU 0x72e36, DIE 0xa80fc>) at /usr/include/c++/5.1.1/functional:1074
No locals.
#7 0x00007ff1de915a79 in std::_Bind<int (*(std::_Placeholder<1>, unsigned char*, unsigned long, long))(FileNode*, unsigned char*, unsigned long, long)>::operator()<FileNode*, int>(FileNode*&&) (this=0x6ea300)
at /usr/include/c++/5.1.1/functional:1133
No locals.
#8 0x00007ff1de91394d in std::_Function_handler<int (FileNode*), std::_Bind<int (*(std::_Placeholder<1>, unsigned char*, unsigned long, long))(FileNode*, unsigned char*, unsigned long, long)> >::_M_invoke(std::_Any_data const&, FileNode*&&) (__functor=..., __args#0=<unknown type in /home/jakob/code/encfs/build/libencfs.so.1.9, CU 0x72e36, DIE 0xa26e3>) at /usr/include/c++/5.1.1/functional:1857
No locals.
#9 0x00007ff1de90dd9b in std::function<int (FileNode*)>::operator()(FileNode*) const (this=0x7ffc08de7480, __args#0=0x6c4ec0) at /usr/include/c++/5.1.1/functional:2271
No locals.
#10 0x00007ff1de90aa20 in withFileNode(const char *, const char *, fuse_file_info *, std::function<int(FileNode*)>) (opName=0x7ff1de939dc0 "write", path=0x6c5170 "", fi=0x7ffc08de7670, op=...)
at /home/jakob/code/encfs/encfs/encfs.cpp:142
fnode = std::shared_ptr (expired, weak 0) 0x6c4ec0
ctx = 0x6c4610
res = -5
FSRoot = std::shared_ptr (expired, weak 0) 0x6c8850
__FUNCTION__ = "withFileNode"
#11 0x00007ff1de90d436 in encfs_write (path=0x6c5170 "",
buf=0x7ff1ded6a060 "ion-md5: fb375c278b15a5774cef34cf9570ecc9\nTag: role::shared-lib\nSection: libs\nPriority: optional\nFilename: pool/main/g/gcc-4.9/libquadmath0_4.9.2-10_amd64.deb\nSize: 129150\nMD5sum: 2aecb8a44198903fa97d"...,
size=4096, offset=1979297792, file=0x7ffc08de7670) at /home/jakob/code/encfs/encfs/encfs.cpp:608
No locals.
#12 0x00007ff1de617a80 in fuse_fs_write_buf () from /lib64/libfuse.so.2
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#13 0x00007ff1de617bf8 in fuse_lib_write_buf () from /lib64/libfuse.so.2
No symbol table info available.
#14 0x00007ff1de620d1e in fuse_ll_process_buf () from /lib64/libfuse.so.2
No symbol table info available.
#15 0x00007ff1de61cfcc in fuse_session_loop () from /lib64/libfuse.so.2
No symbol table info available.
#16 0x00007ff1de6153b8 in fuse_loop () from /lib64/libfuse.so.2
No symbol table info available.
#17 0x00007ff1de625937 in fuse_main_common () from /lib64/libfuse.so.2
No symbol table info available.
#18 0x000000000040ae7a in main (argc=5, argv=0x7ffc08de7c58) at /home/jakob/code/encfs/encfs/main.cpp:671
startTime = 1446591415
endTime = 2099
res = 0
slog = std::unique_ptr<rlog::StdioNode> containing 0x6a8ad0
logNode = std::unique_ptr<rlog::SyslogNode> containing 0x0
encfsArgs = std::shared_ptr (count 2, weak 0) 0x6a8c60
__FUNCTION__ = "main"
encfs_oper = {getattr = 0x407cd0 <encfs_getattr(char const*, stat*)@plt>, readlink = 0x407e90 <encfs_readlink(char const*, char*, unsigned long)@plt>,
getdir = 0x407cb0 <encfs_getdir(char const*, fuse_dirhandle*, int (*)(fuse_dirhandle*, char const*, int, unsigned long))@plt>, mknod = 0x407c70 <encfs_mknod(char const*, unsigned int, unsigned long)@plt>,
mkdir = 0x407f50 <encfs_mkdir(char const*, unsigned int)@plt>, unlink = 0x407a10 <encfs_unlink(char const*)@plt>, rmdir = 0x407ad0 <encfs_rmdir(char const*)@plt>,
symlink = 0x407f80 <encfs_symlink(char const*, char const*)@plt>, rename = 0x407c90 <encfs_rename(char const*, char const*)@plt>, link = 0x407d90 <encfs_link(char const*, char const*)@plt>,
chmod = 0x407d30 <encfs_chmod(char const*, unsigned int)@plt>, chown = 0x407b90 <encfs_chown(char const*, unsigned int, unsigned int)@plt>, truncate = 0x407fe0 <encfs_truncate(char const*, long)@plt>,
utime = 0x4079a0 <encfs_utime(char const*, utimbuf*)@plt>, open = 0x407980 <encfs_open(char const*, fuse_file_info*)@plt>, read = 0x407bc0 <encfs_read(char const*, char*, unsigned long, long, fuse_file_info*)@plt>,
write = 0x407e50 <encfs_write(char const*, char const*, unsigned long, long, fuse_file_info*)@plt>, statfs = 0x407ea0 <encfs_statfs(char const*, statvfs*)@plt>, flush = 0x407c10 <encfs_flush(char const*, fuse_file_info*)@plt>,
release = 0x407bb0 <encfs_release(char const*, fuse_file_info*)@plt>, fsync = 0x408060 <encfs_fsync(char const*, int, fuse_file_info*)@plt>,
setxattr = 0x407ab0 <encfs_setxattr(char const*, char const*, char const*, unsigned long, int)@plt>, getxattr = 0x407bd0 <encfs_getxattr(char const*, char const*, char*, unsigned long)@plt>,
listxattr = 0x407b40 <encfs_listxattr(char const*, char*, unsigned long)@plt>, removexattr = 0x407d80 <encfs_removexattr(char const*, char const*)@plt>, opendir = 0x0, readdir = 0x0, releasedir = 0x0, fsyncdir = 0x0,
init = 0x40a328 <encfs_init(fuse_conn_info*)>, destroy = 0x40a545 <encfs_destroy(void*)>, access = 0x0, create = 0x0, ftruncate = 0x407fd0 <encfs_ftruncate(char const*, long, fuse_file_info*)@plt>,
fgetattr = 0x407ae0 <encfs_fgetattr(char const*, stat*, fuse_file_info*)@plt>, lock = 0x0, utimens = 0x407db0 <encfs_utimens(char const*, timespec const*)@plt>, bmap = 0x0, flag_nullpath_ok = 0, flag_nopath = 0,
flag_utime_omit_ok = 0, flag_reserved = 0, ioctl = 0x0, poll = 0x0, write_buf = 0x0, read_buf = 0x0, flock = 0x0, fallocate = 0x0}
ctx = 0x6c4610
rootInfo = std::shared_ptr (expired, weak 0) 0x6c9090
returnCode = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment