LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 06-23-2009, 06:02 PM   #1
erklaerbaer
Member
 
Registered: Mar 2006
Distribution: Slackware
Posts: 381
Thanked: 0
electric sheep SIGTERM


[Log in to get rid of this advertisement]
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?
erklaerbaer is offline  
Tag This Post ,
Reply With Quote
Old 06-23-2009, 06:43 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 2,867
Thanked: 228
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
Alien Bob is offline     Reply With Quote
Old 06-24-2009, 06:54 AM   #3
erklaerbaer
Member
 
Registered: Mar 2006
Distribution: Slackware
Posts: 381
Thanked: 0

Original Poster
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.
erklaerbaer is offline     Reply With Quote
Old 06-24-2009, 07:16 AM   #4
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 13.0, Pardus 2009
Posts: 661
Thanked: 33
Instead of printf'ing, fprintf'ing to stderr might be better (it should get immediately flushed that way).
Ilgar is offline     Reply With Quote
Old 06-24-2009, 07:30 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 2,867
Thanked: 228
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
Alien Bob is offline     Reply With Quote
Old 06-24-2009, 09:25 AM   #6
erklaerbaer
Member
 
Registered: Mar 2006
Distribution: Slackware
Posts: 381
Thanked: 0

Original Poster
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?
erklaerbaer is offline     Reply With Quote
Old 06-24-2009, 11:13 AM   #7
brianL
Senior Member
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 13.0 // Desktop: ; Slackware64 13.0; Debian "lenny"
Posts: 2,935
Blog Entries: 20
Thanked: 128
Thanks, Ilgar. Slackware 12.2 has lesstif-0.95.0.
brianL is offline     Reply With Quote
Old 06-24-2009, 11:22 AM   #8
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 13.0, Pardus 2009
Posts: 661
Thanked: 33
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 11:23 AM..
Ilgar is offline     Reply With Quote
Old 06-25-2009, 09:20 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 16,722
Blog Entries: 30
Thanked: 285
// Moderator note: moved posts #6, #8.* to http://www.linuxquestions.org/questi...roblem-735546/ at brianL's request.
unSpawn is offline     Reply With Quote
Thanked by:
Old 06-25-2009, 04:54 PM   #10
tekhead2
Member
 
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 195
Thanked: 9
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.
tekhead2 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 10:24 PM
electric sheep Dimitime Slackware 6 11-26-2008 07:19 PM
LXer: Electric Sheep CEO Sibley Verbeck on the Virtual Shopping Mall LXer Syndicated Linux News 0 09-17-2008 04:30 PM
Anyone worked with Sheep Shaver? gulo Linux - General 0 04-07-2005 11:33 AM
Problems installing Electric Sheep downinthemine Linux - Software 1 06-18-2004 07:28 PM


All times are GMT -5. The time now is 11:17 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration