Skip to content

utf_encodings.phpt fails on Windows 32-bit #11992

Closed

Description

@iluuu1994

Description

https://github.com/php/php-src/actions/runs/5885623549/job/15962365817

========DIFF========
     == UTF-8 ==
002+ mb_check_encoding passed on bad UTF-8 string: (f4908080f090bc87)
003+ mb_check_encoding passed on bad UTF-8 string: (f7808080f0919a88)
004+ mb_check_encoding passed on bad UTF-8 string: (f7bfbfbfe0a196)
005+ mb_check_encoding passed on bad UTF-8 string: (eda080f3a08587)
     == UTF-16 ==
     == UTF-32 ==
     == UTF-7 ==
--
========DONE========
FAIL Torture test for UTF-{7,8,16,32} [D:\a\php-src\php-src\ext\mbstring\tests\utf_encodings.phpt] 

@alexdowad Do you know what's going on here?

PHP Version

master

Operating System

No response

Activity

  1. alexdowad commented on Aug 17, 2023

    @alexdowad
    Contributor
  2. iluuu1994 commented on Aug 17, 2023

    @iluuu1994
    MemberAuthor

    Hi @alexdowad! Thanks for your response. Since this only occurs in master there's no rush, so I'll let you handle it since I'm mostly unfamiliar with mbstring, and don't have a working Windows machine.

  3. alexdowad commented on Aug 22, 2023

    @alexdowad
    Contributor

    Looks like the build is failing on 32-bit Linux machines, not just 32-bit Windows.

  4. iluuu1994 commented on Aug 22, 2023

    @iluuu1994
    MemberAuthor

    @alexdowad It looks fine on nightly (e.g. https://github.com/php/php-src/actions/runs/5933282918/job/16088514605), maybe there are multiple variables involved?

  5. alexdowad commented on Aug 22, 2023

    @alexdowad
    Contributor

    Hmm. We don't have a lot of clues here.

    A really good first clue would be to know the values of the ZEND_INTRIN_AVX2_{NATIVE,RESOLVER} macros in this build.

    I'm just trying to figure out if there is a good way to display the values of all the ZEND_INTRIN macros in the CI log... this would be good not just for debugging this problem, but even for debugging other similar problems in the future.

  6. iluuu1994 commented on Aug 22, 2023

    @iluuu1994
    MemberAuthor

    @alexdowad Maybe lscpu and cat main/php_config.h could help. You can try to put them into a run step after configure in .github/workflows/push.yml. Edit: Oh wait, Windows of course ^^ I don't know what it's equivalent of lscpu is.

  7. alexdowad commented on Aug 23, 2023

    @alexdowad
    Contributor

    @alexdowad Maybe lscpu and cat main/php_config.h could help. You can try to put them into a run step after configure in .github/workflows/push.yml. Edit: Oh wait, Windows of course ^^ I don't know what it's equivalent of lscpu is.

    It would be great to print various useful debugging info on Windows as well, but even printing on Linux only would be an improvement from the current state of things.

    This mbstring issue seems to be occurring on both 32-bit Windows and 32-bit Linux hosts anyways.

  8. iluuu1994 commented on Sep 3, 2023

    @iluuu1994
    MemberAuthor

    @alexdowad I understand you said this fails on Linux 32-bit as well. However, that's not the case on GitHub actions. So I've marked this test as xfail only for Windows + 32-bit for now so that nightly is green again. 6b74f1f

  9. ndossche commented on Nov 18, 2023

    @ndossche
    Member

    Looking at the last nightly this still seems to fail: https://github.com/php/php-src/actions/runs/6910901883/job/18804743373 The release of 8.3 is close now.
    I suppose no one had a look yet at the cause?
    I recall we had a similar strange issue before #10776

  10. ndossche commented on Nov 19, 2023

    @ndossche
    Member

    FWIW I'm investigating now.

  11. added a commit that references this issue on Nov 19, 2023
    b0dddb5
  12. added a commit that references this issue on Nov 19, 2023
    c15db22
  13. added a commit that references this issue on Jan 25, 2024
    6176538
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions