Bug 28559 - Segfault на обслуживании подсети с маской /8
Summary: Segfault на обслуживании подсети с маской /8
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: dhcp-server (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Mikhail Efremov
QA Contact: qa-sisyphus
URL: http://forum.altlinux.org/index.php/t...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-15 14:04 MSK by Andrey Cherepanov
Modified: 2013-02-26 12:09 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Cherepanov 2013-02-15 14:04:05 MSK
На обслуживании подсети с маской /8 (например, 10.0.0.1/8) сервер DHCP падает при первом запросе адреса. На больших масках (например, /10) всё работает.
Comment 1 Fr. Br. George 2013-02-18 17:01:02 MSK
Говорят, апстримная бага :( Будем фиксить
Comment 2 Gleb F-Malinovskiy 2013-02-18 17:43:22 MSK
(gdb) run
Starting program: /usr/sbin/dhcpd 
Internet Systems Consortium DHCP Server 4.2.4-P2
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007ffff7bd1c2c in hash_lookup (vp=0x7fffffffdfe0, table=0x7ffff5f50010, key=key@entry=0x7fffffffdf74, len=4, file=0x5555555d5b4d "mdb.c", line=821) at hash.c:502
#2  0x000055555558d412 in lease_ip_hash_lookup (line=<optimized out>, file=<optimized out>, len=<optimized out>, buf=0x7fffffffdf74 "\n\"\242\320 ^\220UUU", table=<optimized out>, ptr=<optimized out>) at mdb.c:2720
#3  find_lease_by_ip_addr (lp=lp@entry=0x7fffffffdfe0, addr=..., file=file@entry=0x5555555d5b4d "mdb.c", line=line@entry=821) at mdb.c:1956
#4  0x000055555558fe45 in new_address_range (cfile=cfile@entry=0x5555558e9170, low=..., high=..., subnet=subnet@entry=0x555555905ee0, pool=0x555555906150, lpchain=lpchain@entry=0x0) at mdb.c:821
#5  0x00005555555726e7 in parse_address_range (cfile=cfile@entry=0x5555558e9170, group=group@entry=0x555555905ea0, type=type@entry=3, inpool=inpool@entry=0x0, lpchain=lpchain@entry=0x0) at confpars.c:3678
#6  0x0000555555575d51 in parse_statement (cfile=cfile@entry=0x5555558e9170, group=0x555555905ea0, type=type@entry=3, host_decl=host_decl@entry=0x0, declaration=declaration@entry=0) at confpars.c:624
#7  0x0000555555576868 in common_subnet_parsing (cfile=cfile@entry=0x5555558e9170, share=share@entry=0x555555905e20, subnet=0x555555905ee0) at confpars.c:2486
#8  0x00005555555770d0 in parse_subnet_declaration (cfile=0x5555558e9170, share=0x555555905e20) at confpars.c:2600
#9  0x0000555555576405 in parse_statement (cfile=cfile@entry=0x5555558e9170, group=group@entry=0x5555558acb80, type=type@entry=0, host_decl=host_decl@entry=0x0, declaration=declaration@entry=0) at confpars.c:482
#10 0x000055555557a923 in conf_file_subparse (cfile=0x5555558e9170, group=group@entry=0x5555558acb80, group_type=group_type@entry=0) at confpars.c:252
#11 0x000055555557abda in read_conf_file (filename=0x5555555cfb83 "/etc/dhcp/dhcpd.conf", group=0x5555558acb80, group_type=group_type@entry=0, leasep=leasep@entry=0) at confpars.c:181
#12 0x000055555557ae4d in readconf () at confpars.c:66
#13 0x00005555555642f0 in main (argc=<optimized out>, argv=<optimized out>) at dhcpd.c:718
Comment 3 Repository Robot 2013-02-26 12:09:54 MSK
dhcp-1:4.2.5-alt1 -> sisyphus:

* Mon Feb 25 2013 Gleb F-Malinovskiy <glebfm@altlinux> 1:4.2.5-alt1
- george@:
  + Version update to 4.2.5
  + Fix patches
  + Add example files
- fix segfault on x86_64 (ALT #28559)