question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`linuxstatic` binaries of v3.2.4 are defective

See original GitHub issue

linuxstatic binaries of v3.2.4 are defective.

The newer GCC compiler is smarter. It figures out that BAKERY placeholder is not actually used and omit it. However, pkg does need the placeholder to override the launch arguments of Node.js.

volatile char* BAKERY = (volatile char*) "\0// BAKERY // BAKERY " \
  "// BAKERY // BAKERY // BAKERY // BAKERY // BAKERY // BAKERY " \
  "// BAKERY // BAKERY // BAKERY // BAKERY // BAKERY // BAKERY " \
  "// BAKERY // BAKERY // BAKERY // BAKERY // BAKERY // BAKERY ";
...
  char* bakery = (char*) BAKERY;
  while (true) {
    size_t width = strlen2(bakery);
    if (width == 0) break;
    nargv[c++] = bakery;
    bakery += width + 1;
  }
...

I am honestly surprised by the fact that the compiler can figure that out at compile-time.

This is a repeat of the earlier issue with Clang (#199). For GCC, only static binaries are affected by this issue.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
jeseccommented, Nov 10, 2021

@leerob When you have time, please publish 3.2.5 to npm. Thanks!

1reaction
Niekcommented, Nov 24, 2021

I have to agree with @robertsLando - if this was about some feature request I would understand. But this issue is about broken packages that are unfixed for 3 weeks even though the fix is available.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Will static linking on one unix distribution work but not another?
If I statically link an executable in ubuntu, is there any chance that that executable won't work within another distribution such as mint...
Read more >
16.4. Static Routes and the Default Gateway
Configuring Static Routes in ifcfg files ... Restrict Permissions for Executable Directories ... Advantages of Red Hat Enterprise Linux Single Sign-on.
Read more >
SLINKY: Static Linking Reloaded - USENIX
In this paper we describe the SLINKY system that uses digest-based sharing to combine the simplicity of static linking with the space savings...
Read more >
Apache Performance Tuning - Apache HTTP Server Version 2.4
(With Linux, for example, this means using Linux 2.4 or later. ... you have modules statically linked into your Apache binary, you will...
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found