Giter Club home page Giter Club logo

Comments (4)

mrschyte avatar mrschyte commented on May 26, 2024 2

I have the same issue and I can trigger it reliably with the following:

$ cat ~/.muttrc
mono index bold ~N
mono index bold ~F
mono index bold ~T
mono index bold ~D
$ neomutt -D
color/regex.c:314:5: runtime error: store to null pointer of type 'struct RegexColor *'

from neomutt.

flatcap avatar flatcap commented on May 26, 2024 1

argh! the bloody mono command again.
Thanks!

I have a fix for this, but I haven't merged it yet.
I'll do so later today.
I plan to make a new release late next week.

from neomutt.

flatcap avatar flatcap commented on May 26, 2024

color/regex.c:314:5: runtime error: store to null pointer of type 'struct RegexColor *'

"runtime error"? in C? That's weird.

The line it refers to is adding a new color command that takes a regex, e.g. color body.

STAILQ_INSERT_TAIL(rcl, rcol, entries);

Looking at the rest of the function, I can't see how either rcl or rcol could be NULL -- they've both already been dereferenced.

If NeoMutt crashed, did your OS create a 'coredump' file?
Haven't found.

If your distro is using systemd, then you can use coredumpctl to get a coredump / debug.
e.g.

coredumpctl debug neomutt

In the debugger, you can use the command: bt to get a backtrace.


When is this happening?
Immediately on startup -- e.g. when it's reading config -- or later whilst running?

How often have you managed to trigger it?

Can you post your color config?
Especially any color commands that take a regex.

Thanks

from neomutt.

flatcap avatar flatcap commented on May 26, 2024

Colour fixed merged in f9c11d6.

from neomutt.

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.