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.

munmap_chunk(): invalid pointer

See original GitHub issue

What’s the cause of invalid pointer?

const sharp = require("sharp");

console.time("img-wm");
sharp("./input.jpg")
  .resize(1560, null)
  .overlayWith("./overlay.png", {
    gravity: sharp.gravity.center
  })
  .toFile("./output.jpg", (err, info) => {
    console.timeEnd("img-wm");
  });

// munmap_chunk(): invalid pointer
// [1]    22078 abort (core dumped)  node sharp.js

Linux kernel: 4.17.3-200.fc28.x86_64 Node: 10.9.0 libvips: 8.6.5

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rahilwazircommented, Aug 23, 2018

Removed libvips library and all dependencies. Instead used package manager alone to install vips and everything is working good for now.

Thank you for the help 👍

0reactions
rahilwazircommented, Aug 23, 2018

@lovell I think that is the problem of duplicate vips installation, when I try to install vips-devel it also install vips 8.6.5 package along with it.

Anyway, it still throws the same error after installing vips-devel.

$ _GLIBCXX_USE_CXX11_ABI=0 ./configure --prefix=/usr
$ _GLIBCXX_USE_CXX11_ABI=0 make
$ make install
$ ldconfig
$ node un sharp
$ node i sharp
$ node sharp.js
node: symbol lookup error: /example/path/to/project/node_modules/sharp/build/Release/sharp.node: undefined symbol: _ZN4vips6VImage13icc_transformEPcPNS_7VOptionE

Sharp using vips 8.7.0, the compiled version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

munmap_chunk(): invalid pointer - Stack Overflow
This error message means that by writing into memory that does not belong to an object (but belongs to your process so no...
Read more >
Other less-common errors - Geos-chem
geos: munmap_chunk(): invalid pointer: 0x00000000059aac30 *** ... The free() function frees the memory space pointed to by ptr, which must have been ...
Read more >
munmap_chunk(): invalid pointer - C Board
Thread: munmap_chunk(): invalid pointer ... munmap is where "free" ends up, so munmap_chunk is part of "free" (or delete if you use C++)....
Read more >
IT33147: Running the endmqm command results in ... - IBM
Error in `endmqm': munmap_chunk(): invalid pointer: 0x00000000008e9380 *** ======= Backtrace: ...
Read more >
invalid pointer" error when trying to use fclose() - Reddit
"munmap chunk(): invalid pointer" error when trying to use fclose(). So I wanted to create a function to open a file and read...
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