[Snort-devel] linux/sparc BUS ERROR [more info]

Ricardo A. Gorosito rgorosito at ...1077...
Wed Jan 16 06:44:20 EST 2002

Problem persist with gcc-3.0.1, I will try with other cc versions.

Program received signal SIGBUS, Bus error.
0x0001b778 in DecodeIP (pkt=0x995d6 "E\020", len=132, p=0xeffff398) at
1194        if(p->iph->ip_ver != 4)
(gdb) print p->iph->ip_src
$1 = {s_addr = 169119087}
(gdb) print p->iph->ip_ver
$2 = 4 '\004'


Roelof JT Jonkman escribió:

> You might want to try gcc 3.0.3 (compile flags -mcpu=v9 -m32)
> I've had reasonable luck with that on solaris. I'm not sure
> how well adapted linux is to ultrasparcs....
> I quickly glanced at the code, and I can't see an
> obvious alignment problem. So a far out guess
> is that p->iph->ip_src is pointing at an unaligned
> boundary. (print p->iph->ip_src in gdb...)
> ip_src is a struct in_addr, so odds are that needs to
> be at an 8 byte aligned boundary, it may fly if it's
> at a 4 byte boundary.. But my guess is that this will
> go away when you change compilers. 2.96 didn't
> even compile linux kernels right at some point, so
> 2.96 is suspect.
> roel
> Security Engineer
> http://wwww.SiliconDefense.com

Ricardo Ariel Gorosito - rgorosito at ...1077...
 Administración Federal de Ingresos Públicos
      Departamento Seguridad Informática

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20020116/c9c0056c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rgorosito.vcf
Type: text/x-vcard
Size: 359 bytes
Desc: Tarjeta de Ricardo A. Gorosito
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20020116/c9c0056c/attachment.vcf>

More information about the Snort-devel mailing list