Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#3 Playback error: Argument "\x{70}\x{6f}..." isn't numeric

closed-out-of-date
nobody
None
5
2010-07-15
2008-07-02
Anonymous
No

Context : collectl: 2.6.4 on RHEL WS 3.0

When using playback feature, i encounter the following problem reported on STDERR :

> Argument "\x{70}\x{6f}..." isn't numeric in
> multiplication (*) at /opt/hp/collectl/sbin/formatit.ph
> line 2859, <PLAY> line 76.
> Argument "\x{74}\x{61}..." isn't numeric in
> multiplication (*) at /opt/hp/collectl/sbin/formatit.ph
> line 2860, <PLAY> line 76.

Analysis shows that the incriminated line in play is an slabinfo dump section :
> async poll table 0 0 140 0 0 1

=> Problem is spaces in the slab name : it induces an error in the affectation in line formatit.ph:2848 ("poll" and "table" are indeed affected instead of 0 and 0).
> ($slabObjActTot[$i], $slabObjAllTot[$i], $slabObjSize[$i], $slabSlabActTot[$i], $slabSlabAllTot[$i], $slabPagesPerSlab[$i])=(split(/\s+/, $data))[1..6];

and then the fault occurs in the calculation at line formatit.ph:2859
> $slabObjActTotB[$i]=$slabObjActTot[$i]*$slabObjSize[$i];
> $slabObjAllTotB[$i]=$slabObjAllTot[$i]*$slabObjSize[$i];

My quick and dirty fix was to insert at formatit.ph:2823
> $data =~ s/^async poll table/async_poll_table/;

Discussion

  • Mark Seger
    Mark Seger
    2010-07-15

    • status: open --> closed-out-of-date
     
  • Mark Seger
    Mark Seger
    2010-07-15

    This is sooo ancient... Haven't seen/heard of this problem in years so I'm going to just close it.