Skip to content

Disable UBSan alignment check in configure's aligned-access test - #161012

Merged
StanFromIreland merged 1 commit into
python:mainfrom
StanFromIreland:conftest-ubsan
Oct 31, 2026
Merged

StanFromIreland merged 1 commit into
python:mainfrom
StanFromIreland:conftest-ubsan

Conversation

@StanFromIreland

Copy link
Copy Markdown
Member

This has been polluting UBSan logs, e.g. in this CI run:

==> /home/runner/work/cpython/cpython/san_log.5237 <==
conftest.c:176:9: runtime error: load of misaligned address 0x7fff1bdc2bb1 for type 'int', which requires 4 byte alignment
0x7fff1bdc2bb1: note: pointer points here
 00 00 00  00 01 02 03 04 05 06 07  08 09 0a 0b 0c 0d 0e 0f  30 2c dc 1b ff 7f 00 00  00 fc 0f 85 00
              ^ 
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior conftest.c:176:9 

Let's disable the sanitiser for the test to silence this.

@StanFromIreland StanFromIreland added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Oct 31, 2026
@StanFromIreland
StanFromIreland merged commit 90dc8bd into python:main Oct 31, 2026
62 checks passed
@StanFromIreland
StanFromIreland deleted the conftest-ubsan branch October 31, 2026 17:13
@miss-islington-app

Copy link
Copy Markdown

Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Oct 31, 2026

Copy link
Copy Markdown

GH-161019 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Oct 31, 2026
@bedevere-app

bedevere-app Bot commented Oct 31, 2026

Copy link
Copy Markdown

GH-161020 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 31, 2026
StanFromIreland added a commit that referenced this pull request Oct 31, 2026
…test (GH-161012) (#161019)

(cherry picked from commit 90dc8bd)

Co-authored-by: Stan Ulbrych <stan@python.org>
StanFromIreland added a commit that referenced this pull request Oct 31, 2026
…test (GH-161012) (#161020)

(cherry picked from commit 90dc8bd)

Co-authored-by: Stan Ulbrych <stan@python.org>
@bedevere-bot

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Alpine Linux NoGIL 3.14 (tierless) has failed when building commit 2b2d15d.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/1822/builds/1471) and take a look at the build logs.
  4. Check if the failure is related to this commit (2b2d15d) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#/builders/1822/builds/1471

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.14.ware-alpine.nogil/build/Lib/urllib/request.py"�[0m, line �[35m1573�[0m, in �[35mftp_open�[0m
    fp, retrlen = �[31mfw.retrfile�[0m�[1;31m(file, type)�[0m
                  �[31m~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^^^�[0m
  File �[35m"/buildbot/buildarea/3.14.ware-alpine.nogil/build/Lib/urllib/request.py"�[0m, line �[35m1843�[0m, in �[35mretrfile�[0m
    conn, retrlen = �[31mself.ftp.ntransfercmd�[0m�[1;31m(cmd)�[0m
                    �[31m~~~~~~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^�[0m
  File �[35m"/buildbot/buildarea/3.14.ware-alpine.nogil/build/Lib/ftplib.py"�[0m, line �[35m359�[0m, in �[35mntransfercmd�[0m
    resp = self.sendcmd(cmd)
  File �[35m"/buildbot/buildarea/3.14.ware-alpine.nogil/build/Lib/ftplib.py"�[0m, line �[35m281�[0m, in �[35msendcmd�[0m
    return �[31mself.getresp�[0m�[1;31m()�[0m
           �[31m~~~~~~~~~~~~�[0m�[1;31m^^�[0m
  File �[35m"/buildbot/buildarea/3.14.ware-alpine.nogil/build/Lib/ftplib.py"�[0m, line �[35m252�[0m, in �[35mgetresp�[0m
    raise error_temp(resp)
�[1;35mftplib.error_temp�[0m: �[35m425 Security: Bad IP connecting.�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.14.ware-alpine.nogil/build/Lib/test/test_urllib2net.py"�[0m, line �[35m307�[0m, in �[35m_test_urls�[0m
    f = urlopen(url, req, support.INTERNET_TIMEOUT)
  File �[35m"/buildbot/buildarea/3.14.ware-alpine.nogil/build/Lib/urllib/request.py"�[0m, line �[35m487�[0m, in �[35mopen�[0m
    response = self._open(req, data)
  File �[35m"/buildbot/buildarea/3.14.ware-alpine.nogil/build/Lib/urllib/request.py"�[0m, line �[35m504�[0m, in �[35m_open�[0m
    result = self._call_chain(self.handle_open, protocol, protocol +
                              '_open', req)
  File �[35m"/buildbot/buildarea/3.14.ware-alpine.nogil/build/Lib/urllib/request.py"�[0m, line �[35m464�[0m, in �[35m_call_chain�[0m
    result = func(*args)
  File �[35m"/buildbot/buildarea/3.14.ware-alpine.nogil/build/Lib/urllib/request.py"�[0m, line �[35m1586�[0m, in �[35mftp_open�[0m
    raise URLError(f"ftp error: {exp}") from exp
�[1;35murllib.error.URLError�[0m: �[35m<urlopen error ftp error: 425 Security: Bad IP connecting.>�[0m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants