Comments (11)
Those aren't the correct libraries. Are you using the build tools to regenerate configure? What is your configure output?
This wouldn't even do a build:
LEVELDB_LIBS='-L/usr/lib -lleveldb' LEVELDB_CFLAGS='-I/usr/include'
CFLAGS=-g ./configure --prefix=/usr
You would still have to run "make"
Your gdb output is also not very useful without file and line numbers. Whatever binary you're running seems to lack the proper data.
from fusedav.
after git clone I only run
NOCONFIGURE=True ./bootstrap.sh
LEVELDB_LIBS='-L/usr/lib -lleveldb' LEVELDB_CFLAGS='-I/usr/include' \
./configure --prefix=/usr
make
~/src/fusedav ❯ NOCONFIGURE=True ./bootstrap.sh
+ '[' x = xam ']'
+ rm -rf autom4te.cache
+ rm -f config.cache
+ run_versioned aclocal 1.11
+ local P
+ local V
++ echo 1.11
++ sed -e 's,\.,,g'
+ V=111
++ which aclocal111
which: no aclocal111 in (/home/damjan/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl)
+ '[' -e '' ']'
++ which aclocal-1.11
which: no aclocal-1.11 in (/home/damjan/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl)
+ '[' -e '' ']'
+ P=aclocal
+ shift 2
+ aclocal
/usr/share/aclocal/log4c.m4:7: warning: underquoted definition of AM_PATH_LOG4C
/usr/share/aclocal/log4c.m4:7: run info Automake 'Extending aclocal'
/usr/share/aclocal/log4c.m4:7: or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
+ run_versioned autoconf 2.68 -Wall
+ local P
+ local V
++ echo 2.68
++ sed -e 's,\.,,g'
+ V=268
++ which autoconf268
which: no autoconf268 in (/home/damjan/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl)
+ '[' -e '' ']'
++ which autoconf-2.68
which: no autoconf-2.68 in (/home/damjan/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl)
+ '[' -e '' ']'
+ P=autoconf
+ shift 2
+ autoconf -Wall
+ run_versioned autoheader 2.68
+ local P
+ local V
++ echo 2.68
++ sed -e 's,\.,,g'
+ V=268
++ which autoheader268
which: no autoheader268 in (/home/damjan/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl)
+ '[' -e '' ']'
++ which autoheader-2.68
which: no autoheader-2.68 in (/home/damjan/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl)
+ '[' -e '' ']'
+ P=autoheader
+ shift 2
+ autoheader
+ run_versioned automake 1.11 -a -c --foreign
+ local P
+ local V
++ sed -e 's,\.,,g'
++ echo 1.11
+ V=111
++ which automake111
which: no automake111 in (/home/damjan/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl)
+ '[' -e '' ']'
++ which automake-1.11
which: no automake-1.11 in (/home/damjan/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl)
+ '[' -e '' ']'
+ P=automake
+ shift 2
+ automake -a -c --foreign
configure.ac:27: installing './install-sh'
configure.ac:27: installing './missing'
Makefile.am:35: warning: user target 'distcleancheck' defined here ...
/usr/share/automake-1.13/am/distdir.am: ... overrides Automake target 'distcleancheck' defined here
src/Makefile.am:21: warning: compiling 'fusedav.c' with per-target flags requires 'AM_PROG_CC_C_O' in 'configure.ac'
src/Makefile.am: installing './depcomp'
+ test xTrue = x
~/src/fusedav ❯ LEVELDB_LIBS='-L/usr/lib -lleveldb' LEVELDB_CFLAGS='-I/usr/include' \
… ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking whether gcc accepts -std=c99... yes
checking whether gcc accepts -Wall... yes
checking whether gcc accepts -W... yes
checking whether gcc accepts -Wextra... yes
checking whether gcc accepts -pedantic... yes
checking whether gcc accepts -pipe... yes
checking whether gcc accepts -Wformat... yes
checking whether gcc accepts -Wold-style-definition... yes
checking whether gcc accepts -Wdeclaration-after-statement... yes
checking whether gcc accepts -Wfloat-equal... yes
checking whether gcc accepts -Wmissing-declarations... yes
checking whether gcc accepts -Wmissing-prototypes... yes
checking whether gcc accepts -Wstrict-prototypes... yes
checking whether gcc accepts -Wredundant-decls... yes
checking whether gcc accepts -Wmissing-noreturn... yes
checking whether gcc accepts -Wshadow... yes
checking whether gcc accepts -Wendif-labels... yes
checking whether gcc accepts -Wpointer-arith... yes
checking whether gcc accepts -Wbad-function-cast... yes
checking whether gcc accepts -Wcast-qual... yes
checking whether gcc accepts -Wcast-align... yes
checking whether gcc accepts -Wwrite-strings... yes
checking whether gcc accepts -Winline... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for mode_t... yes
checking for off_t... yes
checking for size_t... yes
checking for struct stat.st_blocks... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for ftruncate... yes
checking for memset... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for memchr... yes
checking for strchr... yes
checking for strcspn... yes
checking for pthread_create in -lpthread... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SYSTEMD... yes
checking for YAML... yes
checking for LEVELDB... yes
checking for NEON... yes
checking for FUSE... yes
checking for lynx... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating doc/README.html
config.status: creating config.h
config.status: executing depfiles commands
from fusedav.
Okay, that build works for me. What output do you get from "src/fusedav -V"?
from fusedav.
~/src/fusedav ❯ src/fusedav -V
Segmentation fault (core dumped)
from fusedav.
Here's what I get from running "src/fusedav -V":
fusedav version 2.0.16ccb41
LevelDB version 1.7
FUSE library version: 2.8.7
fusermount version: 2.8.7
using FUSE kernel interface version 7.12
And here's what I see in the journal when I run "src/fusedav -o verbosity=7":
Feb 13 17:00:54 david-onebox-f17c fusedav[8578]: [2.0.16ccb41] [tid=8578] Log verbosity: 7.
Feb 13 17:00:54 david-onebox-f17c [8578]: [2.0.16ccb41] [tid=8578] Parsed options.
Feb 13 17:00:54 david-onebox-f17c [8578]: [2.0.16ccb41] [tid=8578] Parsed command line.
Feb 13 17:00:54 david-onebox-f17c [8578]: [2.0.16ccb41] [tid=8578] Missing the required URI argument.
Feb 13 17:00:54 david-onebox-f17c [8578]: [2.0.16ccb41] [tid=8578] Unmounted.
Feb 13 17:00:54 david-onebox-f17c [8578]: [2.0.16ccb41] [tid=8578] Destroyed FUSE object.
Feb 13 17:00:54 david-onebox-f17c [8578]: [2.0.16ccb41] [tid=8578] Freed arguments.
Feb 13 17:00:54 david-onebox-f17c [8578]: [2.0.16ccb41] [tid=8578] Freed session.
Feb 13 17:00:54 david-onebox-f17c [8578]: [2.0.16ccb41] [tid=8578] Unset libneon thread-safety locks.
Feb 13 17:00:54 david-onebox-f17c [8578]: [2.0.16ccb41] [tid=8578] Shutdown was successful. Exiting.
I get the same output if I change the default verbosity in the source to "7" and just run "src/fusedav"
from fusedav.
Can you do a build that includes the right symbols for gdb to provide helpful output? I would expect "-g" to do that, but something seems broken.
For core dump analysis, this is what we run:
gdb -ex "set pagination 0" -ex "thread apply all bt" -batch /opt/fusedav/src/fusedav COREDUMPPATH
from fusedav.
Oh, it's probably the lack of specifying the binary for gdb to use for symbol lookup. If you replace "/opt/fusedav/src/fusedav" to your binary patch, the backtrace should be considerably more usable.
from fusedav.
I configure like this
LEVELDB_LIBS='-L/usr/lib -lleveldb' LEVELDB_CFLAGS='-I/usr/include' CFLAGS="-g -O0" ./configure --prefix=/usr --sysconfdir=/etc
Still get this
$ gdb ./src/fusedav
...
(gdb) set pagination 0
(gdb) thread apply all bt
(gdb) run -V
Starting program: /home/damjan/src/fusedav/src/fusedav -V
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
*** Error in `/home/damjan/src/fusedav/src/fusedav': free(): invalid pointer: 0xbffff644 ***
======= Backtrace: =========
/usr/lib/libc.so.6(+0x764b2)[0xb7d5b4b2]
/usr/lib/libc.so.6(+0x77200)[0xb7d5c200]
/home/damjan/src/fusedav/src/fusedav[0x804f012]
/usr/lib/libc.so.6(__libc_start_main+0xf5)[0xb7cfe825]
/home/damjan/src/fusedav/src/fusedav[0x804ac01]
======= Memory map: ========
...
from fusedav.
I'll have our resident ArchLinux user at Pantheon take a look today. Just knowing the problem happens in the fusedav binary isn't precise enough to troubleshoot.
Thanks for the help so far.
from fusedav.
The error appears to be Neon's non-thread-safe build in Arch Linux. We don't have any good advice yet on having it work properly on Arch.
from fusedav.
We've accepted a patch to fix the segfault relating to this issue. I'll work on up-streaming a thread-safe neon build for Arch -- in the meantime you will have to build neon/install yourself.
pacman -S --noconfirm leveldb
git clone https://github.com/pantheon-systems/fusedav.git
cd fusedav; curl -0 http://www.webdav.org/neon/neon-0.29.6.tar.gz | tar -zx
cd neon-0.29.6; ./configure --with-ssl --enable-threadsafe-ssl --enable-shared --prefix=/usr
make
sudo make install
cd ..; LEVELDB_LIBS='-L/usr/lib -lleveldb' LEVELDB_CFLAGS='-I/usr/include' ./bootstrap.sh
make
./src/fusedav -V
from fusedav.
Related Issues (8)
- can't find libleveldb when compiling on debian HOT 6
- open with O_CREAT in second argument needs 3 arguments HOT 3
- fusedav silently quits HOT 1
- Just getting 255s HOT 4
- getting error with some configure file lines HOT 1
- fusedav segfaults if group name specified in run_as_gid does not exist
- No mount, no console logs, exits with status code 0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fusedav.