On Sat, Mar 20, 2010 at 08:37:06PM +0100, Serafeim Zanikolas wrote:
> Hi again,
>
> libfiu core dumps on kFreeBSD-{ia64,i386} when the following call is made:
>
> lock_fd = open(path, O_WRONLY|O_CREAT, 0600);
>
> Here's the backtrace from a failure in asdfasdf.debian.org (GNU/kFreeBSD
> 8.0-1-amd64):
>
> fiu-run -x ./beanstalkd -l 127.0.0.1 -p 11400 -b /tmp/bnch86651.d -s 1000
> &
> [..]
> Core was generated by `beanstalkd'.
> Program terminated with signal 4, Illegal instruction.
>
> $ gdb beanstalkd beanstalkd.core
> [..]
> (gdb) bt
> #0 0x0000000800a372c0 in open (pathname=0x7fffffffdf10
> "/tmp/bnch86651.d/lock", flags=513) at modules/posix.custom.c:44
> #1 0x000000000040407a in binlog_lock () at binlog.c:691
> #2 0x00000000004026ac in main (argc=9, argv=0x7fffffffe4b0) at
> beanstalkd.c:298
Thanks for the detailed bug report.
It seems strange, because that line is at va_start(). I see nothing obviously
wrong there (the open() call includes the mode as it should when using
O_CREAT), so I'll install that platform and try to reproduce it.
I test libfiu on DragonFlyBSD every once in a while and I've never hit
anything like this, but since it's a related platform I'll also give it a try,
just in case.
Thanks again,
Alberto
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]