| Anonymous | Login | Signup for a new account | 2013-05-19 06:50 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||
| 0005176 | OCaml | OCaml general | public | 2010-11-07 13:32 | 2012-02-03 21:39 | |||
| Reporter | Christophe Troestler | |||||||
| Assigned To | doligez | |||||||
| Priority | normal | Severity | minor | Reproducibility | always | |||
| Status | closed | Resolution | fixed | |||||
| Platform | OS | OS Version | ||||||
| Product Version | 3.13.0+dev | |||||||
| Target Version | Fixed in Version | 3.13.0+dev | ||||||
| Summary | 0005176: Caml-mode: Stack overflow in regexp matcher | |||||||
| Description | Compiling class gen = object(self) inherit Odoc_html.html end let () = Odoc_args.set_doc_generator (Some(new gen :> Odoc_args.doc_generator)) with -annot and asking for a type in Emacs with caml-mode reports the error “Stack overflow in regexp matcher”. | |||||||
| Tags | caml-mode | |||||||
| Attached Files | ||||||||
Notes |
|
|
(0005707) Christophe Troestler (reporter) 2010-11-12 23:06 |
The simple attached patch fixes the problem (but there may be a better fix). |
|
(0005918) doligez (manager) 2011-05-20 15:48 |
I can't reproduce the problem with 3.12.0, and your code doesn't compile with 3.13.* because of changes in ocamldoc. I really would like to see what kind of .annot file triggers the problem. |
|
(0005925) Christophe Troestler (reporter) 2011-05-21 15:25 |
I uploaded a file a.ml and the corresponding a.annot (produced with 3.12). Put the cursor on "self" and press C-c C-t to trigger the bug. |
|
(0006876) doligez (manager) 2012-02-03 21:39 |
I've simplified the regexp further, and it now works on a 4000-line type (20 times your example), but fails on 8000 lines. Emacs regexp optimization is a bit mysterious. (Pretty much) fixed in trunk [3.13.0] (commit 12119). |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2010-11-07 13:32 | Christophe Troestler | New Issue | |
| 2010-11-07 13:33 | Christophe Troestler | Tag Attached: caml-mode | |
| 2010-11-12 23:05 | Christophe Troestler | File Added: stack_overflow.patch | |
| 2010-11-12 23:06 | Christophe Troestler | Note Added: 0005707 | |
| 2011-05-20 15:48 | doligez | Note Added: 0005918 | |
| 2011-05-20 15:48 | doligez | Assigned To | => doligez |
| 2011-05-20 15:48 | doligez | Status | new => feedback |
| 2011-05-21 14:39 | Christophe Troestler | File Added: a.ml | |
| 2011-05-21 14:39 | Christophe Troestler | File Added: a.annot | |
| 2011-05-21 15:25 | Christophe Troestler | Note Added: 0005925 | |
| 2012-02-03 17:55 | doligez | Status | feedback => confirmed |
| 2012-02-03 21:39 | doligez | Note Added: 0006876 | |
| 2012-02-03 21:39 | doligez | Status | confirmed => closed |
| 2012-02-03 21:39 | doligez | Resolution | open => fixed |
| 2012-02-03 21:39 | doligez | Fixed in Version | => 3.13.0+dev |
| Copyright © 2000 - 2011 MantisBT Group |