URGENT need help | docsis.org

You are here

URGENT need help

4 posts / 0 new
Last post
larpi2
URGENT need help

I'm beginner, an installed docsis server 3 and configure cmts used description from below link
https://github.com/bschirrmeister/docsis_server

I started docsis server and i get error when arrived the first dhcp request.
Error message: "[ 1416.256090] docsis_server[9919]: segfault at bf010001 ip 0804ecd8 sp bf914f90 error 4 in docsis_server[8048000+19000]"

What did I wrong

I use Debian GNU/Linux 6.0.

Please send me any suggestion, what can i do
Sorry for my english.

Best Regards,
Arpad

schirrmeister
coredump?

Hi Arpad,

could you please send me the output of the coredump so I can try to fix this.

gdb /usr/local/sbin/docsis_server /home/docsis/core

--
You might try to compile the software the following way:

export CFLAGS="-fno-stack-protector"
make
make install

regards,
Benedikt

larpi2
Hi Benedikt,

Hi Benedikt,
Thanks for your help

I try to reinstall the server using your recomandation, but the result is the same.

I runned your command and the answer is below:

GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
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 "i486-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /usr/local/sbin/docsis_server...done.

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/libmysqlclient.so.16...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libmysqlclient.so.16
Reading symbols from /lib/i686/cmov/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libpthread.so.0
Reading symbols from /lib/i686/cmov/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libcrypt.so.1
Reading symbols from /lib/i686/cmov/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libnsl.so.1
Reading symbols from /lib/i686/cmov/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libm.so.6
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/i686/cmov/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libresolv.so.2
Reading symbols from /lib/i686/cmov/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/i686/cmov/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libnss_files.so.2
Core was generated by `/etc/init.d/docsis_server start'.
Program terminated with signal 11, Segmentation fault.
#0 0xb758cf89 in mysql_ping () from /usr/lib/libmysqlclient.so.16

I tried to catch the problem, so a used tcpdump, syslog;
The message which apear in the syslog:

Jan 28 10:03:17 catv kernel: [214995.807414] docsis_server[28387]: segfault at 3b0 ip b7541f89 sp bfc02a30 error 4 in libmysqlclient.so.16.0.0[b7500000+1ad000]

The request what catch the tcpdump:

10:05:17.069524 IP 10.70.2.1.bootps > 10.70.1.1.bootps: BOOTP/DHCP, Request from 00:24:d1:05:d8:e8 (oui Unknown), length 474
Where 10.70.1.1 the server ip and 10.70.2.1 is set in the cmts.

larpi2
new core gdb answare

GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
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 "i486-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /usr/local/sbin/docsis_server...done.

warning: exec file is newer than core file.

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/libmysqlclient.so.16...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libmysqlclient.so.16
Reading symbols from /lib/i686/cmov/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libpthread.so.0
Reading symbols from /lib/i686/cmov/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libcrypt.so.1
Reading symbols from /lib/i686/cmov/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libnsl.so.1
Reading symbols from /lib/i686/cmov/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libm.so.6
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/i686/cmov/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libresolv.so.2
Reading symbols from /lib/i686/cmov/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/i686/cmov/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libnss_files.so.2
Core was generated by `/usr/local/sbin/docsis_server'.
Program terminated with signal 11, Segmentation fault.
#0 DecodeOptions (message=0xbf997a4c) at dhcpd-options.c:107
107 kL = *ino; ino++; // DHCP-Option-Length

Log in or register to post comments