[LLVMbugs] [Bug 16787] New: [OCaml] Several functions returns NULL and then segfault if used
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Aug 4 09:02:11 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16787
Bug ID: 16787
Summary: [OCaml] Several functions returns NULL and then
segfault if used
Product: libraries
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Support Libraries
Assignee: unassignedbugs at nondot.org
Reporter: jp.deplaix at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Many functions binded in ocaml such as « build_extractvalue » for example, can
returns NULL if the value type doesn't match with a struct or an array.
Can you please raise a comprehensive exception [1] for debugging purpose
instead of let the program dramatically segfault ?
[1]: By comprehensive exception, I mean like: exception TypeMissmatch of
(lltype * lltype) (* the first is the expected type and the second the one
mismatching *)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130804/5bf1ca6c/attachment.html>
More information about the llvm-bugs
mailing list