Lulu lulu-berlin · she/her
  • Joined on 2024-10-06
lulu-berlin commented on issue lix-project/lix#330 2024-10-10 11:32:06 +00:00
Segfault when comparing infinite data structures

Ok, this was silly. I figured it out. I only incremented callDepth for nested attributes sets, but not for nested lists... The example had rec { foo = [foo]; } so it's nesting attrset -> list…

lulu-berlin commented on issue lix-project/lix#543 2024-10-09 21:34:03 +00:00
Fix -Wmissing-field-initializers on Clang 18

Cool :) Just go ahead. I have other things to work on.

lulu-berlin commented on issue lix-project/lix#330 2024-10-09 21:29:26 +00:00
Segfault when comparing infinite data structures

I've just tried it with a low hard coded callDepth boundary of 10:

    // Limit the nesting level depth when comparing attribute sets to avoid infinite recursion.
    if (callDepth >
lulu-berlin commented on issue lix-project/lix#543 2024-10-09 20:56:20 +00:00
Fix -Wmissing-field-initializers on Clang 18

I'm happy to pick up the task of fixing the field initializer warnings. I already handled a bunch of them in [this commit](https://git.lix.systems/lix-project/lix/commit/43e79f443469c55ef4d3a43ce1e

lulu-berlin commented on issue lix-project/lix#330 2024-10-09 01:28:38 +00:00
Segfault when comparing infinite data structures

Another question is whether I should check the boundary at the beginning of the function or right before the recursive call.

I think that performance-wise, it would be better to make the check…

lulu-berlin commented on issue lix-project/lix#330 2024-10-09 01:20:21 +00:00
Segfault when comparing infinite data structures

Good idea! :) I'm all for it. I'll add a parameter with a default value of 0 for the external callers.

It's probably still good to have an evalSettings.maxAttrEqDepth for setting the…

lulu-berlin commented on issue lix-project/lix#330 2024-10-08 23:31:57 +00:00
Segfault when comparing infinite data structures

I read through the code that was mentioned by @jade and found this Nix PR and this CL.

I would like to share…

lulu-berlin closed issue lix-project/lix#541 2024-10-08 18:45:23 +00:00
Set the c++ version to 23
lulu-berlin commented on issue lix-project/lix#541 2024-10-08 18:45:22 +00:00
Set the c++ version to 23

The change was merged.

lulu-berlin commented on issue lix-project/lix#541 2024-10-07 23:56:22 +00:00
Set the c++ version to 23

For context, this was suggested by @jade as a way to allow using numeric literals with the suffix uz without getting a warning in a comment to this change: https://gerrit.lix.systems/c/lix/+/2045.

lulu-berlin opened issue lix-project/lix#541 2024-10-07 23:52:20 +00:00
Set the c++ version to 23
lulu-berlin commented on issue lix-project/lix#492 2024-10-07 07:54:14 +00:00
memcpy called with nullptr source in filetransfer.ff

https://gerrit.lix.systems/c/lix/+/2045

Yes, I acknowledge that this is defensive, but it doesn't do any harm, so why not. I think it's good to have a test for the EndOfFile exception anyway.

lulu-berlin commented on issue lix-project/lix#492 2024-10-07 07:18:56 +00:00
memcpy called with nullptr source in filetransfer.ff

Oh, this is what you meant by early return...

There's already a test called exceptionAbortsDownload. I can add one for exceptionAbortsRead to show that an EOF exception is also thrown with…

lulu-berlin commented on issue lix-project/lix#492 2024-10-07 07:01:56 +00:00
memcpy called with nullptr source in filetransfer.ff

I made the following test to serve a 0 byte file and try to read it:

TEST(FileTransfer, nullPointer)
{
    auto [port, srv] = serveHTTP("200 ok", "content-length: 0\r\n", [&] { return
lulu-berlin commented on issue lix-project/lix#492 2024-10-07 06:02:22 +00:00
memcpy called with nullptr source in filetransfer.ff

Yes, this is what I had in mind. I'll try it and let's see what happens.

lulu-berlin commented on issue lix-project/lix#492 2024-10-07 05:42:55 +00:00
memcpy called with nullptr source in filetransfer.ff

I had to disable the feature gc in order to add b_sanitize=address,undefined (otherwise I got an error saying "gc does far too many memory crimes for ASan"), like this:

just setup…
lulu-berlin commented on issue lix-project/lix#456 2024-10-07 04:43:18 +00:00
Add more compiler warnings

Ok, thanks for clarifying. I'll wait for it to be resolved.

lulu-berlin commented on issue lix-project/lix#330 2024-10-07 04:35:02 +00:00
Segfault when comparing infinite data structures

When I run either nix or lix with:

nix eval --expr 'let a = rec { foo = [foo]; }; b = rec { foo = [foo]; }; in a == b'

or do the same in nix repl, I get:

error: stack…
lulu-berlin commented on issue lix-project/lix#492 2024-10-07 03:27:21 +00:00
memcpy called with nullptr source in filetransfer.ff

Hi @pennae! 😄

I would like to look into it. Could you please specify which test is causing this runtime error and how I can reproduce it locally?

Just from taking a cursory look in…

lulu-berlin commented on issue lix-project/lix#456 2024-10-06 22:44:20 +00:00
Add more compiler warnings

I have created 2 changes:

Both of them get a " Verified -1" and then under "Checks" I see:

Error…