Skip to content

gh-162484: Check mimalloc segment is in use before marking it abandoned - #162608

Merged
corona10 merged 1 commit into
python:mainfrom
corona10:gh-162484
Nov 28, 2026
Merged

corona10 merged 1 commit into
python:mainfrom
corona10:gh-162484

Conversation

@corona10

@corona10 corona10 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

@corona10

Copy link
Copy Markdown
Member Author

@vstinner
This is actually an upstream bug and not the actual bug, only racy assertion issue.. (But v3 use different approach so not worth to pile the issue)
When mi_assert_internal(_mi_bitmap_is_claimed(arena->blocks_inuse, arena->field_count, 1, bitmap_idx)); is called, another thread can modify the abandoned segments and make them free (blocks_inuse: 0, blocks_abandoned: 0).

So the assertion could be true only before _mi_bitmap_is_claimed is called.

@corona10

Copy link
Copy Markdown
Member Author

@DinoV @mpage

Would you like to take a look?

@corona10
corona10 merged commit 6e8fc18 into python:main Nov 28, 2026
70 checks passed
@miss-islington-app

Copy link
Copy Markdown

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

@bedevere-app

bedevere-app Bot commented Nov 28, 2026

Copy link
Copy Markdown

GH-162824 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 Nov 28, 2026
@bedevere-app

bedevere-app Bot commented Nov 28, 2026

Copy link
Copy Markdown

GH-162825 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 Nov 28, 2026
@bedevere-bot

Copy link
Copy Markdown

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

Hi! The buildbot aarch64 Fedora Stable Clang Installed 3.x (tier-2) has failed when building commit 6e8fc18.

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/14/builds/9768) and take a look at the build logs.
  4. Check if the failure is related to this commit (6e8fc18) 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/14/builds/9768

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

Click to see traceback logs
Note: switching to '6e8fc180ab27d2d5eec54e2e84a019771e1dcff5'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 6e8fc180ab27d gh-162484: Check mimalloc segment is in use before marking it abandoned (gh-162608)
Switched to and reset branch 'main'

In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:282:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  282 |     CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
      |     ^
./Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
  115 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:289:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  289 |       CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
      |       ^
./Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
   86 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:435:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  435 |     CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
      |     ^
./Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
  115 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:442:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  442 |       CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
      |       ^
./Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
   86 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:548:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  548 |     CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
      |     ^
./Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
  115 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:557:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  557 |       CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
      |       ^
./Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
   86 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:579:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  579 |       CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
      |       ^
./Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
   86 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:590:9: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  590 |         CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
      |         ^
./Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
  115 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:687:11: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  687 |           CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
      |           ^
./Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
  115 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:732:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  732 |     CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
      |     ^
./Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
  115 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:758:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  758 |       CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
      |       ^
./Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
   86 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:769:9: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  769 |         CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
      |         ^
./Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
  115 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:782:11: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  782 |           CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
      |           ^
./Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
  115 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:927:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  927 |     CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
      |     ^
./Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
  115 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:940:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  940 |       CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
      |       ^
./Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
   86 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:957:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  957 |     CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
      |     ^
./Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
  115 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:964:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
  964 |       CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
      |       ^
./Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
   86 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:1199:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
 1199 |       CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
      |       ^
./Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
   86 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
In file included from ./Modules/expat/xmltok.c:258:
./Modules/expat/xmltok_impl.c:1219:11: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
 1219 |           CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
      |           ^
./Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
   86 |     EXPAT_FALLTHROUGH;                                                         \
      |     ^
./Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
   47 | #      define EXPAT_FALLTHROUGH __attribute__((fallthrough))
      |                                 ^
19 warnings generated.
ar: libpython3.16.a: error reading Objects/dictobject.o: No space left on device
make: *** [Makefile:1211: libpython3.16.a] Error 1
make: *** Waiting for unfinished jobs....

chmod: cannot access 'target/': No such file or directory

@bedevere-bot

Copy link
Copy Markdown

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

Hi! The buildbot aarch64 Fedora Stable LTO + PGO 3.x (tier-1) has failed when building commit 6e8fc18.

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/524/builds/9589) and take a look at the build logs.
  4. Check if the failure is related to this commit (6e8fc18) 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/524/builds/9589

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

Click to see traceback logs
Note: switching to '6e8fc180ab27d2d5eec54e2e84a019771e1dcff5'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 6e8fc180ab27d gh-162484: Check mimalloc segment is in use before marking it abandoned (gh-162608)
Switched to and reset branch 'main'

find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
make[2]: [Makefile:3565: clean-retain-profile] Error 1 (ignored)
/tmp/ccZ80Br7.s: Assembler messages:
/tmp/ccZ80Br7.s: Fatal error: Objects/floatobject.o: No space left on device
make[2]: *** [Makefile:3471: Objects/floatobject.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/ccxbr40P.s: Assembler messages:
/tmp/ccxbr40P.s: Fatal error: can't write 4 bytes to section .debug_loclists of Objects/descrobject.o: 'No space left on device'
/tmp/ccxbr40P.s: Fatal error: Objects/descrobject.o: No such file or directory
/tmp/cccGLd0m.s: Assembler messages:
/tmp/cccGLd0m.s: Fatal error: Objects/sliceobject.o: No space left on device
make[2]: *** [Makefile:3471: Objects/descrobject.o] Error 1
make[2]: *** [Makefile:3471: Objects/sliceobject.o] Error 1
Assembler messages:
Fatal error: can't create Objects/structseq.o: No space left on device
make[2]: *** [Makefile:3471: Objects/structseq.o] Error 1
/tmp/ccibvL5W.s: Assembler messages:
/tmp/ccibvL5W.s: Fatal error: can't write 19 bytes to section .debug_line of Parser/action_helpers.o: 'No space left on device'
/tmp/ccibvL5W.s: Fatal error: Parser/action_helpers.o: No such file or directory
make[2]: *** [Makefile:3471: Parser/action_helpers.o] Error 1
/tmp/cc9bAQzY.s: Assembler messages:
/tmp/cc9bAQzY.s: Fatal error: can't write 9 bytes to section .debug_loclists of Objects/genobject.o: 'No space left on device'
/tmp/cc9bAQzY.s: Fatal error: Objects/genobject.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/genobject.o] Error 1
/tmp/ccoz70Ts.s: Assembler messages:
/tmp/ccoz70Ts.s: Fatal error: Objects/odictobject.o: No space left on device
make[2]: *** [Makefile:3471: Objects/odictobject.o] Error 1
/tmp/cc3WwttS.s: Assembler messages:
/tmp/cc3WwttS.s: Fatal error: Objects/rangeobject.o: No space left on device
make[2]: *** [Makefile:3471: Objects/rangeobject.o] Error 1
/tmp/cckhj3K7.s: Assembler messages:
/tmp/cckhj3K7.s: Fatal error: can't write 6 bytes to section .debug_loclists of Objects/funcobject.o: 'No space left on device'
/tmp/cckhj3K7.s: Fatal error: Objects/funcobject.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/funcobject.o] Error 1
/tmp/cctv3coa.s: Assembler messages:
/tmp/cctv3coa.s: Fatal error: can't write 1 byte to section .debug_loclists of Objects/frameobject.o: 'No space left on device'
/tmp/cctv3coa.s: Fatal error: Objects/frameobject.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/frameobject.o] Error 1
/tmp/ccLYdmIQ.s: Assembler messages:
/tmp/ccLYdmIQ.s: Fatal error: Objects/tupleobject.o: No space left on device
make[2]: *** [Makefile:3471: Objects/tupleobject.o] Error 1
/tmp/ccSq36bw.s: Assembler messages:
/tmp/ccSq36bw.s: Fatal error: Objects/moduleobject.o: No space left on device
make[2]: *** [Makefile:3471: Objects/moduleobject.o] Error 1
/tmp/ccWRu3HH.s: Assembler messages:
/tmp/ccWRu3HH.s: Fatal error: can't write 3925 bytes to section .debug_info of Objects/codeobject.o: 'No space left on device'
/tmp/ccWRu3HH.s: Fatal error: Objects/codeobject.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/codeobject.o] Error 1
/tmp/cc10XbkG.s: Assembler messages:
/tmp/cc10XbkG.s: Fatal error: can't write 3927 bytes to section .gnu.lto_.decls.25196c915f06c452 of Objects/unicode_writer.o: 'No space left on device'
/tmp/cc10XbkG.s: Fatal error: Objects/unicode_writer.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/unicode_writer.o] Error 1
/tmp/ccCVHhm6.s: Assembler messages:
/tmp/ccCVHhm6.s: Fatal error: can't write 3927 bytes to section .gnu.lto_.decls.e8b1c9457d6dbab2 of Objects/unicode_format.o: 'No space left on device'
/tmp/ccCVHhm6.s: Fatal error: Objects/unicode_format.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/unicode_format.o] Error 1
/tmp/ccT5doIW.s: Assembler messages:
/tmp/ccT5doIW.s: Fatal error: can't write 122 bytes to section .gnu.lto___gcov_._PyUnicode_IsTitlecase.102.2f99fb90c3790fa4 of Objects/unicodectype.o: 'No space left on device'
/tmp/ccT5doIW.s: Fatal error: Objects/unicodectype.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/unicodectype.o] Error 1
/tmp/ccnjmz2o.s: Assembler messages:
/tmp/ccnjmz2o.s: Fatal error: can't write 2792 bytes to section .gnu.lto_PyObject_DelItem.17.95b713cd7e6b2912 of Objects/abstract.o: 'No space left on device'
/tmp/ccnjmz2o.s: Fatal error: Objects/abstract.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/abstract.o] Error 1
/tmp/ccvn923U.s: Assembler messages:
/tmp/ccvn923U.s: Fatal error: can't write 2273 bytes to section .gnu.lto_PyObject_ASCII.24.87d031a87f191f4e of Objects/object.o: 'No space left on device'
/tmp/ccvn923U.s: Fatal error: Objects/object.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/object.o] Error 1
/tmp/ccAoILOQ.s: Assembler messages:
/tmp/ccAoILOQ.s: Fatal error: can't write 640 bytes to section .gnu.lto_NoDefault_repr.41.dee8e9d36d50a37c of Objects/typevarobject.o: 'No space left on device'
/tmp/ccAoILOQ.s: Fatal error: Objects/typevarobject.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/typevarobject.o] Error 1
/tmp/ccBuoruk.s: Assembler messages:
/tmp/ccBuoruk.s: Fatal error: can't write 3234 bytes to section .gnu.lto_set_table_resize.58.e1f0f044ce1a91c5 of Objects/setobject.o: 'No space left on device'
/tmp/ccBuoruk.s: Fatal error: Objects/setobject.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/setobject.o] Error 1
/tmp/ccw8szhn.s: Assembler messages:
/tmp/ccw8szhn.s: Fatal error: can't write 3819 bytes to section .gnu.lto_PyList_New.38.7c74fd4bcbae6e3e of Objects/listobject.o: 'No space left on device'
/tmp/ccw8szhn.s: Fatal error: Objects/listobject.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/listobject.o] Error 1
/tmp/ccE97iCr.s: Assembler messages:
/tmp/ccE97iCr.s: Fatal error: can't write 1782 bytes to section .gnu.lto_.ipa_sra.aa4ea16502e0a797 of Objects/bytearrayobject.o: 'No space left on device'
/tmp/ccE97iCr.s: Fatal error: Objects/bytearrayobject.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/bytearrayobject.o] Error 1
/tmp/ccI9IxbB.s: Assembler messages:
/tmp/ccI9IxbB.s: Fatal error: can't write 95 bytes to section .gnu.lto_memoryview_tolist__doc__.17.9de67566064f9331 of Objects/memoryobject.o: 'No space left on device'
/tmp/ccI9IxbB.s: Fatal error: Objects/memoryobject.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/memoryobject.o] Error 1
/tmp/ccN64C5v.s: Assembler messages:
/tmp/ccN64C5v.s: Fatal error: can't write 3927 bytes to section .gnu.debuglto_.debug_str of Objects/exceptions.o: 'No space left on device'
/tmp/ccN64C5v.s: Fatal error: Objects/exceptions.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/exceptions.o] Error 1
/tmp/ccjTikB2.s: Assembler messages:
/tmp/ccjTikB2.s: Fatal error: can't write 3927 bytes to section .gnu.debuglto_.debug_str of Objects/bytesobject.o: 'No space left on device'
/tmp/ccjTikB2.s: Fatal error: Objects/bytesobject.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/bytesobject.o] Error 1
/tmp/ccedwa4i.s: Assembler messages:
/tmp/ccedwa4i.s: Fatal error: can't write 3927 bytes to section .gnu.debuglto_.debug_info of Objects/dictobject.o: 'No space left on device'
/tmp/ccedwa4i.s: Fatal error: Objects/dictobject.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/dictobject.o] Error 1
/tmp/ccaAJ4KO.s: Assembler messages:
/tmp/ccaAJ4KO.s: Fatal error: can't write 3184 bytes to section .gnu.lto_.jmpfuncs.2b7e984e015e7193 of Parser/parser_invalid.o: 'No space left on device'
/tmp/ccaAJ4KO.s: Fatal error: Parser/parser_invalid.o: No such file or directory
make[2]: *** [Makefile:3471: Parser/parser_invalid.o] Error 1
/tmp/ccZYfxtp.s: Assembler messages:
/tmp/ccZYfxtp.s: Fatal error: can't write 3927 bytes to section .gnu.debuglto_.debug_str of Objects/longobject.o: 'No space left on device'
/tmp/ccZYfxtp.s: Fatal error: Objects/longobject.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/longobject.o] Error 1
In function ‘type_set_bases_unlocked’,
    inlined from ‘type_set_bases’ at Objects/typeobject.c:2058:11:
Objects/typeobject.c:1965:9: warning: ‘best_base’ may be used uninitialized [-Wmaybe-uninitialized]
 1965 |         raise_new_bases_error(check, best_base, old_base);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/typeobject.c: In function ‘type_set_bases’:
Objects/typeobject.c:1948:19: note: ‘best_base’ declared here
 1948 |     PyTypeObject *best_base;
      |                   ^~~~~~~~~
In function ‘type_set_bases_unlocked’,
    inlined from ‘type_set_bases’ at Objects/typeobject.c:2058:11:
Objects/typeobject.c:1965:9: warning: ‘best_base’ may be used uninitialized [-Wmaybe-uninitialized]
 1965 |         raise_new_bases_error(check, best_base, old_base);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/typeobject.c: In function ‘type_set_bases’:
Objects/typeobject.c:1948:19: note: ‘best_base’ declared here
 1948 |     PyTypeObject *best_base;
      |                   ^~~~~~~~~
/tmp/cc51qWZQ.s: Assembler messages:
/tmp/cc51qWZQ.s: Fatal error: can't write 120 bytes to section .text of Objects/obmalloc.o: 'No space left on device'
/tmp/cc51qWZQ.s: Fatal error: Objects/obmalloc.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/obmalloc.o] Error 1
/tmp/ccdPkdGk.s: Assembler messages:
/tmp/ccdPkdGk.s: Fatal error: can't write 28 bytes to section .data of Objects/typeobject.o: 'No space left on device'
/tmp/ccdPkdGk.s: Fatal error: Objects/typeobject.o: No such file or directory
make[2]: *** [Makefile:3471: Objects/typeobject.o] Error 1
/tmp/ccv7Jo81.s: Assembler messages:
/tmp/ccv7Jo81.s: Fatal error: can't write 332 bytes to section .text of Parser/parser.o: 'No space left on device'
/tmp/ccv7Jo81.s: Fatal error: Parser/parser.o: No such file or directory
make[2]: *** [Makefile:3471: Parser/parser.o] Error 1
make[1]: *** [Makefile:1038: profile-gen-stamp] Error 2
make: *** [Makefile:1050: profile-run-stamp] Error 2

find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
make: [Makefile:3565: clean-retain-profile] Error 1 (ignored)

corona10 added a commit that referenced this pull request Nov 28, 2026
…abandoned (gh-162608) (gh-162825)

gh-162484: Check mimalloc segment is in use before marking it abandoned (gh-162608)
(cherry picked from commit 6e8fc18)

Co-authored-by: Donghee Na <donghee.na@python.org>
corona10 added a commit that referenced this pull request Nov 28, 2026
…abandoned (gh-162608) (gh-162824)

gh-162484: Check mimalloc segment is in use before marking it abandoned (gh-162608)
(cherry picked from commit 6e8fc18)

Co-authored-by: Donghee Na <donghee.na@python.org>
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