[Allegro] (linux)avanti phpac: kleines problem bei d-khtm.apr

Thomas Fischer fischer at sub.uni-goettingen.de
Mo Jul 21 18:19:48 CEST 2014


Hallo Herr Lehmann,

gibt es einen Grund, warum Sie an dieser Stelle kein Unterprogramm mit Schleife einsetzen?
Ich mache so etwas in der Art

#31k e0 >W

---

#(W  			Wiederholung für Mehrfachkategorien
#cc =fk
#-w
#ufk e";" y1 C p{'<a href="http://allegronet.de/page.php?reg=KET&st='} P{'" target="_blank">'}
#ufk e";" y1 P{'</a>'}
#ufk +w b'; ' =fk  		Wenn noch mehr Einträge: 1. Teil abschneiden, weiter bei -w
#ufk dfk e0  		Variable <fk> löschen
#)W

wobei ich typischerweise auch Prä- und Suffix in Variablen oder Zwischenteile (die ja seit einiger Zeit dynamisch definiert werden können) auslagern würde.
(Alles allerdings nicht mit Ihrer Situation getestet!)

Hilft das (unabhängig von der Avantifrage) weiter?

Mit freundlichen Grüßen
Thomas Fischer


Am 21.07.2014 um 16:42 schrieb Klaus Lehmann:

> Guten Tag Herr Eversberg,
> 
> 
> mir scheint, ich habe es etwas übertrieben... 
> sie -die datei- ist zu voll gefüllt mit konstruktionen wie dieser:
> 
> #31k e";" y1 C p{'<a href="http://allegronet.de/page.php?reg=KET&st='} P{'" target="_blank">'}
> #31k e";" y1 P{'</a>'}
> #31k b";" e";" y1 C p{'* <a href="http://allegronet.de/page.php?reg=KET&st='} P{'" target="_blank">'}
> #31k b";" e";" y1 P{'</a>'}
> #31k b";" b";" e";" y1 C p{'* <a href="http://allegronet.de/page.php?reg=KET&st='} P{'" target="_blank">'}
> #31k b";" b";" e";" y1 P{'</a>'}
> #31k b";" b";" b";" e";" y1 C p{'* <a href="http://allegronet.de/page.php?reg=KET&st='} P{'" target="_blank">'}
> #31k b";" b";" b";" e";" y1 P{'</a>'}
> #31k b";" b";" b";" b";" e";" y1 C p{'* <a href="http://allegronet.de/page.php?reg=KET&st='} P{'" target="_blank">'}
> #31k b";" b";" b";" b";" e";" y1 P{'</a>'}
> #31k b";" b";" b";" b";" b";" e";" y1 C p{'* <a href="http://allegronet.de/page.php?reg=KET&st='} P{'" target="_blank">'}
> #31k b";" b";" b";" b";" b";" e";" y1 P{'</a>'}
> #31k b";" b";" b";" b";" b";" b";" e";" y1 C p{'* <a href="http://allegronet.de/page.php?reg=KET&st='} P{'" target="_blank">'}
> #31k b";" b";" b";" b";" b";" b";" e";" y1 P{'</a>'}
> #31k b";" b";" b";" b";" b";" b";" b";" e";" y1 C p{'* <a href="http://allegronet.de/page.php?reg=KET&st='} P{'" target="_blank">'}
> #31k b";" b";" b";" b";" b";" b";" b";" e";" y1 P{'</a>'}
> #31k b";" b";" b";" b";" b";" b";" b";" b";" e";" y1 C p{'* <a href="http://allegronet.de/page.php?reg=KET&st='} P{'" target="_blank">'}
> #31k b";" b";" b";" b";" b";" b";" b";" b";" e";" y1 P{'</a>'}
> #31k b";" b";" b";" b";" b";" b";" b";" b";" b";" e";" y1 C p{'* <a href="http://allegronet.de/page.php?reg=KET&st='} P{'" target="_blank">'}
> #31k b";" b";" b";" b";" b";" b";" b";" b";" b";" e";" y1 P{'</a>'}
> 
> das ganze wird auch noch dutzendmal wiederholt ;-)
> 
> 
> 
> 
> irgendwann sagte mir der avanti zu oft in der logdatei, sowas wie:
> 
> [2014-07-21 16:00:34] <conn 2518> opened from host 127.0.0.1
> [2014-07-21 16:00:34] Database: @ DB=cat ID=master
> [2014-07-21 16:00:34] <conn 2518> setting cpu time rlimit to 120
> [2014-07-21 16:00:34] <conn 2518> slave 2 starting '/usr/local/avanti/bin/./acon'
> [2014-07-21 16:00:34] <conn 2518> Directory for DB=cat is /home/allegronet.de/data
> [2014-07-21 16:00:34] <conn 2518> Database : cat ; User : master ; Access : 3
> [2014-07-21 16:00:34] <conn 2518>
> [2014-07-21 16:00:34] <conn 2518> *** glibc detected *** /usr/local/avanti/bin/./acon: double free or corruption (out): 0x08c99b68 ***
> [2014-07-21 16:00:34] <conn 2518> ======= Backtrace: =========
> [2014-07-21 16:00:34] <conn 2518> [0x810f009]
> [2014-07-21 16:00:34] <conn 2518> [0x8113447]
> [2014-07-21 16:00:34] <conn 2518> [0x81051e3]
> [2014-07-21 16:00:34] end job
> [2014-07-21 16:00:34] <conn 2518> [0x8075084]
> [2014-07-21 16:00:34] <conn 2518> [0x8076f39]
> [2014-07-21 16:00:34] <conn 2518> [0x805a0f5]
> [2014-07-21 16:00:34] <conn 2518> [0x804a65c]
> [2014-07-21 16:00:34] <conn 2518> [0x804ab80]
> [2014-07-21 16:00:34] <conn 2518> [0x805e943]
> [2014-07-21 16:00:34] <conn 2518> [0x80e9d3e]
> [2014-07-21 16:00:34] <conn 2518> [0x80481a1]
> [2014-07-21 16:00:34] <conn 2518> ======= Memory map: ========
> [2014-07-21 16:00:34] <conn 2518> 08048000-0819c000 r-xp 00000000 09:01 8505131                            /usr/local/avanti/bin/acon
> [2014-07-21 16:00:34] <conn 2518> 0819d000-0819f000 rw-p 00154000 09:01 8505131                            /usr/local/avanti/bin/acon
> [2014-07-21 16:00:34] <conn 2518> 0819f000-08ccd000 rw-p 00000000 00:00 0                                  [heap]
> [2014-07-21 16:00:34] <conn 2518> f7500000-f7525000 rw-p 00000000 00:00 0
> [2014-07-21 16:00:34] <conn 2518> f7525000-f7600000 ---p 00000000 00:00 0
> [2014-07-21 16:00:34] <conn 2518> f761f000-f7791000 rw-p 00000000 00:00 0
> [2014-07-21 16:00:34] <conn 2518> ffc42000-ffc63000 rw-p 00000000 00:00 0                                  [stack]
> [2014-07-21 16:00:34] <conn 2518> ffffe000-fffff000 r-xp 00000000 00:00 0                                  [vdso]
> [2014-07-21 16:00:34] <conn 2518>
> [2014-07-21 16:00:34] <conn 2518> child exited with status 6
> [2014-07-21 16:00:34] <conn 2518> JOB DONE
> [2014-07-21 16:00:34] <conn 2518> slave finished (status 6)                                                                                          
> 
> es hat ne weile gedauert, bis ich darauf kam, daß die obige .apr daran schuld ist!
> 
> 
> Meine Frage:
> ============
> wie hoch ist die anzahl der b/e/p-befehle, die erlaubt ist?
> 
> kann ich überhaupt so fragen?
> an der dateigröße der apr-datei kann man bestimmt nicht messen.... ;-)
> 
> 
> in der cfg-datei sind ja ein paar schalter, an denen zu drehen hat 
> aber nichts genutzt hat:
> mr500  
> md2000 
> mk4000 
> mK48000
> mb1000 
> mB30000
> mP6000 
> mX64000
> 
> in der avanti.conf dürfte es keinen schalter dazu geben....
> 
> 
> danke und gruß
> ihr klaus lehmann
> 
> 
> 
> 
> -- 
> Mit freundlichen Grüßen,
> Ihr Klaus Lehmann
> http://allegronet.de * eMail: allegronet at t-online.de * phone: 03528-452 807(fax 809) * mobil: 0171-953 7843
> allegronet.de * Klaus Lehmann * D-01454 Radeberg * Bahnhofstr. 1
> zuständiges Finanzamt: FA Hoyerswerda, zuständige Kammer: IHK Dresden
> zuständige Aufsichtsbehörde: Gewerbeamt Radeberg, USt-IdNr: DE247550760
> * Software für zufriedene Bibliothekare: 1000x bewaehrt und ergiebig
> * Bereits 4x allegro-utf8. Buchen Sie die allegro-Roadshow
> * Yes we can. Only with allegro. Yes we do. Always with allegro.
> * Internetkataloge & WebHosting für Allegro-C & Web 2.0 with VuFind
> * 2011: Sponsor der Peter-Sodann-Bibliothek (Staucha)
> * 2012: mit allegro-utf8 V3 und allegro-vufind auf der IFLA in Helsinki
> 
> _______________________________________________
> Allegro mailing list
> Allegro at biblio.tu-bs.de
> http://sunny5.biblio.etc.tu-bs.de/mailman/listinfo/allegro




Mehr Informationen über die Mailingliste Allegro