Bug #1731

Please have showjobs check the log file size and if huge display the first (or last) n lines and give the log path, rather than error out

Added by Mary Laser about 1 year ago. Updated 8 months ago.

Status:New Start date:04/04/2012
Priority:Normal Due date:
Assignee:Bob Gobeille % Done:

0%

Category:Showjobs
Target version:-
Rank:99 Tester:

Description

<maryl> the RHEL6.1 iso completed, but showjobs cannot display the ununpack job (#461), due to a memory allocation error. I suspect it's because the log file is huge
 maryl looks at log file size ....
<bobg> wow
<maryl> rw-rwS-- 1 fossy fossy 3.4G Apr 3 20:28 /srv/fossology/repository/snape/logs/00/04/61/000461
<bobg> could you file an issue on that please
<maryl> bobg: I don't think it's an issue. we ran ununpack with -v
<bobg> but the code could check the file size and if huge display the first (or last) n lines and give the log path, rather than error out
<maryl> bobg: oh, I see what you mean. k
<bobg> for 2.0.1

History

Updated by Bob Gobeille about 1 year ago

Here is the error message:

Fatal error: Allowed memory size of 736100352 bytes exhausted (tried to allocate 3549425496 bytes) in /usr/local/share/fossology/www/ui/showjobs.php on line 167 Call Stack: 0.0002 664728 1. {main}() /usr/local/share/fossology/www/ui/index.php:0 0.1107 12673728 2. showjobs->Output() /usr/local/share/fossology/www/ui/index.php:51 0.1108 12674504 3. showjobs->ShowJobDB() /usr/local/share/fossology/www/ui/showjobs.php:664 0.1133 12692672 4. file_get_contents() /usr/local/share/fossology/www/ui/showjobs.php:167

Updated by Mary Laser 10 months ago

  • Target version deleted (2.0.1)

Updated by Bob Gobeille 8 months ago

  • Rank set to 99

Change unranked issues to rank 99 so they show up in a ranking report at the bottom. Otherwise, they show up on top.

Also available in: Atom PDF