Hi all, I have cross-compiled net-snmp 5.7.1 for a custom port of Linux 2.6.37 on an armv5tejl core (AM1808). I have encountered some alignment traps in syslog after MIB-walking.
<snip> daemon.info snmpd[1135]: NET-SNMP version 5.7.1 user.warn kernel: [ 172.182181] Alignment trap: snmpd (1135) PC=0x000d3934 Instr=0xe1c4c0b4 Address=0xbeb48569 FSR 0x801 user.warn kernel: [ 172.192688] Alignment trap: snmpd (1135) PC=0x000d3944 Instr=0xe58e0039 Address=0xbeb48571 FSR 0x813 user.warn kernel: [ 172.203176] Alignment trap: snmpd (1135) PC=0x000d3950 Instr=0xe1c4c0b6 Address=0xbeb4856b FSR 0x813 user.warn kernel: [ 172.213656] Alignment trap: snmpd (1135) PC=0x000d395c Instr=0xe58e6035 Address=0xbeb4856d FSR 0x801 user.warn kernel: [ 172.224144] Alignment trap: snmpd (1135) PC=0x000d3960 Instr=0xe58e502d Address=0xbeb48565 FSR 0x813 </snip> According to objdump, most of the traps seem to be triggered by an unaligned access to stack memory in defaultrouter_linux.c:static int _load(netsnmp_container *container). Has anyone else encountered this? Is this a known issue or should I submit a patch? I am using the following configuration: ./configure --host=arm-arago-linux-gnueabi --build=`./config.guess` --disable-embedded-perl --without-nl --enable-ipv6\ --disable-manuals --with-defaults --with-sys-contact="supp...@myco.com"\ --with-mib-modules="ucd-snmp/diskio" --without-perl-modules --disable-static --disable-shared\ --disable-snmpv1 --disable-scripts --disable-applications --prefix="/" Thanks, -- Tyler ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders