Git Product home page Git Product logo

Comments (4)

ricarkol avatar ricarkol commented on August 11, 2024

This works before this solo5 commit: fd869f4813686ca33c207001fbc4623d5e2a6c63

from rumprun.

ricarkol avatar ricarkol commented on August 11, 2024

vnsprintf in bindings/ee_printf.c is not doing the right thing (still don't know why):

int ee_vprintf(const char *fmt, va_list args)
{
...
    n = vsnprintf(buf, PRINTF_BUF_LEN, fmt, args); // the resulting buf is not right
 ...
}
Breakpoint 3, ee_vprintf (fmt=fmt@entry=0x3254f8 "Solo5: Memory map: %llu MB addressable:\n", args=args@entry=0x1fffff70) at ee_printf.c:706
(gdb) p buf
$2 = "Solo5: Memory map: %lu MB addressable:\n", '\000' <repeats 280 times>

(gdb) p *(int *)(((char *)args[0].reg_save_area)+args[0].gp_offset)
$7 = 512
(gdb) p fmt
$8 = 0x3254f8 "Solo5: Memory map: %llu MB addressable:\n"

Both the format string fmt and args are correct, but buf (returned by vsnprintf) is not. buf should be Solo5: Memory map: 512 MB addressable:\n.

from rumprun.

ricarkol avatar ricarkol commented on August 11, 2024

This is a solo5 issue: can reproduce it with solo5 tests (no rumprun involved). Will close this after opening an issue in solo5/solo5.

from rumprun.

ricarkol avatar ricarkol commented on August 11, 2024

fixed with #18

from rumprun.

Related Issues (12)

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.