!LemuOOvbWqRXodtSsw:nixos.org

NixOS Reproducible Builds

517 Members
Report: https://reproducible.nixos.org Project progress: https://github.com/orgs/NixOS/projects/30122 Servers

Load older messages


SenderMessageTime
9 Apr 2025
@gigamonster256:matrix.orggigamonster256 joined the room.17:04:16
10 Apr 2025
@raboof:matrix.orgraboofgenerated another report for the minimal iso, no surprises (gettext and jemalloc are still in the staging pipeline) https://reproducibility.nixos.social/reports/nixos-minimal-25.05pre780821.c8cd81426f45-x86_64-linux.iso06:44:57
11 Apr 2025
@poeta_007:matrix.orgAlexander (Axler1) joined the room.12:32:19
@3plexdev:matrix.org3pleX-devima_2f2583a.png
Download ima_2f2583a.png
14:00:01
@3plexdev:matrix.org3pleX-dev Hi Fernando Rodrigues: please I’d like to ask if you have a timeline set for the reproducible build project? It’s states here that we should work with our mentors to provide a timeline for the work 14:00:11
@sigmasquadron:matrix.orgFernando Rodrigues
In reply to @3plexdev:matrix.org
Hi Fernando Rodrigues: please I’d like to ask if you have a timeline set for the reproducible build project? It’s states here that we should work with our mentors to provide a timeline for the work
This is a bit difficult to answer at this point because we aren't yet sure if we'll be able to assign the intern with a certain special project, and because each r13y issue varies wildly in complexity and scope. For now, check the calendar and simply tell Outreachy that the internship begins in the second day of June and has a second part beginning July 15. You'll be assigned various issues and are expected to research the inner workings of third-party applications for 30h/week to hopefully fix a number of unreproducible packages.
14:54:15
@3plexdev:matrix.org3pleX-dev
In reply to @sigmasquadron:matrix.org
This is a bit difficult to answer at this point because we aren't yet sure if we'll be able to assign the intern with a certain special project, and because each r13y issue varies wildly in complexity and scope. For now, check the calendar and simply tell Outreachy that the internship begins in the second day of June and has a second part beginning July 15. You'll be assigned various issues and are expected to research the inner workings of third-party applications for 30h/week to hopefully fix a number of unreproducible packages.
Ah okay! Thank you so much — this was really helpful
15:35:54
@emilazy:matrix.orgemilyhttps://fedoraproject.org/wiki/Changes/Package_builds_are_expected_to_be_reproducible18:59:12
@emilazy:matrix.orgemilyhey we get a shoutout in here even :)18:59:13
@emilazy:matrix.orgemilyhttps://lwn.net/Articles/1014979/ LWN article18:59:25
@ambroisie:belanyi.fr@ambroisie:belanyi.fr left the room.22:07:46
12 Apr 2025
@loving-melody:matrix.org@loving-melody:matrix.org left the room.02:17:17
@wiryfuture:matrix.orgPhilip changed their profile picture.11:36:07
@guider-le-recit:matrix.orgguider-le-recitApologies for the delayed update on this, in essence I modified the libpinyin source (ngram_bdb.cpp, chewing_large_table2_bdb.cpp, phrase_large_table3_bdb.cpp, punct_table_bdb.cpp) to add a DB set_flags(handle, DB_TXN_NOT_DURABLE) call immediately after db_create() and before DB open() for all database handles used during index generation. However, attempting to build failed during the make process when running gen_binary_files. The build log showed: ''BDB1566 DB_NOT_DURABLE interface requires an environment configured for the transaction subsystem'' Given that DB_TXN_NOT_DURABLE did not work, I reverted those changes and went back to test the difference between access methods. I modified only ngram_bdb.cpp to change the bigram.db file type from DB_HASH to DB_BTREE in all its DB open calls. The build completed this time, but the reproducibility check (--check) still failed. Running diffoscope showed that while bigram.db is now reported as a B-Tree file, it exhibits the exact same header difference pattern around offset 0x34 as all the other B-Tree files I did not want to try refractoring a DB ENV, so I tried looking if there where any flags i missed that could handle this, there aren't any but instead I found that the problematic region starting at 0x34 corresponds to a 20-byte uid field within the common DBMETA structure (https://github.com/zvelo/BerkeleyDB/blob/master/src/dbinc/db_page.h) This uid is an apperantly inherently non-deterministic unique file identifier generated by BDB during database creation, influenced by runtime factors potentially including ASLR. BDB docs confirms there are no API flags controllable via DB->set_flags() on standalone handles to suppress or stabilize this uid generation. I guess it seems that, the non-reproducibility affecting all generated BDB files stem directly from this volatile uid field. At this point i am tired and not sure what to do next20:05:15
@sigmasquadron:matrix.orgFernando Rodrigues
In reply to @guider-le-recit:matrix.org
Apologies for the delayed update on this, in essence I modified the libpinyin source (ngram_bdb.cpp, chewing_large_table2_bdb.cpp, phrase_large_table3_bdb.cpp, punct_table_bdb.cpp) to add a DB set_flags(handle, DB_TXN_NOT_DURABLE) call immediately after db_create() and before DB open() for all database handles used during index generation.
However, attempting to build failed during the make process when running gen_binary_files. The build log showed: ''BDB1566 DB_NOT_DURABLE interface requires an environment configured for the transaction subsystem''

Given that DB_TXN_NOT_DURABLE did not work, I reverted those changes and went back to test the difference between access methods. I modified only ngram_bdb.cpp to change the bigram.db file type from DB_HASH to DB_BTREE in all its DB open calls.
The build completed this time, but the reproducibility check (--check) still failed. Running diffoscope showed that while bigram.db is now reported as a B-Tree file, it exhibits the exact same header difference pattern around offset 0x34 as all the other B-Tree files

I did not want to try refractoring a DB ENV, so I tried looking if there where any flags i missed that could handle this, there aren't any but instead I found that the problematic region starting at 0x34 corresponds to a 20-byte uid field within the common DBMETA structure
(https://github.com/zvelo/BerkeleyDB/blob/master/src/dbinc/db_page.h)
This uid is an apperantly inherently non-deterministic unique file identifier generated by BDB during database creation, influenced by runtime factors potentially including ASLR. BDB docs confirms there are no API flags controllable via DB->set_flags() on standalone handles to suppress or stabilize this uid generation.

I guess it seems that, the non-reproducibility affecting all generated BDB files stem directly from this volatile uid field. At this point i am tired and not sure what to do next
This is great! The next step would be to iteratively implement a deterministic way to generate the unique file identifier, which would mean patching BerkeleyDB.
But we don't need to worry about that right now. Since the deadline for outreachy applications is coming up, please merge all of your research and your messages here in a GitHub issue, so you have a link to post on Outreachy.
20:10:08
@sigmasquadron:matrix.orgFernando Rodrigues
In reply to @guider-le-recit:matrix.org
Apologies for the delayed update on this, in essence I modified the libpinyin source (ngram_bdb.cpp, chewing_large_table2_bdb.cpp, phrase_large_table3_bdb.cpp, punct_table_bdb.cpp) to add a DB set_flags(handle, DB_TXN_NOT_DURABLE) call immediately after db_create() and before DB open() for all database handles used during index generation.
However, attempting to build failed during the make process when running gen_binary_files. The build log showed: ''BDB1566 DB_NOT_DURABLE interface requires an environment configured for the transaction subsystem''

Given that DB_TXN_NOT_DURABLE did not work, I reverted those changes and went back to test the difference between access methods. I modified only ngram_bdb.cpp to change the bigram.db file type from DB_HASH to DB_BTREE in all its DB open calls.
The build completed this time, but the reproducibility check (--check) still failed. Running diffoscope showed that while bigram.db is now reported as a B-Tree file, it exhibits the exact same header difference pattern around offset 0x34 as all the other B-Tree files

I did not want to try refractoring a DB ENV, so I tried looking if there where any flags i missed that could handle this, there aren't any but instead I found that the problematic region starting at 0x34 corresponds to a 20-byte uid field within the common DBMETA structure
(https://github.com/zvelo/BerkeleyDB/blob/master/src/dbinc/db_page.h)
This uid is an apperantly inherently non-deterministic unique file identifier generated by BDB during database creation, influenced by runtime factors potentially including ASLR. BDB docs confirms there are no API flags controllable via DB->set_flags() on standalone handles to suppress or stabilize this uid generation.

I guess it seems that, the non-reproducibility affecting all generated BDB files stem directly from this volatile uid field. At this point i am tired and not sure what to do next
*
20:10:39
@guider-le-recit:matrix.orgguider-le-recitThank you Fernando20:11:28
@guider-le-recit:matrix.orgguider-le-recitdo i make a new issue or post message onto the original?20:11:50
@guider-le-recit:matrix.orgguider-le-recit* do i make a new issue or post the message onto the original?20:11:59
@sigmasquadron:matrix.orgFernando RodriguesI think it's best to make a new issue, since this affects more than just libpinyin.20:12:49
@guider-le-recit:matrix.orgguider-le-recitOkay, thank you once more20:13:31
@emilazy:matrix.orgemilyfantastic great work!21:35:55
@emilazy:matrix.orgemilyFWIW, BerkeleyDB was abandoned by Oracle. I know there are various forks and API-compatible replacements21:36:53
@emilazy:matrix.orgemilymaybe one of them avoids this issue?21:36:54
@emilazy:matrix.orgemilyit also might be an option to move packages off BerkeleyDB to alternative backends like GNU dbm where supported: https://fedoraproject.org/wiki/User:Pkubat/Draft_-_Removing_BerkeleyDB_from_Fedora21:37:48
@emilazy:matrix.orgemily for libpinyin,
libpinyin X GPLv3+ depends on KyotoCabinet since f24
21:41:20
@emilazy:matrix.orgemilythough I'm not sure if Kyoto Cabinet is maintained either 😆21:42:12
@emilazy:matrix.orgemilyah, https://dbmx.net/kyotocabinet/ points to https://dbmx.net/tkrzw/.21:42:35
@emilazy:matrix.orgemilybut https://github.com/libpinyin/libpinyin/blob/a6f4d3c239883b5e1dd0770ab2b433042845e9c9/configure.ac hardcodes only support for Berkeley DB and Kyoto Cabinet.21:43:04
@emilazy:matrix.orgemily the latest Kyoto Cabinet is still like three years newer than the latest Berkeley DB, and there's a good chance it doesn't have this specific reproducibility bug, so… it may be a good option for libpinyin :) 21:46:43

Show newer messages


Back to Room ListRoom Version: 6