fuite mémoire dans la fonction explore_state_dutch (Polylex)

39 views
Skip to first unread message

Xavier Richez

unread,
Sep 11, 2014, 12:34:44 PM9/11/14
to unitex-...@googlegroups.com
Bonjour,

La fonction main_Polylex utilise analyse_dutch_unknown_words dans le cas d'un traitement en néerlandais.

On a la pile d'appel suivante :
main_Polylex (Polylex.cpp)
  |-> analyse_dutch_unknown_words (DutchCompounds.cpp)
    |-> analyse_dutch_word
       |-> explore_state_dutch


Dans la boucle while (l!=NULL) de la fonction
explore_state_dutch, on alloue une structure temporaire :
struct dela_entry* tmp_entry=tokenize_DELAF_line(entry->str,1);

Mais a priori, cette structure temporaire n'est jamais libérée. Il faudrait rajouter ceci à la fin de la boucle :
free_dela_entry(tmp_entry);

Et voilà :)

Denis Maurel

unread,
Sep 11, 2014, 4:21:51 PM9/11/14
to Xavier Richez, Gramlab Unitex


Merci Xavier

Qui prend la main pour faire cela?


Cordialement,

Denis Maurel

____________________________________
Professeur Denis Maurel
Université François Rabelais Tours

Recherche: bureau 215
LI (Laboratoire d'Informatique)
EPU-DI
64 avenue Jean-Portalis
37200 Tours
France
Tel. (33) 2.47.36.14.35
Telc. (33) 2.47.36.14.22

Enseignement:
Responsable de la licence Matic, bureau 3200
IUT, Département TC
29 rue du Pont-Volant
37082 Tours cedex 02
France
Tel. 02.47.36.75.50
Telc. 02.47.36.76.23
Secretariat: 02.47.36.76.30

mailto:denis....@univ-tours.fr

http://www.univ-tours.fr/maurel

http://www.li.univ-tours.fr
http://tln.li.univ-tours.fr/

http://international.univ-tours.fr/offre-de-formation/licence-professionnelle-commerce-specialite-marketing-et-technologies-de-l-information-et-de-la-communication-matic--264012.kjsp?RH=ACCUEIL_FR


--
You received this message because you are subscribed to the Google Groups "Unitex-GramLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unitex-gramla...@googlegroups.com.
To post to this group, send email to unitex-...@googlegroups.com.
Visit this group at http://groups.google.com/group/unitex-gramlab.
To view this discussion on the web visit https://groups.google.com/d/msgid/unitex-gramlab/4a904065-0bfe-4788-a304-fbddf1d449d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gilles Vollant

unread,
Oct 20, 2014, 2:46:25 AM10/20/14
to unitex-...@googlegroups.com
Pouvez vous construire un log ULP qui reproduit le problème?

Gilles Olivier Vollant

unread,
Oct 20, 2014, 3:05:31 AM10/20/14
to unitex-...@googlegroups.com
J'ai ajouté un free_dela_entry avec la rev 3672

--
You received this message because you are subscribed to the Google Groups "Unitex-GramLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unitex-gramla...@googlegroups.com.
To post to this group, send email to unitex-...@googlegroups.com.
Visit this group at http://groups.google.com/group/unitex-gramlab.

Laurent Kevers

unread,
Oct 21, 2014, 6:12:18 AM10/21/14
to unitex-...@googlegroups.com
Bonjour,

Voici le log ULP. Je l'ai généré sur ma machine Windows sur laquelle tourne Unitex 3.1beta du 5 décembre 2013 (non modifié).
Le problème de fuite mémoire, et ensuite de plantage sur les mots longs (cf. l'autre message), avait été originellement obtenu sur une machine Linux (cette version a reçu le correctif qui a ensuite été proposé sur le forum pour la fuite mémoire, mais rencontre toujours le problème des mots longs).
N'hésitez pas à me relancer s'il vous vaut d'autres infos.

Merci !

Laurent
unitex_log_00000001.ulp
Reply all
Reply to author
Forward
0 new messages