Ebook-edit crashes with specific EPUB

Bug #2021417 reported by leastcommonancestor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Invalid
Undecided
Unassigned

Bug Description

Ebook-edit crashes with SIGSEGV reproducibly in a very specific situation.
How to reproduce:
- ebook-edit test-crash.epub
- Position cursor after </a>-tag
- Enter trigger text for snippet (used spnipet e.g.: cc → ' class="$1"').
- Press Ctrl-J

I have the test file attached.
I could also send a core dump.

System is Ubuntu 22.04.
Calibre 6.18.

BTW, a feature allowing to save automatcally a working copy of an edited file every x minutes would be helpful.

Greetings
LCA

Revision history for this message
leastcommonancestor (leastcommonancestor) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote :

Does not crash for me with those steps though I use the builtin <c
snippet not cc which I assume is a custom snippet you created.

Revision history for this message
Kovid Goyal (kovid) wrote :

no followup

Changed in calibre:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.