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

seg fault #3892

Closed
vicuna opened this issue Nov 26, 2005 · 1 comment
Closed

seg fault #3892

vicuna opened this issue Nov 26, 2005 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 26, 2005

Original bug ID: 3892
Reporter: anonymous
Status: closed (set by @damiendoligez on 2005-11-28T09:40:47Z)
Resolution: not a bug
Priority: normal
Severity: minor
Version: 3.09.0
Category: ~DO NOT USE (was: OCaml general)

Bug description

let size x = Obj.size (Obj.repr x);;

val size : 'a -> int =

size ();;

Segmentation fault

size 1;;

Segmentation fault

size [];;

Segmentation fault

size 'a';;

Segmentation fault

size [||];;

  • : int = 0

size [0];;

  • : int = 2

Pourquoi tant de Segmentation fault ??

@vicuna
Copy link
Author

vicuna commented Nov 28, 2005

Comment author: @damiendoligez

A partir du moment ou on utilise Obj sans savoir ce qu'on fait, c'est normal
d'obtenir Segmentation Fault.

En l'occurrence, Obj.size ne s'applique qu'a des valeurs pour lesquelles
Obj.is_block est vrai.

-- Damien

@vicuna vicuna closed this as completed Nov 28, 2005
@vicuna vicuna added the bug label Mar 19, 2019
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