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

Bug 157620

Summary: libmtp: mtp-detect crashes
Product: Gentoo Linux Reporter: Piojo <lfmunozmejias>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Piojo 2006-12-09 07:59:43 UTC
When running mtp-detect on my Creative Zen Sleek Photo, it crashes. I thought it was a CFLAGS-related bug, but I lowered it all to CFLAGS='-ggdb' CXXFLAGS='-ggdb' LDFLAGS='' and still crashes. This is the backtrace I get:

(gdb) bt
#0  0x080490d2 in main (argc=1, argv=0xbff45514) at detect.c:166
#1  0xb7d9783c in __libc_start_main () from /lib/libc.so.6
#2  0x08048af1 in ?? ()

detect.c, line 166:
      if (!strcmp(file->filename, "WMPInfo.xml")) {
...

and file->filename is NULL. I don't know why.

My emerge --info:

Portage 2.1.2_rc2-r5 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo i686)
=================================================================
System uname: 2.6.18-gentoo i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.12.6
Last Sync: Thu, 07 Dec 2006 21:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe -mmmx -m3dnow -msse -mfpmath=sse,387 -maccumulate-outgoing-args -fprefetch-loop-arrays -ftree-vectorize  -ftree-loop-im -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/init.d /etc/java-config/vms/ /etc/openldap /etc/openoffice /etc/profile.d /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/wget"
CXXFLAGS="-O3 -march=athlon-xp -pipe -mmmx -m3dnow -msse -mfpmath=sse,387 -maccumulate-outgoing-args -fprefetch-loop-arrays -ftree-vectorize  -ftree-loop-im -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://213.186.33.38/gentoo-distfiles/ ftp://213.186.33.37/gentoo-distfiles/ http://213.186.33.38/gentoo-distfiles/ http://213.186.33.37/gentoo-distfiles/ http://ftp.heanet.ie/pub/gentoo/ http://linuv.uv.es/mirror/gentoo/"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
LINGUAS="es"
MAKEOPTS="-j2"
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"
PORTAGE_TMPDIR="/home/portagetmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac alsa apache2 apm arts asf audiofile bash-completion berkdb bitmap-fonts blas bootsplash browserplugin bzip2 cdparanoia cli cracklib crypt cups dbus dlloader dri dvd elibc_glibc emacs encode fam ffmpeg flac foomaticdb fortran gd gdbm gif gimp gimpprint gmail gpm gtk gtk2 hal iconv idn imagemagick imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog java jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kernel_linux lapack lcms libg++ libwww linguas_es mad mikmod mmx mmx2 mmxext mng motif moznocompose moznoirc moznomail mp3 mp4 mpeg mplayer mtp ncurses nls no-old-linux nptl nptlonly nsplugin nvidia ogg opengl pam pcre pdf perl png postgres pppd python qt3 qt4 quicktime readline reflection rtc scanner sdl sensord session spell spl sse ssl svg svga tcpd tetex theora tiff toolkit-scroll-bars truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales video_cards_nvidia vorbis win32codecs x264 xcomposite xine xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS

And, for this ebuild I have set:

piojo@StarWars ~ $ cat /var/db/pkg/media-libs/libmtp-0.0.21/CFLAGS
-ggdb
piojo@StarWars ~ $ cat /var/db/pkg/media-libs/libmtp-0.0.21/CXXFLAGS
-ggdb
piojo@StarWars ~ $ cat /var/db/pkg/media-libs/libmtp-0.0.21/FEATURES
autoconfig ccache distlocks installsources metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userpriv usersandbox
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-09 09:30:50 UTC

*** This bug has been marked as a duplicate of 153588 ***