[Monkey] mk_lib broken in master

Bjorn Lindgren nr at c64.org
Thu Mar 7 14:12:34 UTC 2013


Then running the hello example program it crashes with a Floating Point 
exception. Seams nworkers has value 0 then running the server from mk_lib

Regards,
Bjorn

[root at localhost examples]# gdb ./hello
GNU gdb (GDB) Fedora (7.5.1-36.fc18)
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /var/tmp/monkey/examples/hello...(no debugging 
symbols found)...done.
(gdb) run
Starting program: /var/tmp/monkey/examples/hello
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGFPE, Arithmetic exception.
0x00007ffff7bd019e in mk_server_worker_capacity (nworkers=0) at 
mk_server.c:66
66	    return ((avl / 2) / nworkers);
Missing separate debuginfos, use: debuginfo-install 
glibc-2.16-28.fc18.x86_64
(gdb) bt
#0  0x00007ffff7bd019e in mk_server_worker_capacity (nworkers=0) at 
mk_server.c:66
#1  0x00007ffff7bd3b84 in mklib_init (address=0x0, port=0, plugins=0, 
documentroot=0x400b38 "/tmp") at mk_lib.c:211
#2  0x00000000004009c6 in main ()


More information about the Monkey mailing list