Anomalie #7942
pas de fonctions perso eosfunc sur module 2.4
Description
sur zephir, j'ai un soucis avec mes fonctions perso dans /usr/share/creole/funcs/funcs_nantes.py
elles ne sont pas pris en compte pour un module 2.4
Erreur de lecture du dictionnaire : unknown function mig_multi_val in eosfunc
Historique
#1 Mis à jour par Daniel Dehennin il y a presque 12 ans
- Echéance mis à 18/04/2014
- Statut changé de Nouveau à En attente d'informations
- Version cible mis à Eole 2.4 Stable
- Début mis à 11/04/2014
- Distribution changé de EOLE 2.3 à EOLE 2.4
Cela fonctionne, il faut penser à redémarrer creoled pour que le nouveau code soit pris en compte, pour reproduire :
- Ajouter une fonction personelle
root@eolebase:~# cat > /usr/share/creole/funcs/test.py <<EOF # -*- coding: utf-8 -*- """Test personal function in dico """ def test_creole_func(): return u"bidule" EOF - Redémarrer
creoledpour prendre en compte les fonctions personellesroot@eolebase:~# invoke-rc.d creoled restart * Restarting Creole daemon creoled [ OK ]
- Ajouter un dictionnaire qui l’utilise
root@eolebase:~# cat > /usr/share/eole/creole/dicos/99_test.xml <<EOF <?xml version="1.0" encoding="utf-8"?> <creole> <files /> <variables> <family name='général'> <variable name='test_creole' type='string' /> </family> </variables> <constraints> <auto name='test_creole_func' target='test_creole'/> </constraints> <help /> </creole> EOF - Demander la valeur de
test_creoleroot@eolebase:~# CreoleGet test_creole bidule
#2 Mis à jour par Daniel Dehennin il y a presque 12 ans
On peut ajouter les fichiers /usr/share/creole/funcs/.py à la liste des fichiers à monitorer pour redémarrer creoled, mais cela ne prendra pas en compte les nouveaux fichiers ajoutés en cours de route.
#3 Mis à jour par Daniel Dehennin il y a presque 12 ans
- Echéance
18/04/2014supprimé - Version cible
Eole 2.4 Stablesupprimé - Distribution changé de EOLE 2.4 à EOLE 2.3
J’avais mal lu, c’est un problème zéphir et non sur le module.
#4 Mis à jour par Daniel Dehennin il y a presque 12 ans
Trouvé, sur zéphir, pour faire cohabiter creole 2.3 et creole 2.4, le code de creole 2.4 est cloné puis appelé creole3.
Le chemin des fonctions personnalisées n’est pas le même :
# chemin pour les fichiers de données
datadir = '/usr/share/creole'
# chemin pour les modules de fonctions supplémentaires
func_dir = join(datadir,'funcs_creole3')
Du coup, il faut mettre les fonctions dans /usr/share/creole/funcs_creole3.
#5 Mis à jour par Christophe Dezé il y a presque 12 ans
mkdir /usr/share/creole/funcs_creole3
======= Backtrace: =========
/lib/libc.so.6(+0x78bf6)[0x7f896af7cbf6]
/lib/libc.so.6(cfree+0x73)[0x7f896af831d3]
/usr/lib/libxml2.so.2(xmlFreeParserCtxt+0x73)[0x7f896858f393]
/usr/lib/python2.6/dist-packages/lxml/etree.so(+0x55413)[0x7f8964a87413]
/usr/lib/python2.6/dist-packages/lxml/etree.so(+0xd22d3)[0x7f8964b042d3]
/usr/bin/python(PyEval_EvalFrameEx+0xabe)[0x4a37fe]
/usr/bin/python(PyEval_EvalFrameEx+0x5a60)[0x4a87a0]
======= Memory map: ========
00400000-0061d000 r-xp 00000000 fc:00 7781 /usr/bin/python2.6
0081c000-0081d000 r--p 0021c000 fc:00 7781 /usr/bin/python2.6
0081d000-0087f000 rw-p 0021d000 fc:00 7781 /usr/bin/python2.6
0087f000-0088e000 rw-p 00000000 00:00 0
00cdf000-5c141000 rw-p 00000000 00:00 0 [heap]
7f8928000000-7f892bffa000 rw-p 00000000 00:00 0
7f892bffa000-7f892c000000 ---p 00000000 00:00 0
7f892c000000-7f892cbf0000 rw-p 00000000 00:00 0
7f892cbf0000-7f8930000000 ---p 00000000 00:00 0
7f8930000000-7f8933fdd000 rw-p 00000000 00:00 0
7f8933fdd000-7f8934000000 ---p 00000000 00:00 0
7f8938000000-7f893bfdb000 rw-p 00000000 00:00 0
7f893bfdb000-7f893c000000 ---p 00000000 00:00 0
7f8940000000-7f8943a68000 rw-p 00000000 00:00 0
7f8943a68000-7f8944000000 ---p 00000000 00:00 0
7f89461b0000-7f89461b1000 ---p 00000000 00:00 0
7f89461b1000-7f89469b1000 rw-p 00000000 00:00 0
7f89469b1000-7f89469b2000 ---p 00000000 00:00 0
7f89469b2000-7f89471b2000 rw-p 00000000 00:00 0
7f89471b2000-7f89471b3000 ---p 00000000 00:00 0
7f89471b3000-7f89479b3000 rw-p 00000000 00:00 0
7f89479b3000-7f89479b4000 ---p 00000000 00:00 0
7f89479b4000-7f89481b4000 rw-p 00000000 00:00 0
7f89481b4000-7f89481b5000 ---p 00000000 00:00 0
7f89481b5000-7f89489b5000 rw-p 00000000 00:00 0
7f89489b5000-7f89489b6000 ---p 00000000 00:00 0
7f89489b6000-7f89491b6000 rw-p 00000000 00:00 0
7f89491b6000-7f89491b7000 ---p 00000000 00:00 0
7f89491b7000-7f89499b7000 rw-p 00000000 00:00 0
7f89499b7000-7f89499b8000 ---p 00000000 00:00 0
7f89499b8000-7f894a1b8000 rw-p 00000000 00:00 0
7f894a1b8000-7f894a1b9000 ---p 00000000 00:00 0
7f894a1b9000-7f894a9b9000 rw-p 00000000 00:00 0
7f894a9b9000-7f894a9ba000 ---p 00000000 00:00 0
7f894a9ba000-7f894b1ba000 rw-p 00000000 00:00 0
7f894b1ba000-7f894b1bf000 r-xp 00000000 fc:00 7575 /lib/libnss_dns-2.11.1.so
7f894b1bf000-7f894b3be000 ---p 00005000 fc:00 7575 /lib/libnss_dns-2.11.1.so
7f894b3be000-7f894b3bf000 r--p 00004000 fc:00 7575 /lib/libnss_dns-2.11.1.so
7f894b3bf000-7f894b3c0000 rw-p 00005000 fc:00 7575 /lib/libnss_dns-2.11.1.so
7f894b3c0000-7f894b3ca000 r-xp 00000000 fc:00 7588 /lib/libnss_nis-2.11.1.so
7f894b3ca000-7f894b5c9000 ---p 0000a000 fc:00 7588 /lib/libnss_nis-2.11.1.so
7f894b5c9000-7f894b5ca000 r--p 00009000 fc:00 7588 /lib/libnss_nis-2.11.1.so
7f894b5ca000-7f894b5cb000 rw-p 0000a000 fc:00 7588 /lib/libnss_nis-2.11.1.so
7f894b5cb000-7f894b5e2000 r-xp 00000000 fc:00 7589 /lib/libnsl-2.11.1.so
7f894b5e2000-7f894b7e1000 ---p 00017000 fc:00 7589 /lib/libnsl-2.11.1.so
7f894b7e1000-7f894b7e2000 r--p 00016000 fc:00 7589 /lib/libnsl-2.11.1.so
7f894b7e2000-7f894b7e3000 rw-p 00017000 fc:00 7589 /lib/libnsl-2.11.1.so
7f894b7e3000-7f894b7e5000 rw-p 00000000 00:00 0
7f894b7e5000-7f894b7ed000 r-xp 00000000 fc:00 7590 /lib/libnss_compat-2.11.1.so
7f894b7ed000-7f894b9ec000 ---p 00008000 fc:00 7590 /lib/libnss_compat-2.11.1.so
7f894b9ec000-7f894b9ed000 r--p 00007000 fc:00 7590 /lib/libnss_compat-2.11.1.so
7f894b9ed000-7f894b9ee000 rw-p 00008000 fc:00 7590 /lib/libnss_compat-2.11.1.so
7f894b9ee000-7f894bff0000 rw-p 00000000 00:00 0
7f894bff0000-7f894bff1000 ---p 00000000 00:00 0
7f894bff1000-7f894c7f1000 rw-p 00000000 00:00 0
7f894c7f1000-7f894c7f2000 ---p 00000000 00:00 0
7f894c7f2000-7f894cff2000 rw-p 00000000 00:00 0
7f894cff2000-7f894cff3000 ---p 00000000 00:00 0
7f894cff3000-7f894d7f3000 rw-p 00000000 00:00 0
7f894d7f3000-7f894d7f4000 ---p 00000000 00:00 0
7f894d7f4000-7f894dff4000 rw-p 00000000 00:00 0
7f894dff4000-7f894dff5000 ---p 00000000 00:00 0
7f894dff5000-7f894e7f5000 rw-p 00000000 00:00 0
7f894e7f5000-7f894e7f6000 ---p 00000000 00:00 0
7f894e7f6000-7f894eff6000 rw-p 00000000 00:00 0
7f894eff6000-7f894eff7000 ---p 00000000 00:00 0
7f894eff7000-7f894f7f7000 rw-p 00000000 00:00 0
7f894f7f7000-7f894f7f8000 ---p 00000000 00:00 0
7f894f7f8000-7f894fff8000 rw-p 00000000 00:00 0
7f894fff8000-7f894fff9000 ---p 00000000 00:00 0
7f894fff9000-7f89507f9000 rw-p 00000000 00:00 0
7f89507f9000-7f89507fa000 ---p 00000000 00:00 0
7f89507fa000-7f8950ffa000 rw-p 00000000 00:00 0
7f8950ffa000-7f8950ffb000 ---p 00000000 00:00 0
7f8950ffb000-7f89517fb000 rw-p 00000000 00:00 0
7f89517fb000-7f89517fc000 ---p 00000000 00:00 0
7f89517fc000-7f8951ffc000 rw-p 00000000 00:00 0
7f8951ffc000-7f8951ffd000 ---p 00000000 00:00 0
7f8951ffd000-7f89527fd000 rw-p 00000000 00:00 0
7f89527fd000-7f89527fe000 ---p 00000000 00:00 0
7f89527fe000-7f8952ffe000 rw-p 00000000 00:00 0
7f8952ffe000-7f8952fff000 ---p 00000000 00:00 0
7f8952fff000-7f89537ff000 rw-p 00000000 00:00 0
7f89537ff000-7f8953800000 ---p 00000000 00:00 0
7f8953800000-7f8954000000 rw-p 00000000 00:00 0
7f8954000000-7f895559a000 rw-p 00000000 00:00 0
7f895559a000-7f8958000000 ---p 00000000 00:00 0
7f89581a1000-7f89581a2000 ---p 00000000 00:00 0
7f89581a2000-7f89589a2000 rw-p 00000000 00:00 0
7f89589a2000-7f89589a3000 ---p 00000000 00:00 0
7f89589a3000-7f89591a3000 rw-p 00000000 00:00 0
7f89591a3000-7f89591a4000 ---p 00000000 00:00 0
7f89591a4000-7f89599a4000 rw-p 00000000 00:00 0
7f89599a4000-7f89599a5000 ---p 00000000 00:00 0
7f89599a5000-7f895a1a5000 rw-p 00000000 00:00 0
7f895a1a5000-7f895a1a6000 ---p 00000000 00:00 0
7f895a1a6000-7f895a9a6000 rw-p 00000000 00:00 0
7f895a9a6000-7f895a9a7000 ---p 00000000 00:00 0
7f895a9a7000-7f895b1a7000 rw-p 00000000 00:00 0
7f895b1a7000-7f895b1a8000 ---p 00000000 00:00 0
7f895b1a8000-7f895b9a8000 rw-p 00000000 00:00 0
7f895b9a8000-7f895b9a9000 ---p 00000000 00:00 0
7f895b9a9000-7f895c1a9000 rw-p 00000000 00:00 0
7f895c1a9000-7f895c1aa000 ---p 00000000 00:00 0
7f895c1aa000-7f895c9aa000 rw-p 00000000 00:00 0
7f895c9aa000-7f895c9ab000 ---p 00000000 00:00 0
7f895c9ab000-7f895d1ab000 rw-p 00000000 00:00 0
7f895d1ab000-7f895d1ac000 ---p 00000000 00:00 0
7f895d1ac000-7f895d9ac000 rw-p 00000000 00:00 0
7f895d9ac000-7f895d9ad000 ---p 00000000 00:00 0
7f895d9ad000-7f895e1ad000 rw-p 00000000 00:00 0
7f895e1ad000-7f895e1ae000 ---p 00000000 00:00 0
7f895e1ae000-7f895e9ae000 rw-p 00000000 00:00 0
7f895e9ae000-7f895e9af000 ---p 00000000 00:00 0
/etc/init.d/zephir restart
/etc/init.d/zephir_web restart
root@zephir:/usr/share/creole/funcs# cp funcs_nantes.py ../funcs_creole3/
root@zephir:/usr/share/creole/funcs# * glibc detected /usr/bin/python: double free or corruption (fasttop): 0x00007f892cbd8770 **#6 Mis à jour par Joël Cuissinat il y a plus de 10 ans
- Projet changé de Distribution EOLE à creole
#7 Mis à jour par Joël Cuissinat il y a plus de 8 ans
- Statut changé de En attente d'informations à Ne sera pas résolu