Hi

I've got the same (or a similar) problem with dhcp3-client. I don't know why, 
but the segfault did not occur when I compiled dhcp3 not in a clean chroot.

Attached is more information about the segmentation fault.

Cheers, Adi
GNU gdb 6.7.1-debian
Copyright (C) 2007 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-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) r
Starting program: /sbin/dhclient3 ath0
Internet Systems Consortium DHCP Client V3.1.0
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/ath0/00:17:f2:ee:80:ba
Sending on   LPF/ath0/00:17:f2:ee:80:ba
Sending on   Socket/fallback
DHCPREQUEST on ath0 to 255.255.255.255 port 67
DHCPACK from 62.65.155.65

Program received signal SIGSEGV, Segmentation fault.
0x00002b1405ae9fd5 in _IO_default_xsputn () from /lib/libc.so.6
(gdb) bt
#0  0x00002b1405ae9fd5 in _IO_default_xsputn () from /lib/libc.so.6
#1  0x00002b1405abc372 in vfprintf () from /lib/libc.so.6
#2  0x00002b1405aded29 in vsprintf () from /lib/libc.so.6
#3  0x00002b1405ac5db8 in sprintf () from /lib/libc.so.6
#4  0x000000000041affe in pretty_escape (dst=0x7fffa524bf30, dend=0x665a5d "", 
src=0x7fffa524bf20, send=0x670680 "s\003org") at options.c:2871
#5  0x000000000041da4a in pretty_print_option (option=<value optimized out>, 
data=0x670675 "\vschottelius\003org", len=<value optimized out>, 
    emit_commas=<value optimized out>, emit_quotes=1) at options.c:2971
#6  0x0000000000403fe1 in write_lease_option (oc=0x671a20, packet=<value 
optimized out>, lease=<value optimized out>, client_state=<value optimized 
out>, 
    in_options=<value optimized out>, cfg_options=<value optimized out>, 
scope=0x666c30, u=0x666d00, stuff=0x66fd50) at dhclient.c:2299
#7  0x000000000041ac1d in hashed_option_space_foreach (packet=0x0, lease=0x0, 
client_state=0x66fd50, in_options=0x0, cfg_options=0x7efefefefefefeff, 
scope=0x666c30, 
    u=0x666d00, stuff=0x66fd50, func=0x403f40 <write_lease_option>) at 
options.c:2581
#8  0x00000000004042f0 in write_client_lease (client=0x66fd50, lease=0x671b00, 
rewrite=<value optimized out>, makesure=0) at dhclient.c:2417
#9  0x0000000000406299 in bind_lease (client=0x66fd50) at dhclient.c:898
#10 0x0000000000407359 in dhcpack (packet=0x670510) at dhclient.c:860
#11 0x0000000000406e61 in dhcp (packet=0x670510) at dhclient.c:1096
#12 0x000000000041fb2a in do_packet (interface=0x668bd0, packet=0x7fffa524c290, 
len=375, from_port=17152, from=
      {len = 4, iabuf = ">A\233A\000\000\000\000\000\000\000\000À[f"}, 
hfrom=0x7fffa524d330) at options.c:2829
#13 0x000000000042c717 in got_one (h=0x668bd0) at discover.c:805
#14 0x000000000043c6fa in omapi_one_dispatch (wo=<value optimized out>, 
t=0x7fffa524d5c0) at dispatch.c:408
#15 0x0000000000413d47 in dispatch () at dispatch.c:94
#16 0x0000000000407966 in main (argc=2, argv=0x7fffa524d738, envp=<value 
optimized out>) at dhclient.c:484

Attachment: dhclient3_tcpdump
Description: Binary data

# Configuration file for /sbin/dhclient, which is included in Debian's
#       dhcp3-client package.
#
# This is a sample configuration file for dhclient. See dhclient.conf's
#       man page for more information about the syntax of this file
#       and a more comprehensive list of the parameters understood by
#       dhclient.
#
# Normally, if the DHCP server provides reasonable information and does
#       not leave anything out (like the domain name, for example), then
#       few changes must be made to this file, if any.
#

send host-name "naquadah";
#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
#send dhcp-lease-time 3600;
#supersede domain-name "fugue.com home.vix.com";
#prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, domain-search, host-name,
        netbios-name-servers, netbios-scope, interface-mtu;
#require subnet-mask, domain-name-servers;
#timeout 60;
#retry 60;
#reboot 10;
#select-timeout 5;
#initial-interval 2;
#script "/etc/dhcp3/dhclient-script";
#media "-link0 -link1 -link2", "link0 link1";
#reject 192.33.137.209;

#alias {
#  interface "eth0";
#  fixed-address 192.5.5.213;
#  option subnet-mask 255.255.255.255;
#}

#lease {
#  interface "eth0";
#  fixed-address 192.33.137.200;
#  medium "link0 link1";
#  option host-name "andare.swiftmedia.com";
#  option subnet-mask 255.255.255.0;
#  option broadcast-address 192.33.137.255;
#  option routers 192.33.137.250;
#  option domain-name-servers 127.0.0.1;
#  renew 2 2000/1/12 00:00:01;
#  rebind 2 2000/1/12 00:00:01;
#  expire 2 2000/1/12 00:00:01;
#}

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to