LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-23-2009, 05:02 PM   #1
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
electric sheep SIGTERM


Code:
(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?
 
Old 06-23-2009, 05:43 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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!

Eric
 
Old 06-24-2009, 05:54 AM   #3
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Original Poster
Rep: Reputation: 30
Question

i compiled with debug symbols.

Code:
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.
 
Old 06-24-2009, 06:16 AM   #4
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
Instead of printf'ing, fprintf'ing to stderr might be better (it should get immediately flushed that way).
 
Old 06-24-2009, 06:30 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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.

Eric
 
Old 06-24-2009, 08:25 AM   #6
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Original Poster
Rep: Reputation: 30
Post

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?
 
Old 06-24-2009, 10:13 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
Thanks, Ilgar. Slackware 12.2 has lesstif-0.95.0.
 
Old 06-24-2009, 10:22 AM   #8
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
Indeed the latest version is 0.95.2 (just checked it), released on May 29 2009:

http://sourceforge.net/project/showf...?group_id=8596

And it includes the relevant fix:

http://sourceforge.net/project/shown...ease_id=685588
Quote:
Fixed VendorSP.h inclusion from cpp code
So maybe it's time for Pat to update lesstif in -current?

Last edited by Ilgar; 06-24-2009 at 10:23 AM.
 
Old 06-25-2009, 08:20 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
// Moderator note: moved posts #6, #8.* to http://www.linuxquestions.org/questi...roblem-735546/ at brianL's request.
 
Old 06-25-2009, 03:54 PM   #10
tekhead2
Member
 
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
electric sheep problems =( ninja master Linux - Software 1 05-30-2009 09:24 PM
electric sheep Dimitime Slackware 6 11-26-2008 06:19 PM
LXer: Electric Sheep CEO Sibley Verbeck on the Virtual Shopping Mall LXer Syndicated Linux News 0 09-17-2008 03:30 PM
Anyone worked with Sheep Shaver? gulo Linux - General 0 04-07-2005 10:33 AM
Problems installing Electric Sheep downinthemine Linux - Software 1 06-18-2004 06:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration