Repository navigation
Can't build 3.13b2 on Ubuntu: test test_sqlite3 failed #120191
Copy link
Copy link
Closed as not planned
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
After successfully running ./configure --enable-optimizations on Ubuntu 24.04 (with these lines perhaps relevant):
...
checking for decimal libmpdec machine... uint128
checking for sqlite3 >= 3.15.2... yes
checking for sqlite3.h... yes
checking for sqlite3_bind_double in -lsqlite3... yes
checking for sqlite3_column_decltype in -lsqlite3... yes
checking for sqlite3_column_double in -lsqlite3... yes
checking for sqlite3_complete in -lsqlite3... yes
checking for sqlite3_progress_handler in -lsqlite3... yes
checking for sqlite3_result_double in -lsqlite3... yes
checking for sqlite3_set_authorizer in -lsqlite3... yes
checking for sqlite3_trace_v2 in -lsqlite3... yes
checking for sqlite3_value_double in -lsqlite3... yes
checking for sqlite3_load_extension in -lsqlite3... yes
checking for sqlite3_serialize in -lsqlite3... yes
checking for --enable-loadable-sqlite-extensions... no
checking for tcl >= 8.5.12 tk >= 8.5.12... yes
...
checking for stdlib extension module readline... yes
checking for stdlib extension module _sqlite3... yes
checking for stdlib extension module _tkinter... yes
...
config.status: creating pyconfig.h
configure: creating Modules/Setup.local
configure: creating Makefile
Then make -s -j4
...
0:00:45 load avg: 8.53 [36/44] test_set
0:00:50 load avg: 8.41 [37/44] test_sqlite3
test test_sqlite3 failed
0:00:50 load avg: 8.41 [38/44] test_statistics -- test_sqlite3 failed (4 errors)
0:00:57 load avg: 7.89 [39/44] test_str
0:00:58 load avg: 7.89 [40/44] test_struct
0:00:59 load avg: 7.89 [41/44] test_tabnanny
0:01:00 load avg: 7.89 [42/44] test_time
0:01:02 load avg: 7.74 [43/44] test_xml_etree
0:01:03 load avg: 7.74 [44/44] test_xml_etree_c
Total duration: 1 min 4 sec
Total tests: run=9,203 skipped=177
Total test files: run=44/44 failed=1
Result: FAILURE
make: *** [Makefile:892: profile-run-stamp] Error 2
dpkg -l | grep sqlite3
ii libaprutil1-dbd-sqlite3:amd64 1.6.3-1.1ubuntu7 amd64 Apache Portable Runtime Utility Library - SQLite3 Driver
ii libsqlite3-0:amd64 3.45.1-1ubuntu2 amd64 SQLite 3 shared library
ii libsqlite3-dev:amd64 3.45.1-1ubuntu2 amd64 SQLite 3 development files
ii sqlite3 3.45.1-1ubuntu2 amd64 Command line interface for SQLite 3
Not sure where to look next? (Can't see anything relevant on the issue tracker.)
(I had the same problem last month with beta1, but hoped beta2 might help me get 3.13 running for testing.)
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
- StatusShow more project fieldsDone
Activity
mcepl commentedon Jun 7, 2024
RobH123 commentedon Jun 7, 2024
Thanks for looking at this @mcepl.
mcepl commentedon Jun 8, 2024
Probably completely wrong question. What did you get when running this?
$ ./python -c 'import sys; print(sys.maxunicode > 0xffff)'RobH123 commentedon Jun 8, 2024
True (and if I print sys.maxunicode it's 1114111 or 0x10FFFF).
Oh, and dumb me hadn't even realised at first that I'm actually running python3.13 for these commands. (I'm guessing that it's the unoptimised version???)
Zheaoli commentedon Jun 8, 2024
Could not reproduce the issue on main branch
RobH123 commentedon Jun 8, 2024
Oh. Do you install sqlite3 from a ppa? (I have 3.45.1 on Ubuntu Noble 24.04, you have 3.46). My Ubuntu has been upgraded every six months for almost five years, so possibly some compatibility thing makes my system not identical to a new install??? Any ideas what else I could possibly look for @Zheaoli? I guess I could try to figure out how to build 3.13 in Docker or something??? Otherwise I'll just have to wait for the eventual release to reach Ubuntu 24.10. (Never had problems building betas before.)
vstinner commentedon Jun 11, 2024
Can you run the following commands and copy/paste the output?
RobH123 commentedon Jun 11, 2024
Python 3.13.0b2 (main, Jun 7 2024, 14:59:58) [GCC 13.2.0] on linux
b'@test_4030379_tmp\xe7w\xf0'
'utf-8'
'surrogateescape'
'UTF-8'
'3.45.1'
(3, 45, 1)
Thanks @vstinner. (Without the optimisations, 3.13 is about half the speed of 3.12 in my applications.)
erlend-aasland commentedon Aug 16, 2024
@RobH123 can you try the RC and check if your issue still persists?
satmandu commentedon Oct 9, 2024
@RobH123 Do you have a zfs rpool on your system?
And if so, what does
zfs get utf8only,normalization rpoolgive you?This is what I see on my system:
RobH123 commentedon Oct 9, 2024
Yes, I have zfs rpool and output of query is identical to yours @satmandu.
RobH123 commentedon Oct 10, 2024
@satmandu Does that mean you understand the problem? The test only fails for users with ZFS (which is probably quite a low percentage of Ubuntu users)? Are you able to give a brief explanation please.
satmandu commentedon Oct 10, 2024
See #81765 (comment)
erlend-aasland commentedon Oct 10, 2024
Let's keep the ZFS test issues in #81765; closing this as a duplicate.