[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: busybox 1.9.1 syslogd segfaults on startup
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2008-02-27 18:41:56
Message-ID: 200802271941.56228.vda.linux () googlemail ! com
[Download RAW message or body]

On Tuesday 26 February 2008 22:06, Clem Taylor wrote:
> >   #define INIT_G() do { \
> >         PTR_TO_GLOBALS = memcpy(xzalloc(sizeof(G)), &init_data, sizeof(init_data)); \
> >  +       asm volatile("": : :"memory");
> >   } while (0)
> 
> Adding this memory barrier seems to have fixed the problem, at least
> for syslogd.

Ok, will apply the attached patch to svn. Can you try svn?

> But lying to the compiler with pseudo-constant pointers 
> seems risky.

Yup.
--
vda

["4.patch.bz2" (application/x-bzip2)]

_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic