i'm trying to debug some nbd segfaults nbd-server[7256]: segfault at 0 ip 0000000000402879 sp 00007fff11ce8060 error 4 in nbd-server[400000+7000]
and so i thought i'd try compiling with debugging i'm trying to compile nbd 2.9.15 with --enable-debug on ubuntu lucid 64 bit ./configure --enable-debug checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether Large File Support should be enabled... yes checking whether syslog logging is requested... no checking whether a debugging version is requested... yes 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 for style of include used by make... GNU checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for grep that handles long lines and -e... /bin/grep checking for egrep... /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 whether byte ordering is bigendian... no checking for inline... inline checking for an ANSI C-conforming const... yes checking size of unsigned short int... 2 checking size of unsigned int... 4 checking size of unsigned long int... 8 checking size of unsigned long long int... 8 checking for llseek... yes checking for alarm... yes checking for gethostbyname... yes checking for inet_ntoa... yes checking for memset... yes checking for socket... yes checking for strerror... yes checking for strstr... yes checking for pid_t... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking whether client should be built... yes checking where to find a working nbd.h... <linux/nbd.h> checking for library containing bind... none required checking for library containing inet_ntoa... none required checking for library containing daemon... none required checking for sys/mount.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking linux/types.h usability... yes checking linux/types.h presence... yes checking for linux/types.h... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.16... yes checking for GLIB - version >= 2.6.0... yes (version 2.24.1) checking for sys/wait.h that is POSIX.1 compatible... yes checking for off_t... yes checking for pid_t... (cached) yes configure: creating ./config.status config.status: creating Makefile config.status: creating Doxyfile config.status: creating nbd-server.1 config.status: creating nbd-server.5 config.status: creating nbd-client.8 config.status: creating config.h config.status: executing depfiles commands make make all-am make[1]: Entering directory `/opt/nbd-2.9.15' gcc -DHAVE_CONFIG_H -I. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT nbd_server-nbd-server.o -MD -MP -MF .deps/nbd_server-nbd-server.Tpo -c -o nbd_server-nbd-server.o `test -f 'nbd-server.c' || echo './'`nbd-server.c nbd-server.c: In function ‘rawexpwrite’: nbd-server.c:1020: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘off_t’ nbd-server.c:1020: warning: format ‘%u’ expects type ‘unsigned int’, but argument 4 has type ‘size_t’ nbd-server.c: In function ‘rawexpread’: nbd-server.c:1066: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘off_t’ nbd-server.c:1066: warning: format ‘%u’ expects type ‘unsigned int’, but argument 4 has type ‘size_t’ nbd-server.c: In function ‘expread’: nbd-server.c:1103: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘size_t’ nbd-server.c: In function ‘expwrite’: nbd-server.c:1147: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘size_t’ nbd-server.c: In function ‘mainloop’: nbd-server.c:1266: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘size_t’ nbd-server.c: In function ‘glib_message_syslog_redirect’: nbd-server.c:1865: warning: format not a string literal and no format arguments mv -f .deps/nbd_server-nbd-server.Tpo .deps/nbd_server-nbd-server.Po gcc -g -O2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -o nbd-server nbd_server-nbd-server.o -lglib-2.0 gcc -DHAVE_CONFIG_H -I. -g -O2 -MT nbd-client.o -MD -MP -MF .deps/nbd-client.Tpo -c -o nbd-client.o nbd-client.c nbd-client.c:397: error: expected identifier or ‘(’ before ‘while’ nbd-client.c:398: error: expected declaration specifiers or ‘...’ before string constant nbd-client.c:398: warning: data definition has no type or storage class nbd-client.c:398: error: conflicting types for ‘printf’ nbd-client.c:398: note: a parameter list with an ellipsis can’t match an empty parameter name list declaration nbd-client.c:399: error: expected ‘)’ before ‘(’ token nbd-client.c:400: error: expected declaration specifiers or ‘...’ before string constant nbd-client.c:400: warning: data definition has no type or storage class nbd-client.c:400: error: conflicting types for ‘printf’ nbd-client.c:400: note: a parameter list with an ellipsis can’t match an empty parameter name list declaration nbd-client.c:401: error: expected ‘)’ before ‘(’ token nbd-client.c:402: error: expected declaration specifiers or ‘...’ before string constant nbd-client.c:402: warning: data definition has no type or storage class nbd-client.c:402: error: conflicting types for ‘printf’ nbd-client.c:402: note: a parameter list with an ellipsis can’t match an empty parameter name list declaration nbd-client.c:403: error: expected identifier or ‘(’ before ‘return’ nbd-client.c:404: error: expected identifier or ‘(’ before ‘}’ token make[1]: *** [nbd-client.o] Error 1 make[1]: Leaving directory `/opt/nbd-2.9.15' make: *** [all] Error 2 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nbd-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nbd-general
