failing test on master

Matzi Kratzi matzikratzi at gmail.com
Tue Aug 9 05:16:58 UTC 2016


>From what I understand, I have the same version:

$ awk -W version
mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan

compiled limits:
max NF             32767
sprintf buffer      2040
matsj at heimdal:~/src/rr$


Mats

On Tue, Aug 9, 2016 at 5:50 AM Keno Fischer <kfischer at college.harvard.edu>
wrote:

> Just a guess, try `awk '{print substr($3,1,3)}'` maybe? On my machine they
> are the same, but I wouldn't be surprised if a different awk implementation
> did something different. This is what I see:
>
> $ echo [rr 29313 473]thread 2 launched with data 0x1bc7040 | awk '{print
> substr($3,0,3)}'
> 473
> $ echo [rr 29313 473]thread 2 launched with data 0x1bc7040 | awk '{print
> substr($3,1,3)}'
> 473
>
> On Mon, Aug 8, 2016 at 11:39 PM, Robert O'Callahan <robert at ocallahan.org>
> wrote:
>
>> OK I think I see the problem, though I don't understand it.
>>
>> fork_exec_info_thr.run has
>> TARGET_EVENT=$(grep 'thread 2 launched ' record.out | awk '{print
>> substr($3,0,3)}')
>> echo Targeting recorded pid $TARGET_PID at event $TARGET_EVENT ...
>>
>> Your test output says
>> Targeting recorded pid 29313 at event 47 ...
>>
>> But record.out contains
>> [rr 29313 473]thread 2 launched with data 0x1bc7040
>>
>> So it looks like we're only using the first two characters of the third
>> token to get the event number, and getting 47 when we should get 473.
>>
>> I don't know awk at all, but that expression sure looks like it should be
>> getting the first three characters of the token :-(.
>>
>> Maybe you can re-run that grep/awk expression from the command line and
>> determine why it's computing 47 instead of 473?
>>
>> Rob
>> --
>> lbir ye,ea yer.tnietoehr  rdn rdsme,anea lurpr  edna e hnysnenh hhe
>> uresyf toD
>> selthor  stor  edna  siewaoeodm  or v sstvr  esBa  kbvted,t
>> rdsme,aoreseoouoto
>> o l euetiuruewFa  kbn e hnystoivateweh uresyf tulsa rehr  rdm  or rnea
>> lurpr
>> .a war hsrer holsa rodvted,t  nenh hneireseoouot.tniesiewaoeivatewt
>> sstvr  esn
>>
>> _______________________________________________
>> rr-dev mailing list
>> rr-dev at mozilla.org
>> https://mail.mozilla.org/listinfo/rr-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rr-dev/attachments/20160809/6c5ee893/attachment.html>


More information about the rr-dev mailing list