Git Product home page Git Product logo

Comments (8)

juliangruber avatar juliangruber commented on July 28, 2024

you have to rebuild leveldown, e.g.

cd node_modules/level/node_modules/leveldown && npm i

or maybe npm i inside node_modules/level, or maybe also node-gyp rebuild inside the leveldown folder...:D

from leveldown.

19h avatar 19h commented on July 28, 2024

As said in IRC: http://f.cl.ly/items/220V2D3F3V0W2i3r360K/Text%202013.08.22%2019%3A18%3A44.txt.

from leveldown.

dominictarr avatar dominictarr commented on July 28, 2024

hmm, so did @juliangruber's suggestion work?

from leveldown.

juliangruber avatar juliangruber commented on July 28, 2024

@dominictarr conversation is in ##leveldb atm

from leveldown.

19h avatar 19h commented on July 28, 2024

Okay. Here's more to it: it only appears to happen if MSGPACK & LevelDown are alltogether included by the node app.

So, here's a list of errors we collected so far.

Sounds like information:

node: malloc.c:2451: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.

Generic failures: (if MSGPACK is included; doesn't fail if either LevelDown is excluded or script is run in sudo context which is schizophrene since the running user is root anyway..)

*** glibc detected *** node: free(): invalid pointer: 0x0000000002adb980 ***

System information:

Ubuntu 12 — Linux * 3.8.6-joyent-ubuntu-12-opt #1 SMP Tue Apr 9 01:13:00 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux — yields the assertion upon failure.

CentOS 6 — Linux * 2.6.32-279.1.1.el6.x86_64 #1 SMP Tue Jul 10 13:47:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux — only yields the generic failure information.

Might be a hint (found it through Google): http://pastebin.com/zLa3UEcM.

This is what fixed the issue for an issue in Lustre (they happened to stumble over it): http://review.whamcloud.com/#/c/4583/7/lustre/utils/lustre_rsync.c. (“One off allocation errors in lustre_rsync test program cause corruption of malloc arena and program faults.”)

from leveldown.

juliangruber avatar juliangruber commented on July 28, 2024

it should be mentioned that you're doing hot code swapping

from leveldown.

19h avatar 19h commented on July 28, 2024

@juliangruber The hot swap is initiated manually on-demand.. that has no impact on the initialization of the app

from leveldown.

ralphtheninja avatar ralphtheninja commented on July 28, 2024

@KenanSulayman Is this still a problem? The please re-open if that's the case.

from leveldown.

Related Issues (20)

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.