GithubHelp home page GithubHelp logo

server crashes with *** Error in `./ws_examples': double free or corruption (out): 0x00007f0014003160 *** about simple-websocket-server HOT 9 CLOSED

eidheim avatar eidheim commented on July 20, 2024
server crashes with *** Error in `./ws_examples': double free or corruption (out): 0x00007f0014003160 ***

from simple-websocket-server.

Comments (9)

eidheim avatar eidheim commented on July 20, 2024

What platform are you on? And would you mind posting a backtrace (add compile option -g in the CMakeLists.txt)?

from simple-websocket-server.

superlambchops avatar superlambchops commented on July 20, 2024

I'm on linux (Ubuntu 15.04)
It is only caused when chromium is run on the same machine.
gdb_backtrace.txt

from simple-websocket-server.

eidheim avatar eidheim commented on July 20, 2024

Thank you, will have a look at it later Today or Tomorrow. Are you using g++4.8, or g++4.9 (or later)?

from simple-websocket-server.

eidheim avatar eidheim commented on July 20, 2024

And what boost version are you running? Still looking for the problem, at the moment I'm thinking it might be a coroutine issue (maybe from using an older boost version), but I'll look into it further. I am also unable to reproduce the issue (have not tried ng-websocket though).

from simple-websocket-server.

eidheim avatar eidheim commented on July 20, 2024

Very strange that the commit solved the issue. Do you see why?

from simple-websocket-server.

superlambchops avatar superlambchops commented on July 20, 2024

sorry no to get back earler: g++4.9 and boost1.55 if it still matters.
Does send_queue.clear() act like a flush and try to write something to an endpoint that is already gone where erase just deletes it without any other actions?

from simple-websocket-server.

eidheim avatar eidheim commented on July 20, 2024

Does it still crash with ng-websocket by the way?

from simple-websocket-server.

eidheim avatar eidheim commented on July 20, 2024

And please try the latest commit.

from simple-websocket-server.

superlambchops avatar superlambchops commented on July 20, 2024

Looks good. I can no longer make it crash.

from simple-websocket-server.

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.