Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#23246 - [pkgtools] command_not_found_handle sometimes causes fork bombs

Attached to Project: Community Packages
Opened by Stanislav GE (giner) - Friday, 11 March 2011, 21:34 GMT
Last edited by Alexander F. Rødseth (xyproto) - Monday, 26 March 2012, 08:07 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Gavin Bisesi (Daenyth)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Some configure scripts go as fork bombs when 'CMD_SEARCH_ENABLED=1'

Additional info:
pkgtools 22-1

Steps to reproduce:
cd /tmp
slurpy -d gimpshop && cd gimpshop
makepkg -rcsi
#wait some time and your computer can be only shutted down by force
#I've used 'ulimit -u 300' and 'ps aux' for investigation
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Monday, 26 March 2012, 08:07 GMT
Reason for closing:  Fixed
Additional comments about closing:  Please reopen if this is still a problem.
Comment by Gavin Bisesi (Daenyth) - Wednesday, 16 March 2011, 17:36 GMT
Wouldn't this mean that the scripts are sourcing /etc/profile? That seems more like a bug in them...

Can you try adding a block above the "export" line in pkgfile-hook.bash?

if [[ $- = *i* ]] ; then
export -f command_not_found_handle
fi
Comment by Stanislav GE (giner) - Wednesday, 16 March 2011, 20:05 GMT
Hm.. Yes, it works, but it works in the same way as without 'export -f' at all, like before this fix https://bugs.archlinux.org/task/22844
Comment by Gavin Bisesi (Daenyth) - Wednesday, 16 March 2011, 20:30 GMT
Hmm. I don't see much way around this. I'll try to think of a way too handle it. Ubuntu probably has something since they have a similar feature.

What part specifically causes the fork bomb? The script, or the hook file?
Comment by Stanislav GE (giner) - Wednesday, 16 March 2011, 20:33 GMT
'ps aux' shows a lot of ./configure processes
That problem isn't only with this gimpshop, I've got this problem several times before with other ones but didn't catch it in that time.
Comment by Gavin Bisesi (Daenyth) - Wednesday, 16 March 2011, 20:39 GMT
Bizzare. Let me know if you have any more specific information. There's nothing in the hook that would cause it to fork off like that as far as I know, but I'll review
Comment by Stanislav GE (giner) - Wednesday, 16 March 2011, 20:48 GMT
I don't have any other information. You can just try to run it yourself but don't forget ulimit -u.
Comment by solsTiCe (zebul666) - Sunday, 22 January 2012, 10:03 GMT
I confirm this bug
look at bug  FS#21771  and its comments
Comment by Alexander F. Rødseth (xyproto) - Thursday, 22 March 2012, 21:27 GMT
 FS#22844  and  FS#21771  are fixed.
Unable to reproduce, can't find neither slurpy nor gimpshop.
Is this still a problem?
Comment by Stanislav GE (giner) - Thursday, 22 March 2012, 21:32 GMT
Can't test it currently, sorry.

Loading...