Hallo Ronny,
vielen Dank für den Backtrace! Damit ist für uns klar, dass das ein
Programmfehler in aqbanking war. Ist nun im CVS korrigiert ... entweder
du wartest nun auf das nächste aqbanking-release, oder du änderst in
aqbanking die Datei src/libs/aqbanking/country.c gemäß untenstehendem
diff und compilierst aqbanking neu.
@Martin: Beim durchiterieren durch die ab_country_list nimmst du ein
NULL-Element ja als Abbruchkriterium. So ein NULL-Element muss man aber
explizit hinzufügen, sonst kann an dieser Stelle alles mögliche stehen,
wie bei Ronny auch geschehen. Das hat wohl nur zufälligerweise bei dir
und mir immer so geklappt, weil wahrscheinlich die debugging-flags dort
für NULLs gesorgt hatten. Also in C muss man bei solchen Listen immer
ausdrücklich eine "0" ans Ende hinschreiben, aber wahrscheinlich
wusstest du das sicher schon :-) Alternativ zum "{0,0,0,0,0}" könnten
wir auch schreiben "0", aber dann muß die Abfrage anstelle "if
(c->name)" jeweils "if (*c)" lauten.
Gruß
Christian
--- src/libs/aqbanking/country.c 1 Aug 2005 12:17:22 -0000 1.5
+++ src/libs/aqbanking/country.c 21 Sep 2005 07:41:52 -0000
@@ -237,7 +237,8 @@
{ I18N_NOOP("Western Sahara"), "EH", 732, I18N_NOOP("Moroccan Dirham
and Mauritanian Ouguiya"), "MAD" },
{ I18N_NOOP("Yugoslavia"), "YU", 0, I18N_NOOP("New Dinar"), "YUD" },
{ I18N_NOOP("Zambia"), "ZM", 894, I18N_NOOP("Zambian Kwacha"), "ZMK" },
-{ I18N_NOOP("Zimbabwe"), "ZW", 716, I18N_NOOP("Zimbabwe Dollar"), "ZWD" }
+{ I18N_NOOP("Zimbabwe"), "ZW", 716, I18N_NOOP("Zimbabwe Dollar"), "ZWD" },
+{ 0, 0, 0, 0, 0 }
};
Ronny Steiner schrieb:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1089905088 (LWP 5343)]
0x40a439cb in strlen () from /lib/tls/libc.so.6
Current language: auto; currently c
(gdb) bt
#0 0x40a439cb in strlen () from /lib/tls/libc.so.6
#1 0x400c1fb0 in GWEN_Text__cmpSegment (w=0x1 <Address 0x1 out of bounds>, wpos=0xbfffe560,
p=0x81c8dd1 "*", ppos=0xbfffe564, sensecase=0, matches=0xbfffe568) at text.c:869
#2 0x400c21ca in GWEN_Text_ComparePattern (w=0x1 <Address 0x1 out of bounds>, p=0x81c8dd1 "*",
sensecase=0) at text.c:954
#3 0x408140c9 in AB_Country_ListByName (name=0x81c8dd1 "*") at country.c:343
#4 0x408133a1 in AB_Banking_ListCountriesByName (ab=0x82d82e0, name=0x81c8dd1
"*") at banking.c:5742
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel