You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 484 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Original bug ID: 484
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: James Leifer
Version: 3.02
OS: Mandrake 8
Submission from: oto.inria.fr (192.93.2.2)
There seems to be a problem with Str.regexp or Str.global_replace....
Consider the following program:
(* grbug.ml )
open Str ;;
print_string ((global_replace (regexp "x?x?") "yyy" "zzz") ^ "\n") ;;
( end of grbug.ml *)
When I build and execute it, I get a stack overflow error:
$ ocamlc -o grbug str.cma grbug.ml
$ ./grbug
Fatal error: uncaught exception Stack_overflow
-James
The text was updated successfully, but these errors were encountered: