Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 462108

Summary: net-dialup/pptpd-1.3.4-r3 crashes when calling ppp with unrecognized option
Product: Gentoo Linux Reporter: Klemen Mihevc <solor>
Component: Current packagesAssignee: Gentoo Dialup Developers <net-dialup>
Status: RESOLVED FIXED    
Severity: normal CC: heiko, james05+gentoo
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 489772    
Bug Blocks: 390247    
Attachments: patch that works

Description Klemen Mihevc 2013-03-17 22:17:54 UTC
This is probably since it was compiled with gcc 4.7+ anyway, when trying to connection to VPN it crashes and you get in logs something like this:

Mar 17 22:57:02 mih pppd[15350]: unrecognized option '˙˙ţ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙'

found explanation and solution here: https://bbs.archlinux.org/viewtopic.php?id=140838 and attaching patch...

Reproducible: Always
Comment 1 Klemen Mihevc 2013-03-17 22:18:50 UTC
Created attachment 342436 [details]
patch that works
Comment 2 Klemen Mihevc 2013-03-17 22:20:22 UTC
emerge --info

Portage 2.1.11.55 (default/linux/x86/13.0, gcc-4.7.2, glibc-2.16.0, 3.8.3-gentoo i686)
=================================================================
System uname: Linux-3.8.3-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-2.2
KiB Mem:     2069876 total,     79232 free
KiB Swap:    2097148 total,   2096660 free
Timestamp of tree: Sun, 17 Mar 2013 20:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo LocalRepository
Installed sets: @system
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -mtune=pentium4 -O2 -pipe -fomit-frame-pointer -msse -msse2 -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-a                                                                   ctive/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=pentium4 -mtune=pentium4 -O2 -pipe -fomit-frame-pointer -msse -msse2 -mmmx"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-own                                                                   ed sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://mirror.netcologne.de/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="-6 --recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exc                                                                   lude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/repository"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="acl acpi animgif apache2 apm apng authfile bash-completion berkdb bluetooth bzip2 caps ccache cgi cli client cracklib crypt cups curl c                                                                   xx dbus dedicated dhcp dlz dovecot-sasl dri eap-tls encode exif expat extraengine extras fontconfig fortran ftp gd gdbm geoip gif gmp gpg gp                                                                   m gzip hardened iconv icu idn imap intl ipv6 ithreads jpeg lcms ldap lua lzma lzo maildir managesieve mhash mmx mng modules mudflap mysql my                                                                   sqli ncurses netboot nls nptl ntp ocaml ocamlopt odbc openmp openssl pam pch pcntl pcre pdo perl phar php pic png pop3d posix python quota r                                                                   aw readline rpc ruby samba sasl server session sieve slang smtp snmp soap sockets socks5 spell sqlite3 sse sse2 ssl suexec svg swig tcl tcpd                                                                    threads tiff truetype udev unicode urandom usb vhosts x86 xinetd xml xmlreader xmlrpc xmlwriter xsl zip zlib" ABI_X86="32" ALSA_CARDS="ali5                                                                   451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestr                                                                   o3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958                                                                    ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core soca                                                                   che_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile a                                                                   uthz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filte                                                                   r headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vh                                                                   ost_alias auth_digest authn_dbd ident lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat proxy proxy_ajp proxy_ba                                                                   lancer proxy_connect proxy_fcgi proxy_ftp proxy_http proxy_scgi slotmem_shm" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sh                                                                   eets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog apache bind logf                                                                   ile mysql network ntpd tcpconns uptime" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax                                                                    mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keybo                                                                   ard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="                                                                   presenter-console presenter-minimizer" LINGUAS="en sl" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 pytho                                                                   n3_2" QEMU_SOFTMMU_TARGETS="i386" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon sava                                                                   ge sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy con                                                                   dition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, POR                                                                   TAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Heiko Steindl 2013-06-12 08:14:07 UTC
same problem on my system with gcc-4.7.3 and ppp-2.4.5-r3 pptp-1.3.4-r3.

Error when compiling with gcc-4.7.3 after starting the connection on the client:
pppd[]: unrecognized option 'ÿÿÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ.....' or pppd[]: unrecognized option '?????????....'

After recompiling with gcc-4.6.3 it works and the clients can connect.
Comment 4 Sergey Popov gentoo-dev 2013-10-25 11:23:20 UTC
+  25 Oct 2013; Sergey Popov <pinkbyte@gentoo.org> -pptpd-1.3.4-r2.ebuild,
+  +pptpd-1.3.4-r4.ebuild, +files/pptpd-1.3.4-gcc-4.7.patch:
+  Revision bump: fix compatibility with gcc 4.7, wrt bug #462108. Drop old
+  revision

Thanks for discovering this. Will close when fix hits stable branch.
Comment 5 Sergey Popov gentoo-dev 2013-11-04 12:15:05 UTC
net-dialup/pptpd-1.3.4-r4 hits stable, closing this