El 19/8/21 a les 11:44, Luca Olivetti ha escrit:
El 19/8/21 a les 10:56, Luca Olivetti ha escrit:
El 19/8/21 a les 10:05, Arnd Bergmann ha escrit:
To confirm that this is the actual problem, can you try building the
package using '-O2 -march=armv4t' or '-O2 -march=armv5t' to
override the default 'armv5te'?
With -march=armv5t it doesn't work (same failure), I'll try with armv4t.
Nope, same result
FWIW this is the gdb session
(gdb) run
Starting program: /home/luca/dspam/dspam-3.10.1+dfsg/src/.libs/dspam
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/arm-linux-gnueabi/libthread_db.so.1".
Breakpoint 1, main (argc=1, argv=0xbefff714) at dspam.c:196
196 if (apply_defaults(&ATX)) {
(gdb) step
apply_defaults (ATX=0xbeffe758) at agent_shared.c:587
587 int apply_defaults(AGENT_CTX *ATX) {
(gdb) step
591 if (!(ATX->flags & DAF_FIXED_TR_MODE)) {
(gdb) step
592 char *v = _ds_read_attribute(agent_config, "TrainingMode");
(gdb) print agent_config
$1 = (config_t) 0x43fb98
(gdb) step
_ds_read_attribute (config=0x0, key=0x417f04 "TrainingMode") at
config_shared.c:132
132 attribute_t attr = _ds_find_attribute(config, key);
Tried again with -O0 and in the last step "config" has the correct
address (though it is different than every previous run with -O2, where
it was consistently 0x43fb98)
(gdb) run
Starting program: /home/luca/dspam/dspam-3.10.1+dfsg/src/.libs/dspam
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabi/libthread_db.so.1".
Breakpoint 1, main (argc=1, argv=0xbefff714) at dspam.c:196
step
196 if (apply_defaults(&ATX)) {
(gdb) step
apply_defaults (ATX=0xbeffe768) at agent_shared.c:587
587 int apply_defaults(AGENT_CTX *ATX) {
(gdb) step
591 if (!(ATX->flags & DAF_FIXED_TR_MODE)) {
(gdb) step
592 char *v = _ds_read_attribute(agent_config, "TrainingMode");
(gdb) print agent_config
$1 = (config_t) 0x449b98
(gdb) step
_ds_read_attribute (config=0x449b98, key=0x4229a0 "TrainingMode") at
config_shared.c:132
132 attribute_t attr = _ds_find_attribute(config, key);
Bye
--
Luca