!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

430 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.141 Servers

Load older messages


SenderMessageTime
28 Apr 2026
@blokyk:matrix.orgzoë (@blokyk)maybe i'm just blind, but is there any instruction for building lix with debug symbols? i tried to debug it with lldb and i just get nothing ^^;16:29:12
@blokyk:matrix.orgzoë (@blokyk)* maybe i'm just blind, but is there any instruction for building lix with debug info? i tried to debug it with lldb and i just don't get any source ^^;16:35:41
@blokyk:matrix.orgzoë (@blokyk) hmm actually it's just that every source path is pointing to /build/lix instead of /lix 16:42:55
@blokyk:matrix.orgzoë (@blokyk) * nvm it's just that every source path is pointing to /build/lix instead of /lix 16:43:16
@qyriad:katesiria.orgQyriadThis is a persistent problem we have with everything we build that doesn't substitute from Nixpkgs (where nixseparatedebuginfod works) >.>16:44:34
29 Apr 2026
@antifuchs:asf.computerantifuchsto close the loop, here13:54:38
@antifuchs:asf.computerantifuchs* to close the loop, I think I fixed the thing https://github.com/NixOS/nixpkgs/pull/51444113:54:48
@blokyk:matrix.orgzoë (@blokyk) actually Qyriad i removed this line that you added in f9d08cc44c, and i do get correct sources in lldb and gdb; is there some nuance i'm missing there? 15:12:57
@blokyk:matrix.orgzoë (@blokyk) * actually Qyriad i removed this line that you added in f9d08cc44c, and i do get correct sources in lldb and gdb without needing any setup in the debugger (eg source-map in lldb); is there some nuance i'm missing there? 15:13:45
@blokyk:matrix.orgzoë (@blokyk) * actually Qyriad i removed this line that you added in f9d08cc44c, and i do get correct sources in lldb and gdb without needing any setup in the debugger (eg source-map in lldb); is there some nuance i'm missing there? 15:13:52
30 Apr 2026
@deezrightwinger:matrix.org@deezrightwinger:matrix.org joined the room.01:21:10
@deezrightwinger:matrix.org@deezrightwinger:matrix.orgRedacted or Malformed Event01:21:24
@electria:federated.nexuselectria

I didn't know Lix had a Terms of Service (TOS), considering it's not a service...
A development chat is also most certainly not the right place for this

01:27:31
@hxr404:tchncs.de@hxr404:tchncs.de left the room.13:43:59
@qyriad:katesiria.orgQyriad
In reply to @blokyk:matrix.org
actually Qyriad i removed this line that you added in f9d08cc44c, and i do get correct sources in lldb and gdb without needing any setup in the debugger (eg source-map in lldb); is there some nuance i'm missing there?
Probably not. Iwrc there have been changes to Nixpkgs' default path mapping stuff since that commit, but if removing it now fixes things then yeet it!
13:51:50
@piegames:flausch.socialpiegames banned @deezrightwinger:matrix.org@deezrightwinger:matrix.org (spam).18:33:21
@isabel:isabelroses.comisabel changed their profile picture.18:47:20
1 May 2026
@aloisw:kde.orgaloisw Oh cool, I missed that when it came out: https://lwn.net/Articles/1054225/ 11:19:40
@aloisw:kde.orgaloisw It only took them almost seven years! 11:19:49
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)I thought it was an unmerged patchset?11:24:35
@aloisw:kde.orgaloisw Not sure if it's the exact same API, but this looks like the entry point to the thing: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/io_uring/register.c?h=v7.0.3#n1014 11:26:15
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Oh great11:32:28
@llakala:matrix.orgllakala set a profile picture.17:12:38
2 May 2026
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)

Noticed one thing here:

https://git.lix.systems/lix-project/lix/src/commit/cd573beb0a60d6bf0e341bcd4d2c464ed97c1a8a/lix/libstore/sqlite.cc#L186-L190

The reasoning there doesn't seem entirely correct since per sqlite docs NUL bytes anywhere in the string are UB?

If a non-negative fourth parameter is provided to sqlite3_bind_text() or sqlite3_bind_text16() or sqlite3_bind_text64() then that parameter must be the byte offset where the NUL terminator would occur assuming the string were NUL terminated. If any NUL characters occur at byte offsets less than the value of the fourth parameter then the resulting string value will contain embedded NULs. The result of expressions involving strings with embedded NULs is undefined.

01:14:56
@aloisw:kde.orgaloisw That's not my interpretation of "result of expressions involving strings with embedded NULs is undefined". To me it seems that storing or retrieving these strings is completely fine, but if you put it into a SQL expression the behaviour is unspecified in C standards language. 05:10:20
@blokyk:matrix.orgzoë (@blokyk)

there's a docs page dedicated to this:

[...] The use of NUL within strings can lead to surprising behaviors:

  • The length() SQL function only counts characters up to and excluding the first NUL.

  • The quote() SQL function only shows characters up to and excluding the first NUL.

  • The .dump command in the CLI omits the first NUL character and all subsequent text in the SQL output that it generates. In fact, the CLI omits everything past the first NUL character in all contexts.

The use of NUL characters in SQL text strings is not recommended.

07:25:16
@aloisw:kde.orgaloisw

This seems like a bug. But it is how SQLite works.

Lol, that's quite a formulation for "we didn't put the effort into making it work in the CLI".

07:29:19
@dev-hartmann:matrix.orgBenjamin Hartmann joined the room.14:06:27
3 May 2026
@23b00t:matrix.orgDaniel joined the room.09:53:44
@isabel:isabelroses.comisabel changed their profile picture.10:39:01

There are no newer messages yet.


Back to Room ListRoom Version: 10