<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/ocaml.git/testsuite/tests/backtrace/backtrace_dynlink.flambda.reference, branch trunk</title>
<subtitle>github.com: ocaml/ocaml
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ocaml.git/'/>
<entry>
<title>Improve legibility of dynamic linking error messages</title>
<updated>2023-04-28T16:06:02+00:00</updated>
<author>
<name>Samuel Hym</name>
<email>samuel.hym@rustyne.lautre.net</email>
</author>
<published>2023-04-28T08:53:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ocaml.git/commit/?id=f4fe66418d96a213bebc64b31a0f3657cc52509a'/>
<id>f4fe66418d96a213bebc64b31a0f3657cc52509a</id>
<content type='text'>
Avoid wrapping a Dynlink `Cannot_open_dynamic_library` error into
another `Cannot_open_dynamic_library` error:
- rewrite the platform-specific (bytecode and native) `load`
  implementations to ensure they raise only `DT.Error` exceptions, by
  always catching other exceptions and wrapping them into
  `Cannot_open_dynamic_library` errors,
- remove the systematic wrapping of exceptions in `Dynlink_common`.

Adopt `%s` rather than `%S` to display the inner exceptions in the
exception printer for `DT.Error (Cannot_open_dynamic_library _)` to
avoid double escaping

In particular, trying to link a non-existent file in the native
implementation gives the hard-to-parse message:

  Fatal error: exception Dynlink.Error (Dynlink.Cannot_open_dll "Dynlink.Error (Dynlink.Cannot_open_dll \"Failure(\\\"...: cannot open shared object file: No such file or directory\\\")\")")

This patch turns this message into:

  Fatal error: exception Dynlink.Error (Dynlink.Cannot_open_dll Failure("...: cannot open shared object file: No such file or directory"))
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Avoid wrapping a Dynlink `Cannot_open_dynamic_library` error into
another `Cannot_open_dynamic_library` error:
- rewrite the platform-specific (bytecode and native) `load`
  implementations to ensure they raise only `DT.Error` exceptions, by
  always catching other exceptions and wrapping them into
  `Cannot_open_dynamic_library` errors,
- remove the systematic wrapping of exceptions in `Dynlink_common`.

Adopt `%s` rather than `%S` to display the inner exceptions in the
exception printer for `DT.Error (Cannot_open_dynamic_library _)` to
avoid double escaping

In particular, trying to link a non-existent file in the native
implementation gives the hard-to-parse message:

  Fatal error: exception Dynlink.Error (Dynlink.Cannot_open_dll "Dynlink.Error (Dynlink.Cannot_open_dll \"Failure(\\\"...: cannot open shared object file: No such file or directory\\\")\")")

This patch turns this message into:

  Fatal error: exception Dynlink.Error (Dynlink.Cannot_open_dll Failure("...: cannot open shared object file: No such file or directory"))
</pre>
</div>
</content>
</entry>
<entry>
<title>Restrict local function optimisation (#11383)</title>
<updated>2023-03-13T10:26:45+00:00</updated>
<author>
<name>Vincent Laviron</name>
<email>vincent.laviron@gmail.com</email>
</author>
<published>2023-03-13T10:26:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ocaml.git/commit/?id=e25a68358c98275e69013e6ad013a01e659b4b5e'/>
<id>e25a68358c98275e69013e6ad013a01e659b4b5e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Load frametables of dynlink'd modules in batch (#11935)</title>
<updated>2023-01-27T21:04:52+00:00</updated>
<author>
<name>Stephen Dolan</name>
<email>sdolan@janestreet.com</email>
</author>
<published>2023-01-27T21:04:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ocaml.git/commit/?id=33699c86256c95dba5d0ff94f79c62a417ce8fd9'/>
<id>33699c86256c95dba5d0ff94f79c62a417ce8fd9</id>
<content type='text'>

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

</pre>
</div>
</content>
</entry>
<entry>
<title>Update flambda reference for for backtrace_dynlink</title>
<updated>2022-07-22T07:40:45+00:00</updated>
<author>
<name>David Allsopp</name>
<email>david.allsopp@metastack.com</email>
</author>
<published>2022-07-22T07:40:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ocaml.git/commit/?id=4cf63f05938fe2b7fe030c9eeac08ba359057b21'/>
<id>4cf63f05938fe2b7fe030c9eeac08ba359057b21</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>testsuite: update backtrace_dynlink.ml test in flambda mode</title>
<updated>2022-07-06T15:09:31+00:00</updated>
<author>
<name>Florian Angeletti</name>
<email>florian.angeletti@inria.fr</email>
</author>
<published>2022-07-06T15:09:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ocaml.git/commit/?id=8acd34e6c7c0b3204acbd126ae0a99d8aa0f8953'/>
<id>8acd34e6c7c0b3204acbd126ae0a99d8aa0f8953</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>review: more explicit lock interface</title>
<updated>2022-02-25T09:52:36+00:00</updated>
<author>
<name>Florian Angeletti</name>
<email>florian.angeletti@inria.fr</email>
</author>
<published>2022-02-24T16:59:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ocaml.git/commit/?id=80a686363e161216912b23e35fcfb2abb76948b8'/>
<id>80a686363e161216912b23e35fcfb2abb76948b8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Dynlink: use a global lock</title>
<updated>2022-02-25T09:52:36+00:00</updated>
<author>
<name>octachron</name>
<email>octa@polychoron.fr</email>
</author>
<published>2022-02-09T17:00:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ocaml.git/commit/?id=5d7690f79c76b9e875cd511e7c3607778cb11d32'/>
<id>5d7690f79c76b9e875cd511e7c3607778cb11d32</id>
<content type='text'>
Allow to dynlink outside of the main domains,
but with a global lock
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow to dynlink outside of the main domains,
but with a global lock
</pre>
</div>
</content>
</entry>
<entry>
<title>Add Flambda versions of backtrace tests</title>
<updated>2022-01-15T19:14:28+00:00</updated>
<author>
<name>Vincent Laviron</name>
<email>vincent.laviron@gmail.com</email>
</author>
<published>2022-01-15T19:14:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ocaml.git/commit/?id=a6a9a9b3ea739475f03950c2675004b4eade32e3'/>
<id>a6a9a9b3ea739475f03950c2675004b4eade32e3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
