Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200194 - net-dialup/globespan-adsl-0.12: double free or corruption
Summary: net-dialup/globespan-adsl-0.12: double free or corruption
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-24 14:38 UTC by Sandro Bonazzola
Modified: 2008-02-09 22:42 UTC (History)
1 user (show)

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


Attachments
globespan-adsl-0.11-pagesize.patch (globespan-adsl-0.11-pagesize.patch,669 bytes, patch)
2007-11-24 22:19 UTC, Jakub Moc (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sandro Bonazzola 2007-11-24 14:38:23 UTC
I have just received a Kraun communication USB ADSL modem and I'm trying to get it working. This is the output of eciadsl-start (emerge --info follows in next comment):

# eciadsl-start

[EciAdsl 1/5] Setting up USB support...

Preliminary USB device filesystem is OK

[EciAdsl 2/5] Uploading firmware...

Process skipped .. no more needed
firmware loaded successfully

[EciAdsl 3/5] Synchronization...

pusb_control_msg: Inappropriate ioctl for device
 ERROR reading interrupts
*** glibc detected *** /usr/bin/eciadsl-synch: double free or corruption (fasttop): 0x0000000000608240 ***
======= Backtrace: =========
/lib/libc.so.6[0x2b1721649c0d]
/lib/libc.so.6(cfree+0x76)[0x2b172164b926]
/usr/bin/eciadsl-synch[0x4033a3]
/usr/bin/eciadsl-synch[0x402993]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2b17215f81f4]
/usr/bin/eciadsl-synch[0x401469]
======= Memory map: ========
00400000-00407000 r-xp 00000000 fc:02 265119                             /usr/bin/eciadsl-synch
00606000-00607000 r--p 00006000 fc:02 265119                             /usr/bin/eciadsl-synch
00607000-00608000 rw-p 00007000 fc:02 265119                             /usr/bin/eciadsl-synch
00608000-00629000 rw-p 00608000 00:00 0                                  [heap]
40000000-40001000 ---p 40000000 00:00 0
40001000-40801000 rw-p 40001000 00:00 0
40801000-40802000 ---p 40801000 00:00 0
40802000-41002000 rw-p 40802000 00:00 0
2aaaaaaac000-2aaaaaaad000 rw-p 2aaaaaaac000 00:00 0
2aaaaaae7000-2aaaaaaf4000 r-xp 00000000 09:01 3009666                    /lib64/libgcc_s.so.1
2aaaaaaf4000-2aaaaacf3000 ---p 0000d000 09:01 3009666                    /lib64/libgcc_s.so.1
2aaaaacf3000-2aaaaacf4000 r--p 0000c000 09:01 3009666                    /lib64/libgcc_s.so.1
2aaaaacf4000-2aaaaacf5000 rw-p 0000d000 09:01 3009666                    /lib64/libgcc_s.so.1
2aaaac000000-2aaaac021000 rw-p 2aaaac000000 00:00 0
2aaaac021000-2aaab0000000 ---p 2aaaac021000 00:00 0
2b17211a3000-2b17211be000 r-xp 00000000 09:01 3010458                    /lib64/ld-2.7.so
2b17211be000-2b17211c1000 rw-p 2b17211be000 00:00 0
2b17213bd000-2b17213be000 r--p 0001a000 09:01 3010458                    /lib64/ld-2.7.so
2b17213be000-2b17213bf000 rw-p 0001b000 09:01 3010458                    /lib64/ld-2.7.so
2b17213bf000-2b17213d5000 r-xp 00000000 09:01 3009723                    /lib64/libpthread-2.7.so
2b17213d5000-2b17215d4000 ---p 00016000 09:01 3009723                    /lib64/libpthread-2.7.so
2b17215d4000-2b17215d5000 r--p 00015000 09:01 3009723                    /lib64/libpthread-2.7.so
2b17215d5000-2b17215d6000 rw-p 00016000 09:01 3009723                    /lib64/libpthread-2.7.so
2b17215d6000-2b17215da000 rw-p 2b17215d6000 00:00 0
2b17215da000-2b1721718000 r-xp 00000000 09:01 3010461                    /lib64/libc-2.7.so
2b1721718000-2b1721918000 ---p 0013e000 09:01 3010461                    /lib64/libc-2.7.so
2b1721918000-2b172191c000 r--p 0013e000 09:01 3010461                    /lib64/libc-2.7.so
2b172191c000-2b172191d000 rw-p 00142000 09:01 3010461                    /lib64/libc-2.7.so
2b172191d000-2b1721924000 rw-p 2b172191d000 00:00 0
7fff898f1000-7fff89907000 rw-p 7ffffffe9000 00:00 0                      [stack]
7fff899fe000-7fff89a00000 r-xp 7fff899fe000 00:00 0                      [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
/usr/bin/eciadsl-start: line 517: 10896 Abortito                "$BIN_DIR/eciadsl-synch" $synch_options
ERROR: failed to get synchronization
Comment 1 Sandro Bonazzola 2007-11-24 14:39:07 UTC
# emerge --info
Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r0, 2.6.23-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3500+
Timestamp of tree: Thu, 22 Nov 2007 17:16:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 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.23-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fno-strict-aliasing"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/jetty/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/initng/daemon /etc/initng/net /etc/initng/system /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fno-strict-aliasing"
DISTDIR="/home/ftp/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache collision-protect cvs distlocks elog java-strict metadata-transfer multilib-strict sandbox sfperms sign strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LINGUAS="it"
PKGDIR="/home/ftp/packages"
PORTAGE_COMPRESS="bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_RSYNC_EXTRA_OPTS=" --timeout=400 --progress "
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/gnome-experimental /usr/portage/local/layman/sunrise /usr/local/overlays/portage /usr/local/overlays/initng-portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3ds 7zip X a52 aac acl acpi alsa amd64 amr aoss apache2 arts asf audiofile avahi bash-completion berkdb bitmap-fonts bl branding bzip2 cairo cal3d caps ccache cdb cddb cdparanoia cdr cg chroot cli cpudetection cracklib crypt css cups curl custom-cflags dbus devhelp dga directfb disk-partition djvu dmi dovecot-sasl dri dts dv dvd dvdr dvdread emerald encode epydoc erandom esd exif expat extrafilters fame ffmpeg firefox flac fltk foomaticdb fortran gd gdbm ggi gif gimp gimpprint glib glibc-omitfp glitz glut gmp gnokii gnome gnutls gphoto2 gpm graphviz gsm gtk gtkhtml guile hal howl-compat iconv idn ieee1394 imagemagick imlib ipv6 isc isdnlog ithreads java javacomm javascript jbig jce jikes jpeg jpeg2k justify kde kdeenablefinal kdehiddenvisibility kqemu lcms ldap libcaca libnotify linuxthreads-tls lm_sensors logitech-mouse logrotate lzo mad mailwrapper matroska mbox mdb mhash midi mikmod mjpeg mmap mmx mmxext mng motif mozdevelop mp3 mpeg mpm-worker mppe-mppc msn mudflap musepack musicbrainz mysql ncurses nfs nls nptl nptlonly nsplugin numeric nvidia odbc ode offensive ogg ogre on-the-fly-crypt openexr opengl openmp oss pam parport pch pcre pdf perl php png povray ppds pppd pulseaudio python qa qt3 qt3support qt4 quicktime rdesktop readline reflection resolvconf restrict-javascript rtc samba scanner sdl session slang slp smime sndfile snmp speex spell spl sse sse2 ssl startup-notification subversion svg sysfs syslog tcltk tcpd test tetex tga theora threads tidy tiff timidity tk truetype truetype-fonts type1-fonts unicode usb userlocales utempter v4l v4l2 vcd vda vorbis vorbis-psy wma wmf wmp xattr xcomposite xforms xine xinerama xml xorg xpm xscreensaver xv xvid xvmc yv12 zeroconf zlib" ALSA_CARDS="intel8x0" 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" CAMERAS="canon directory panasonic pccam300" ELIBC="glibc" FOO2ZJS_DEVICES="hp1005" INPUT_DEVICES="mouse evdev keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, MAKEOPTS
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2007-11-24 14:41:55 UTC
Try previous versions too, 0.10, 0.11 or 0.11-r1. Let us know if one of them works for you.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2007-11-24 14:54:20 UTC
Why would you set -fno-strict-aliasing to flags?
Comment 4 Sandro Bonazzola 2007-11-24 20:14:57 UTC
(In reply to comment #3)
> Why would you set -fno-strict-aliasing to flags?

Because there are several package that have strict aliasing issues that cause strange behaviour under amd64. For some time I've opened bug here and sent mail upstream but I've lost my patience (and Jakub patience too) and I prefer to have a slow working system instead of a fast crashing one. For some months I've compiled only bugged packages with that flag, but it doesn't worth the maintenance work.


(In reply to comment #2)
> Try previous versions too, 0.10, 0.11 or 0.11-r1. Let us know if one of them
> works for you.

On my way, stay tuned.
Comment 5 Sandro Bonazzola 2007-11-24 20:35:42 UTC
(In reply to comment #2)
> Try previous versions too, 0.10, 0.11 or 0.11-r1. Let us know if one of them
> works for you.

The previous versions doesn't even compile: see bug #200227 .
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-11-24 22:19:10 UTC
Created attachment 136933 [details, diff]
globespan-adsl-0.11-pagesize.patch

Backported patch from 0.12...
Comment 7 Sandro Bonazzola 2007-11-24 22:33:41 UTC
(In reply to comment #6)
> Created an attachment (id=136933) [edit]
> globespan-adsl-0.11-pagesize.patch

The patch works fine for me on 0.11 ebuild, not tested on 0.11-r1 at this time.
Thank you very much.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2007-11-24 22:44:26 UTC
+  24 Nov 2007; Samuli Suominen <drac@gentoo.org>
+  +files/globespan-adsl-0.11-pagesize.patch, globespan-adsl-0.11-r1.ebuild,
+  globespan-adsl-0.12.ebuild:
+  Mark 0.12 explicitely -amd64 wrt #200194 and move stable keyword to 0.11-r1
+  with a backported patch, thanks to Jakub Moc and Sandro Bonazzola.
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2007-11-24 22:54:08 UTC
adding release in case they want fixed 0.11-r1 
Comment 10 Chris Gianelloni (RETIRED) gentoo-dev 2007-11-25 02:19:00 UTC
Yep, thanks...
Comment 11 Steve Arnold archtester gentoo-dev 2008-02-09 22:42:51 UTC
Fixed; closing...