-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault #1
Comments
I'll need a bit more information than that.
Btw. I can make mktorrent segfault if I first run make, and then make USE_OPENSSL=1 USE_PTHREADS=1, so always do 'make clean' before you build with new options. |
running os debian lenny 5.0.1 x86 happens both with singular large files and e.g. large directories containing rared files....... had a friend try it out on ubuntu 9.xx server... same thing happened. hes running x86_64 |
Ok, but you still need to describe how you compile mktorrent and if it always happens or only sometimes. From your original message it seems the segfault occurs while hashing without pthread support, so could you try to compile with USE_PTHREADS=1 just to see if the bug is in hash.c and not hash_pthreads.c |
I was having the same issue creating a torrent from a 15GB directory. I recompiled without using USE_PTHREADS=1 and it is working for me now. |
Which version of mktorrent are you using, and did you add USE_LARGE_FILES=1 on both compiles? Ohh, and can you reproduce the error? |
I was using 1.0, and had USE_LARGE_FILES=1 on both compiles. I just copied the make command from your site. I don't really have any other large files to test it with, but if I see anything I'll try it out. |
I am getting the same error on Debian Lenny 64bit with PT_THREADS enabled, works without pt_threads. I would like to use pt_threads cos I have SAS drives and many cores. |
I have managed to get pt_threads to work, dont know how. It is MUCH faster, I use 4. |
This is still an issue. Im on OSX 10.6, and have this issue with your recommended make string... Id also like to use pthreads. |
And yes if i remove the pthreads option it works... |
Same problem with 64bits Ubuntu 9.10 (kernel 2.6.31-20). |
openSUSE 11.2 x86_64. SEG FAULT when compiled with USE_PTHREADS=1 USER_OPENSSL=1. WORKED AS EXPECTED when compiled with only USE_OPENSSL. ----felipe1982 |
Same here.
|
OpenSUSE 11.3 Linux desk 2.6.34.7-0.7-desktop #1 SMP PREEMPT 2010-12-13 11:13:53 +0100 x86_64 x86_64 x86_64 GNU/Linux Location : /usr/local/src/mktorrent-1.0 make USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1 USE_LARGE_FILES=1 from Location --- /usr/local/src/mktorrent-1.0 ./mktorrent -v -a http://tracker/announce.php -o test.torrent -p /home/nfs_download/Test Metafile: /usr/local/src/mktorrent-1.0/test.torrent 2035376440 bytes in all. Hashed 7765 of 7765 pieces. Now, make install /usr/local/bin/mktorrent -v -a http://tracker/announce.php -o test.torrent -p /home/nfs_download/Test Metafile: /usr/local/src/mktorrent-1.0/test.torrent 2035376440 bytes in all. Segmentation fault Only diff. is it does not work after i use make install it still work from the source directory without install. Is anyone else has same issue or can be reproduced ? |
The reprocedure that k2patel gave gives this in gdb:
The line at hash.c:91 is
|
The issue seems to be with accessing members of the f struct. |
Error found: If USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1 USE_LARGE_FILES=1 is used as flags for make, should these flags also be used for make install. So correct compile is:
This sould solved this issue. If it does not solve the issue, please report: if possible please run the mktorrent with the options you have, and -v and then paste the output. |
This issue is very old, it should probably be closed by now. |
Since there have been no significant updates since 2011, in agreement with @Calinou, I will close this issue. However, if anyone is still affected, don't hesitate to reopen it. |
with
mktorrent -l 22 -a announce.url -o taken.torrent /folder/destination/
The text was updated successfully, but these errors were encountered: