Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195709 - [patch] net-dns/updatedd segfaults
Summary: [patch] net-dns/updatedd segfaults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-13 15:42 UTC by Alexandre Ferreira
Modified: 2008-04-01 10:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Ferreira 2007-10-13 15:42:48 UTC
updatedd crashes with a segmentation fault error when run.

Reproducible: Always

Steps to Reproduce:
1.Install updatedd-2.5
2.run it
3.

Actual Results:  
segmentation fault

Expected Results:  
address updated at dyndns

Portage 2.1.3.12 (default-linux/amd64/2007.0/desktop, gcc-4.2.2, glibc-2.6.1-r0, 2.6.22-suspend2-r2 x86_64)
=================================================================
System uname: 2.6.22-suspend2-r2 x86_64 Intel(R) Core(TM)2 Quad CPU @ 2.40GHz
Timestamp of tree: Sat, 13 Oct 2007 04:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.1
dev-lang/python:     2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LINGUAS="en pt pt_BR"
MAKEOPTS="-j 5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d a52 aac aalib accessibility acl acpi alsa amd64 apache2 arts asf ati atk audiofile avi berkdb bitmap-fonts blas bluetooth bzip2 bzlib cairo cdparanoia cdr cli cracklib cross crypt cscope ctype cups curl curlwrappers dba dbus divx4linux doc dri dvd dvdr dvdread eds emboss encode esd ethereal evo fam ffmpeg firefox flac fontconfig foomaticdb fortran gd gdbm ggi gif glitz glut gnome gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal iconv icq imagemagick imap imlib innodb ipod ipv6 isdnlog jabber java joystick jpeg jpeg2k kde kerberos lapack ldap lesstif libcaca libg++ lm_sensors logrotate mad matroska mcal midi mikmod mime mjpeg mmap mmx mng motif mp3 mp4 mpeg mplayer mpm-prefork mudflap musicbrainz mysql ncurses nls no-seamonkey nptl nptlonly nsplugin ofx ogg oggvorbis openal opengl openmp oss pam pcre pdf pdflib perl php pic plotutils png postgres ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection rtc ruby samba scanner sdl session shared sharedmem slp sndfile soap sockets speex spell spl sse sse2 ssl subversion svg tcltk tcpd theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb vcd vorbis wmp x264 xine xinerama xml xml2 xorg xpm xscreensaver xsl xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pt pt_BR" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

The file src/updated.c has a incorrect long_options struct and it has no termination entry.

THe patch below corrects the problem.

--- updatedd.c.old      2005-02-13 16:58:06.000000000 -0500
+++ updatedd.c  2007-10-13 11:16:03.000000000 -0400
@@ -242,7 +242,8 @@
                int c, option_index = 0;
                static struct option long_options[] = {
                        { "help",       0, 0, 'h' },
-                       { "version",    0, 0, 'v' }
+                       { "version",    0, 0, 'v' },
+                       { 0,    0, 0, 0 }
                };

                c = getopt_long(argc, argv, "LY",
Comment 1 Daniel Black (RETIRED) gentoo-dev 2008-04-01 10:36:10 UTC
added patch (finally). Many thanks. Also added 2.6 version for your pleasure.