This repository has been archived by the owner on Feb 10, 2021. It is now read-only.
fix Segmentation fault on lastest libhdfs3 #152
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
libhdfs3: git master
hdfs: git master
segment fault on call HDFileSystem.connect
#0 0x00007ffff6e63faf in __strlen_sse42 () from /lib64/libc.so.6
#1 0x00007fffe9c0305e in length (__s=0x3 <Address 0x3 out of bounds>) at /usr/include/c++/4.8.2/bits/char_traits.h:259
#2 assign (__s=0x3 <Address 0x3 out of bounds>, this=0xb41870) at /usr/include/c++/4.8.2/bits/basic_string.h:1131
#3 operator= (__s=0x3 <Address 0x3 out of bounds>, this=0xb41870) at /usr/include/c++/4.8.2/bits/basic_string.h:555
#4 Hdfs::FileSystem::FileSystem (this=0xb41870, conf=..., euser=0x3 <Address 0x3 out of bounds>)
at /home/anruiheng/libhdfs3-downstream/libhdfs3/src/client/FileSystem.cpp:148
#5 0x00007fffe9c1a307 in hdfsBuilderConnect (bld=0xdbd150, effective_user=0x3 <Address 0x3 out of bounds>)
at /home/anruiheng/libhdfs3-downstream/libhdfs3/src/client/Hdfs.cpp:478
#6 0x00007fffeb2dedcc in ffi_call_unix64 () from /lib64/libffi.so.6
#7 0x00007fffeb2de6f5 in ffi_call () from /lib64/libffi.so.6
#8 0x00007fffeb4f1c8b in _ctypes_callproc () from /usr/lib64/python2.7/lib-dynload/_ctypes.so
#9 0x00007fffeb4eba85 in PyCFuncPtr_call () from /usr/lib64/python2.7/lib-dynload/_ctypes.so
#10 0x00007ffff7a5a9a3 in PyObject_Call () from /lib64/libpython2.7.so.1.0
#11 0x00007ffff7aef0f6 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0
#12 0x00007ffff7af5efd in PyEval_EvalCodeEx () from /lib64/libpython2.7.so.1.0
#13 0x00007ffff7af33fc in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0
#14 0x00007ffff7af5efd in PyEval_EvalCodeEx () from /lib64/libpython2.7.so.1.0
#15 0x00007ffff7a7f94d in function_call () from /lib64/libpython2.7.so.1.0
#16 0x00007ffff7a5a9a3 in PyObject_Call () from /lib64/libpython2.7.so.1.0
#17 0x00007ffff7a69995 in instancemethod_call () from /lib64/libpython2.7.so.1.0
#18 0x00007ffff7a5a9a3 in PyObject_Call () from /lib64/libpython2.7.so.1.0
#19 0x00007ffff7ab1947 in slot_tp_init () from /lib64/libpython2.7.so.1.0
#20 0x00007ffff7ab065f in type_call () from /lib64/libpython2.7.so.1.0
#21 0x00007ffff7a5a9a3 in PyObject_Call () from /lib64/libpython2.7.so.1.0
#22 0x00007ffff7aef0f6 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0
#23 0x00007ffff7af5efd in PyEval_EvalCodeEx () from /lib64/libpython2.7.so.1.0
#24 0x00007ffff7af6002 in PyEval_EvalCode () from /lib64/libpython2.7.so.1.0
#25 0x00007ffff7b0f43f in run_mod () from /lib64/libpython2.7.so.1.0
#26 0x00007ffff7b105fe in PyRun_FileExFlags () from /lib64/libpython2.7.so.1.0
#27 0x00007ffff7b11889 in PyRun_SimpleFileExFlags () from /lib64/libpython2.7.so.1.0
#28 0x00007ffff7b22a3f in Py_Main () from /lib64/libpython2.7.so.1.0
#29 0x00007ffff6d48c05 in __libc_start_main () from /lib64/libc.so.6
#30 0x000000000040071e in _start ()