| Anonymous | Login | Signup for a new account | 2013-05-21 10:36 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0004173 | OCaml | OCaml otherlibs | public | 2006-11-28 12:45 | 2012-09-22 17:49 | ||||||
| Reporter | matt | ||||||||||
| Assigned To | |||||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||||
| Status | acknowledged | Resolution | open | ||||||||
| Platform | OS | OS Version | |||||||||
| Product Version | 3.09.2 | ||||||||||
| Target Version | 4.01.0+dev | Fixed in Version | |||||||||
| Summary | 0004173: Bad memory cleanup of DLL using Thread module | ||||||||||
| Description | English readers: this post describe the problem: http://caml.inria.fr/pub/ml-archives/caml-list/2006/11/7fbe6817eb19bb892ca50f18ad611533.en.html [^] Si une DLL créée avec OCaml - fait appel au module Thread - et que l'initialisation a été effectuée (caml_startup) un message d'erreur Windows apparait APRÈS le déchargement de la DLL. Ce message apparait systématiquement lors de l'arrêt d'un de nos logiciels. Je ne suis pas parvenu à reproduire ce message avec un programme de test C : c'est pourquoi je joins un programme LabVIEW qui déclenche le message d'erreur de façon reproductible. Mais j'ai pu observer le phénomène dans un eshell (emacs) après avoir exécuté un petit programme de test ecrit en C se contentant de faire appel à caml_startup, lors de l'exécution d'une commande. Je joins un fichier zip : Archive: demo.zip Length Date Time Name -------- ---- ---- ---- 0 11-28-06 12:37 demo/ 34 11-16-06 16:57 demo/bug_demo.def 277 11-17-06 08:34 demo/bug_demo_st.c 52968 11-28-06 12:09 demo/demo.exe <- programme de test LabVIEW 48 11-17-06 08:25 demo/demo.ml 455 11-17-06 09:44 demo/demo_compil.sh <- génération de la DLL (MinGW) -------- ------- 53782 6 files L'exécution du programme de test LabVIEW nécessite l'installation préalable du runtime LabVIEW de National Instrument, disponible ici : ftp://ftp.ni.com/support/labview/windows/runtime/7.1/7.1.0/French/LVRunTimeEng.exe [^] | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
Notes |
|
|
(0003879) matt (reporter) 2006-12-14 18:39 |
The new uploaded C file is a little C program that trigs the problem: no need to use LabVIEW. It was tested under cygwin (makes use or dlopen). It does core dump only if demo_bug.dll makes use of Thread. test2.c: 1/ Loads the DLL, then unloads 2/ Loads the DLL, init (calls caml_startup), then unloads 3/ Loads the Dll -> CORE DUMP when init is called |
|
(0007635) xleroy (administrator) 2012-07-04 19:56 |
I wonder whether this issue is still there after the changes in otherlibs/systhreads performed in Spring 2010 (commit 10220 in particular). Can anyone confirm or infirm? |
|
(0007649) matt (reporter) 2012-07-06 20:38 |
I reproduced the problem this evening, after I: - installed ocaml using Jonathan Protzenko's 4.00.0-beta2 installer on an fresh XP virtual machine - compiled http://code.google.com/p/dlfcn-win32/ [^] in order to have dlfcn with the mingw cross compiler, in order for my test2.c test program to work. But I really don't know if this bug is really important. At least not for me. Salutations. |
|
(0007708) frisch (developer) 2012-07-11 13:52 |
This bug is not new, and nobody seems to be strongly impacted by it. I suggest to remove it from the 4.00 target version. |
|
(0007861) xleroy (administrator) 2012-08-02 08:48 |
By the same reasoning, I changed the target from 4.00.1 to 4.01 |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2006-11-28 12:45 | matt | New Issue | |
| 2006-11-28 12:45 | matt | File Added: demo.zip | |
| 2006-12-14 18:34 | matt | File Added: test2.c | |
| 2006-12-14 18:39 | matt | Note Added: 0003879 | |
| 2007-11-10 13:30 | xleroy | Status | new => acknowledged |
| 2012-07-04 17:16 | doligez | Target Version | => 4.00.0+dev |
| 2012-07-04 19:56 | xleroy | Note Added: 0007635 | |
| 2012-07-06 20:38 | matt | Note Added: 0007649 | |
| 2012-07-11 13:52 | frisch | Note Added: 0007708 | |
| 2012-07-12 13:56 | doligez | Target Version | 4.00.0+dev => 4.01.0+dev |
| 2012-07-27 12:50 | frisch | Category | OCaml general => OCaml otherlibs |
| 2012-07-31 13:37 | doligez | Target Version | 4.01.0+dev => 4.00.1+dev |
| 2012-08-02 08:48 | xleroy | Note Added: 0007861 | |
| 2012-08-02 08:48 | xleroy | Target Version | 4.00.1+dev => 4.01.0+dev |
| Copyright © 2000 - 2011 MantisBT Group |