Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 65638
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Science Related Packages <sci@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Patrick Hsieh <pahud@pahud.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 65638 depends on: Show dependency tree
Bug 65638 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-09-27 22:55 0000
when setiathome-3.08-r2 runs on machines with 2 processors, the
/var/lib/setiathome/thread2/setiathome.log will grows with errors to fill up
the space.

# tail setiathome.log
Each instance of SETI@home must run in a separate directory.
/var/lib/setiathome/setiwrapper: line 7: wait: pid 1 is not a child of this
shell
Couldn't get lock file.  This is probably because
another instance of SETI@home is running in this directory.
Each instance of SETI@home must run in a separate directory.
/var/lib/setiathome/setiwrapper: line 7: wait: pid 1 is not a child of this
shell
Couldn't get lock file.  This is probably because
another instance of SETI@home is running in this directory.
Each instance of SETI@home must run in a separate directory.
/var/lib/setiathome/setiwrapper: line 7: wait: pid 1 is not a child of this
shell

Reproducible: Always
Steps to Reproduce:
1. emerge setiathome
2. edit /etc/conf.d/setiathome, set SETIATHOME_THREADS="2"
3. /etc/init.d/setiathome start
Actual Results:  
/var/lib/setiathome/thread2/setiathome.log grows dramatically until all space
is
filled.

Expected Results:  
/var/lib/setiathome/thread2/setiathome.log stops growing up or grows much
slower.

I did a little hack on /etc/init.d/setiathome and
/var/lib/setiathome/setiwrapper to fix this problem. this is my workaround:

# diff /etc/init.d/setiathome.new /etc/init.d/setiathome
52c52
<               ${SETIATHOME_DIR}/setiwrapper thread${thread} ${SETIBINDIR}
${SETIATHOME_OPTIONS} >& setiathome.log &
---
>               ${SETIATHOME_DIR}/setiwrapper ${SETIBINDIR}
${SETIATHOME_OPTIONS} >& setiathome.log &


# diff /var/lib/setiathome/setiwrapper.new /var/lib/setiathome/setiwrapper
2,4c2,3
< cd $(dirname $0)/$1
< dir=${2}
< shift
---
> cd $(dirname $0)
> dir=${1}

------- Comment #1 From Oliver Schwabedissen 2004-09-29 13:50:27 0000 -------
Found the same problem yesterday, fixed it in /var/lib/setiwrapper only:

diff setiwrapper setiwrapper.new
2d1
< cd $(dirname $0)

Since /etc/init.d/setiathome already changes to the thread directories I simply removed the "cd ..." in setiwrapper. This way everything seems to work fine.

------- Comment #2 From Patrick Kursawe 2004-10-01 07:26:52 0000 -------
Thanks for reporting. Fix is in portage.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug