Coder Social home page Coder Social logo

Comments (3)

Cyroxin avatar Cyroxin commented on August 29, 2024

Heya!

Could you try the changed buffer source file at master? CI is not reporting any issues so I'll be testing it locally as well. What architecture are you running on (X86/AArch64/...)? What is your current kernel version? The master fix should work if your kernel is below 3.17 or if there is syscall number mistake.

from elembuf.

Cyroxin avatar Cyroxin commented on August 29, 2024

~$ cat issue.d

#!/usr/bin/env dub
/+ dub.sdl:
name "app"
dependency "elembuf" version="~>1.1.2"
+/

import buffer;
import std.stdio;

void main() {
       Buffer!() bufchar = Buffer!()();
       assert(bufchar == "");
       "finished".writeln;
}

~$ dub issue.d

finished 

I've now tested on Ubuntu and fixed a few potential compatibility issues. You can add a dependency on the newest version v1.1.2. The project depended on having the latest compiler version, which is now fixed with the new release. Please inform me if your issue is fixed with the new version. Some architecture specific constructor optimizations were removed in the new release, so if all possible, please do inform me your arch so that I may re-add them.

from elembuf.

mw66 avatar mw66 commented on August 29, 2024

my env:

$ uname -a
Linux  4.4.0-18362-Microsoft #836-Microsoft Mon May 05 16:04:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/issue.net
Ubuntu 18.04.2 LTS

The original err with dmd of verion 1.1.1 was:

$ dub cb.d
core.exception.AssertError@///.dub/packages/elembuf-1.1.1/elembuf/source/buffer.d(258): Assertion failure
----------------
??:? _d_assertp [0x7f6134840f79]
///.dub/packages/elembuf-1.1.1/elembuf/source/buffer.d:258 nothrow @nogc @trusted char[] buffer.Buffer!(char, false).Buffer.gen() [0x7f613483ff8d]
///.dub/packages/elembuf-1.1.1/elembuf/source/buffer.d:361 nothrow @nogc buffer.Buffer!(char, false).Buffer buffer.Buffer!(char, false).Buffer.opCall() [0x7f61348400d0]
cb.d:10 _Dmain [0x7f613483fedc]
Program exited with code -11

With version 1.1.2, both dmd and ldc2 works now, no longer error code -11.

Thanks for the fix.

from elembuf.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.