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

User BALGAA System Engineer balgaa at ...1049...
Tue Jan 15 19:22:04 EST 2002


Fyodor,

Is your sent patch for Snort-1.8.3?

Thanks,
Balgaa

On Wed, 16 Jan 2002, Fyodor wrote:

> On Tue, Jan 15, 2002 at 01:12:45PM -0800, Roelof JT Jonkman wrote:
> > 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
>
> Inet_ntoa, declared as:
>      char *inet_ntoa(struct in_addr in);
>
> could use opcodes which operate on 4byte aligned values, as the in_addr
> struct has s_addr structure member which is of the in_addr_t type,
> which, itself is defined as typedef uint32_t in_addr_t; i.g. unsigned
> long. I can not think of a better way to patch the problem right now
> except of shifting the data to an aligned boundary first. There must be
> a more elegant to fix it though.. anyway mind to try attached patch to
> see if it fixes the problem?
>
>
>





More information about the Snort-devel mailing list