SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
(gdb) run
Starting program: /usr/bin/electricsheep
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Program received signal SIGTERM, Terminated.
0x00007f7f543fd850 in __nanosleep_nocancel () from /lib64/libc.so.6
(gdb) bt
#0 0x00007f58e39d7850 in __nanosleep_nocancel () from /lib64/libc.so.6
#1 0x00007f58e39d76a7 in sleep () from /lib64/libc.so.6
#2 0x000000000041982f in ?? ()
#3 0x000000000041b3d7 in ?? ()
#4 0x00007f58e394e526 in __libc_start_main () from /lib64/libc.so.6
#5 0x0000000000414bb9 in ?? ()
#6 0x00007fffec579388 in ?? ()
#7 0x000000000000001c in ?? ()
#8 0x0000000000000001 in ?? ()
#9 0x00007fffec57b132 in ?? ()
#10 0x0000000000000000 in ?? ()
electric sheep immediately gets terminated for me. anyone seen the same?
Yes. Basically the moment it went into Slackware. There are others in the electricsheep forum who report the same, and the developers only reply "works for me".
If anyone finds out what is happening here, I'd like to know!
Program received signal SIGTERM, Terminated.
0x00007fd924579850 in __nanosleep_nocancel () from /lib64/libc.so.6
(gdb) bt
#0 0x00007fd924579850 in __nanosleep_nocancel () from /lib64/libc.so.6
#1 0x00007fd9245796a7 in sleep () from /lib64/libc.so.6
#2 0x000000000041a8d3 in make_render_process () at electricsheep.c:1883
#3 0x000000000041c8d9 in main (argc=1, argv=0x7fff2d12ceb8)
at electricsheep.c:2435
and modified the function
Code:
// line 1880 ; modified
void make_render_process() {
#include <stdio.h>
printf (" entering make_render_rpocess") ;
pid_t p;
printf ("init_delay is %d ; pid_t p is %d" , init_delay, p) ;
#include <assert.h>
assert(init_delay > 0);
sleep(init_delay);
while (nthreads-- > 1) { ...
,but the program is terminatede before that.
i also modified main() to printf "main.." in the first line, but apparently it doesn't get that far ( yes, i'm confused, too)
I'm downloading a better debugger now and will see, if i can find out more.
I created the DDD package (data display debugger, a graphical frontedn to the gdb debugger) sometime ago in http://www.slackware.com/~alien/slackbuilds/ddd/ precisely for this reason: to try and debug my electricsheep issue, but I was unsuccessful. At the time I was trying to recover from lack of sleep right after the release of slackware64-current, so I did not pursue it further.
i guess my previous modifications were ignored, because i still had the original electricsheep package installed. Let's ignore this for now.
i replaced
Code:
sleep(init_delay);
with
Code:
usleep(init_delay*1000);
and got a little further.
Code:
(gdb) run
Starting program: /tmp/esheep/bin/electricsheep
b
Program received signal SIGTERM, Terminated.
0x00007f7b09ad2480 in __read_nocancel () from /lib64/libc.so.6
(gdb) bt
#0 0x00007f7b09ad2480 in __read_nocancel () from /lib64/libc.so.6
#1 0x00007f7b09a6e5b0 in _IO_new_file_underflow () from /lib64/libc.so.6
#2 0x00007f7b09a71565 in _IO_default_xsgetn_internal () from /lib64/libc.so.6
#3 0x00007f7b09a6388f in fread () from /lib64/libc.so.6
#4 0x0000000000407a4a in get_control_points (buf=0x7fff1260af20 "",
buf_size=300000) at electricsheep.c:1413
#5 0x0000000000407f65 in do_render () at electricsheep.c:1537
#6 0x0000000000409010 in make_render_process () at electricsheep.c:1901
#7 0x000000000040ac4f in main (argc=1, argv=0x7fff12654458)
at electricsheep.c:2436
maybe it's a thread safety issue?
can we rule out the libc?
I maybe off the mark, but doesn't electric sheep try to run some sort of bit torrent client as a daemon process? I've not been able to get it to install either, but I do have it working in an Ubuntu install and I've noticed that it's constantly downloading sheeps via torrents.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.