Skip to content

Emacs and core dumps #115

Description

@mikeowens

I know there is a long history with this, and maybe it will never be resolved, but is it still the assumed that Emacs is going core dump constantly due to it's linking to libumem? I can't go more than 10 or 15 minutes without a coredump. I just need to confirm that this is just a fact of life so I can either try to live with it or make any possible adjustments.

Activity

  1. jperkin commented on Jun 14, 2018

    @jperkin
    Collaborator

    Yes but it shouldn't be, is it? Maybe we missed one of the versions..

  2. mikeowens commented on Jun 14, 2018

    @mikeowens
    Author

    I compiled emacs25-25.3nb8 from commit 28aa778 for reference. I am using X11 over SSH, in case that introduces any other known issues. I will rebuild everything from scratch in a new zone and test just to make sure I haven't done something wrong/weird.

  3. jperkin commented on Jun 14, 2018

    @jperkin
    Collaborator

    Ah ok, if you compiled yourself outside of a pkgbuild image (https://github.com/joyent/pkgsrc/wiki/pkgdev:setup) then it will likely be linked against libumem. The logic that excludes emacs is here: https://github.com/joyent/pkgbuild/blob/master/include/libumem.mk

  4. mikeowens commented on Jun 15, 2018

    @mikeowens
    Author

    Thank you. I compiled myself bc I am on OmniOS CE. I will try doing pkgbuild image.

  5. mikeowens commented on Jun 15, 2018

    @mikeowens
    Author

    I can't figure out how to get pkgbuild to work on OmniOS CE. It's not officially supported. Is there some simple way I can just patch the build itself within pkgsrc? Maybe I'll just move to SmartOS.

  6. jperkin commented on Jun 15, 2018

    @jperkin
    Collaborator

    Hm, if you're compiling yourself it may just be leaking from a dependency, you can use ldd -s to see where the libumem dependency is coming from. If it's still coming directly from emacs somehow, you could add BUILDLINK_TRANSFORM+= rm:-lumem to the pkgsrc emacs Makefile which will strip any -lumem flags from the compiler.

  7. mikeowens commented on Jun 15, 2018

    @mikeowens
    Author

    Ok thank you. There's a ton of of deps that bring libumem in. I removed them and I am going to try and build with that Makefile option and see what happens.

  8. mikeowens commented on Jun 16, 2018

    @mikeowens
    Author

    Well I pretty much rebuilt the entire userland without libumem and manages to get emacs to build without it. Now when I run it, I get:

    emacs: Memory exhausted--use M-x save-some-buffers then exit and restart Emacs

    And it dies. I've done all I can do.

  9. jperkin commented on Jun 16, 2018

    @jperkin
    Collaborator

    @richlowe any ideas?

  10. richlowe commented on Jun 16, 2018

    @richlowe

    @jperkin None, I'm not familiar with it failing even without libumem

  11. mikeowens commented on Jun 16, 2018

    @mikeowens
    Author

    I'm just going to use SmartOS. I assume it works correctly there.

  12. added a commit that references this issue on Aug 28, 2018
  13. added a commit that references this issue on Sep 24, 2018
  14. added a commit that references this issue on Apr 8, 2019
  15. 122 remaining items

  16. added a commit that references this issue on May 22, 2026
  17. added a commit that references this issue on Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions