This forum has been archived. All content is frozen. Please use KDE Discuss instead.

previously downloaded chunks marked as corrupt

Tags: None
(comma "," separated)
George
Moderator
Posts
5421
Karma
1

Sun Mar 18, 2007 12:05 pm
OK, could you try the latest from SVN and see if it still happens ?
cashion
Registered Member
Posts
10
Karma
0

Sun Mar 18, 2007 3:27 pm
George wrote:Not really what I'm looking for, however there should be a file named config.h, it will get generated by configure.

This contains the information I'm looking for.


Sorry about that:

/* config.h. Generated by configure. */
/* config.h.in. Generated from configure.in by autoheader. */

/* Define to 1 if you have the <Carbon/Carbon.h> header file. */
/* #undef HAVE_CARBON_CARBON_H */

/* Define if you have the CoreAudio API */
/* #undef HAVE_COREAUDIO */

/* Define to 1 if you have the <crt_externs.h> header file. */
/* #undef HAVE_CRT_EXTERNS_H */

/* Defines if your system has the crypt function */
#define HAVE_CRYPT 1

/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1

/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
#define HAVE_FSEEKO 1

/* Define to 1 if you have the `fseeko64' function. */
#define HAVE_FSEEKO64 1

/* Define to 1 if you have the `fstat64' function. */
#define HAVE_FSTAT64 1

/* Define to 1 if you have the `ftello64' function. */
#define HAVE_FTELLO64 1

/* Define to 1 if you have the `ftruncate64' function. */
#define HAVE_FTRUNCATE64 1

/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1

/* Define if you have libjpeg */
#define HAVE_LIBJPEG 1

/* Define if you have libpng */
#define HAVE_LIBPNG 1

/* Define if you have a working libpthread (will enable threaded code) */
#define HAVE_LIBPTHREAD 1

/* Define if you have libz */
#define HAVE_LIBZ 1

/* Define to 1 if you have the `lseek64' function. */
#define HAVE_LSEEK64 1

/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1

/* Define to 1 if you have the `mmap64' function. */
#define HAVE_MMAP64 1

/* Define to 1 if you have the `munmap64' function. */
#define HAVE_MUNMAP64 0

/* Define if your system needs _NSGetEnviron to set up the environment */
/* #undef HAVE_NSGETENVIRON */

/* Define if you have res_init */
#define HAVE_RES_INIT 1

/* Define if you have the res_init prototype */
#define HAVE_RES_INIT_PROTO 1

/* Define if you have a STL implementation by SGI */
#define HAVE_SGI_STL 1

/* Define to 1 if you have the `snprintf' function. */
#define HAVE_SNPRINTF 1

/* Define to 1 if you have the `stat64' function. */
#define HAVE_STAT64 1

/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1

/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1

/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1

/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1

/* Define if you have strlcat */
/* #undef HAVE_STRLCAT */

/* Define if you have the strlcat prototype */
/* #undef HAVE_STRLCAT_PROTO */

/* Define if you have strlcpy */
/* #undef HAVE_STRLCPY */

/* Define if you have the strlcpy prototype */
/* #undef HAVE_STRLCPY_PROTO */

/* Define to 1 if you have the <sys/bitypes.h> header file. */
#define HAVE_SYS_BITYPES_H 1

/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1

/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1

/* Define to 1 if you have the `vsnprintf' function. */
#define HAVE_VSNPRINTF 1

/* Suffix for lib directories */
#define KDELIBSUFF ""

/* Name of package */
#define PACKAGE "ktorrent"

/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""

/* Define to the full name of this package. */
#define PACKAGE_NAME ""

/* Define to the full name and version of this package. */
#define PACKAGE_STRING ""

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME ""

/* Define to the version of this package. */
#define PACKAGE_VERSION ""

/* The size of a `char *', as computed by sizeof. */
#define SIZEOF_CHAR_P 4

/* The size of a `int', as computed by sizeof. */
#define SIZEOF_INT 4

/* The size of a `long', as computed by sizeof. */
#define SIZEOF_LONG 4

/* The size of a `short', as computed by sizeof. */
#define SIZEOF_SHORT 2

/* The size of a `size_t', as computed by sizeof. */
#define SIZEOF_SIZE_T 4

/* The size of a `unsigned long', as computed by sizeof. */
#define SIZEOF_UNSIGNED_LONG 4

/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1

/* Version number of package */
#define VERSION "2.2dev"

/* Defined if compiling without arts */
/* #undef WITHOUT_ARTS */

/*
* jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
* headers and I'm too lazy to write a configure test as long as only
* unixware is related
*/
#ifdef _UNIXWARE
#define HAVE_BOOLEAN
#endif



/*
* AIX defines FD_SET in terms of bzero, but fails to include <strings.h>
* that defines bzero.
*/

#if defined(_AIX)
#include <strings.h>
#endif



#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
# include <sys/time.h>
# include <crt_externs.h>
# define environ (*_NSGetEnviron())
#endif


/* Number of bits in a file offset, on hosts where this is settable. */
#define _FILE_OFFSET_BITS 64


#if !defined(HAVE_RES_INIT_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
int res_init(void);
#ifdef __cplusplus
}
#endif
#endif



#if !defined(HAVE_STRLCAT_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
unsigned long strlcat(char*, const char*, unsigned long);
#ifdef __cplusplus
}
#endif
#endif



#if !defined(HAVE_STRLCPY_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
unsigned long strlcpy(char*, const char*, unsigned long);
#ifdef __cplusplus
}
#endif
#endif


/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
/* #undef _LARGEFILE_SOURCE */

/* Define for large files, on AIX-style hosts. */
/* #undef _LARGE_FILES */


/*
* On HP-UX, the declaration of vsnprintf() is needed every time !
*/

#if !defined(HAVE_VSNPRINTF) || defined(hpux)
#if __STDC__
#include <stdarg.h>
#include <stdlib.h>
#else
#include <varargs.h>
#endif
#ifdef __cplusplus
extern "C"
#endif
int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
#ifdef __cplusplus
extern "C"
#endif
int snprintf(char *str, size_t n, char const *fmt, ...);
#endif



#if defined(__SVR4) && !defined(__svr4__)
#define __svr4__ 1
#endif


/* type to use in place of socklen_t if not defined */
#define kde_socklen_t socklen_t

/* type to use in place of socklen_t if not defined (deprecated, use
kde_socklen_t) */
#define ksize_t socklen_t
cashion
Registered Member
Posts
10
Karma
0

Tue Mar 20, 2007 12:13 pm
George wrote:OK, could you try the latest from SVN and see if it still happens ?


I'm still seeing the same issue. I had a couple test torrents over 4GB that were seeding. If I run integrity check, corrupt data is found at the edges of the file. I'll have to wait for the file to redownload to see if it was really corrupt or not.
BluPix
Registered Member
Posts
1
Karma
0

Sun Mar 25, 2007 7:49 am
I have the same problem on Gentoo, ktorrent-2.1.2.
Code: Select all
Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 AMD Athlon(tm)
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 18 Mar 2007 06:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r4
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funswitch-loops"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funswitch-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ynet.sk/pub http://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo http://212.219.247.17/sites/www.ibiblio.org/gentoo/ ftp://mirrors.tds.net/gentoo http://ftp.rhnet.is/pub/gentoo/"
LANG="cs_CZ.utf8"
LC_ALL="cs_CZ.utf8"
LINGUAS="cs"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects /usr/portage/local/layman/sabayon /usr/portage/local/layman/sunrise /usr/portage/local/layman/berkano /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="16bit 3dnow 3dnowext 7zip X a52 aac acpi alsa apache2 artswrappersuid ati bash-completion beagle berkdb bitmap-fonts bzip2 bzlib c++ cairo calendar cdparanoia cdrom cli cracklib crypt cups curlwrappers dbus djbfft dri dv dvb dvd dvdr dvdread examples exif extensions extras ffmpeg flac flash fortran ftp gcj gd gdbm gif gpm hal iconv ieee1394 imap iproute2 isdnlog jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kqemu lcms libedit libg++ lm_sensors logitech-mouse logrotate mad matroska md5sum midi mikmod mime mmx mmx2 mmxext mp3 mplayer musicbrainz ncurses network newspr nls nptl nptlonly nsplugin nvidia ogg opengl pam pcre pdf perl pertty php pic png ppds pppd python qt3 qt3support qt4 readline real reflection rtc sensord session sharedmem simplexml slang sockets speex spell spl sse ssl stream svg tcpd theora threads tidy tiff transparency truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs x264 x86 xface xine xinerama xorg xprint xsl xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" USERLAND="GNU" VIDEO_CARDS="radeon vesa nv nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Code: Select all
net-p2p/ktorrent-2.1.2  USE="kdeenablefinal xinerama -arts -debug" LINGUAS="cs -bg -br -ca -cy -da -de -el -en_GB -es -et -eu -fr -ga -gl -hu -it -ja -km -lt -mk -ms -nb -nl -pa -pl -pt -pt_BR -ru -rw -sk -sr -sr@Latn -sv -tr -uk -zh_CN -zh_TW"
chrschn
Registered Member
Posts
6
Karma
0

Wed Apr 18, 2007 7:42 pm
I can confirm the problem here with today's SVN revision. I'm seeding a torrent > 6GB containing several files, of which one is approximately 6GB. I have created this torrent locally with KTorrent, which just worked fine. But after a while (I guess as soon as some peer had requested chunks > 4GB) KTorrent complained about data corruptions and re-hashed the torrent. Since then, the torrent is stalled, claiming only 4.01GB have been downloaded.

My system is a x86_64 box, Linux 2.6.20.6, reiserfs 3.6, glibc 2.5, KDE 3.5.6, KTorrent 2.2dev r655460.

--chrschn
George
Moderator
Posts
5421
Karma
1

Thu Apr 19, 2007 7:01 pm
I will see if I can reproduce this.
George
Moderator
Posts
5421
Karma
1

Sat Apr 21, 2007 10:36 am
OK, it seems there was a bug with creating multi file torrents with files larger then 4 GB in the torrent.

This is now solved.
chrschn
Registered Member
Posts
6
Karma
0

Tue Apr 24, 2007 11:20 pm
I can confirm that this bug is fixed. Newly created torrents with files > 4GB work now for me. Thank you!

--chrschn


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]