Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocaml Oo features produces segfaults #3576

Closed
vicuna opened this issue Apr 3, 2005 · 2 comments
Closed

ocaml Oo features produces segfaults #3576

vicuna opened this issue Apr 3, 2005 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Apr 3, 2005

Original bug ID: 3576
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Related to: #4560
Monitored by: daweil

Bug description

Full_Name:
Version: 3.08.2
OS: debian unstable
Submission from: c83-249-212-187.bredband.comhem.se (83.249.212.187)

(*

  • The following code produces a segfault for me.
  • Either in the runlevel or as bytecode or as nativecode.
  • Interestingly the existance and name of the method a_text seems to matter.
  • With some names it segfaults, and with some it doesn't.
    *)

class a =
object (self)
method m1 = object method m3 = () end
method m2 =
object
method m4 = self#m1
end
end

class b =
object (self)
inherit a
method a_text () = ()
end

let _ = (new a)#m2
let _ = (new b)#m2#m4#m3

@vicuna
Copy link
Author

vicuna commented Apr 4, 2005

Comment author: administrator

(*

  • The following code produces a segfault for me.
  • Either in the runlevel or as bytecode or as nativecode.
  • Interestingly the existance and name of the method a_text seems to matter.
  • With some names it segfaults, and with some it doesn't.
    *)

You're damn right: the method index for m1 was not correctly handled.
I have fixed this in both 3.08 and 3.09 branches.

Jacques

@vicuna
Copy link
Author

vicuna commented Apr 4, 2005

Comment author: administrator

Fixed by Jacques in 3.08.4 and 3.09 (2005-04-04)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant