busybox 1.9.1 syslogd segfaults on startup

Denys Vlasenko vda.linux at googlemail.com
Wed Feb 27 18:41:56 UTC 2008


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4.patch.bz2
Type: application/x-bzip2
Size: 5285 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080227/e93ae9e2/attachment-0002.bin 


More information about the busybox mailing list