Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384791 - sys-fs/ntfs3g-2011.4.12[ntfsprogs]: ntfsundelete segfaults
Summary: sys-fs/ntfs3g-2011.4.12[ntfsprogs]: ntfsundelete segfaults
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-28 14:35 UTC by Víctor Ostorga (RETIRED)
Modified: 2012-03-30 08:33 UTC (History)
2 users (show)

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 Víctor Ostorga (RETIRED) gentoo-dev 2011-09-28 14:35:16 UTC
Program received signal SIGSEGV, Segmentation fault.

0xb7f87476 in ntfs_attr_find (type=<value optimized out>, name=<value optimized out>, name_len=0, ic=CASE_SENSITIVE, 
    val=0x0, val_len=0, ctx=0x80568d8) at attrib.c:1711
1711	attrib.c: No such file or directory.
	in attrib.c

(gdb) backtrace

#0  0xb7f87476 in ntfs_attr_find (type=<value optimized out>, name=<value optimized out>, name_len=0, ic=CASE_SENSITIVE, 
    val=0x0, val_len=0, ctx=0x80568d8) at attrib.c:1711
#1  0x0804e7da in find_attribute (type=AT_STANDARD_INFORMATION, ctx=0x80568d8) at utils.c:392
#2  0x0804e8a8 in find_first_attribute (type=AT_STANDARD_INFORMATION, mft=0x805bde8) at utils.c:431
#3  0x08049700 in read_record (vol=<value optimized out>, record=<value optimized out>) at ntfsundelete.c:1105
#4  0x0804c85c in scan_disk (vol=<value optimized out>) at ntfsundelete.c:1950
#5  0x0804d92e in main (argc=2, argv=0xbffff0a4) at ntfsundelete.c:2167
Comment 1 Rafał Mużyło 2011-09-28 16:03:14 UTC
Did you check if the same happens with the version included in recent ntfs3g (if they differ) ?
Comment 2 SpanKY gentoo-dev 2011-09-29 02:24:47 UTC
ntfsprogs is dead.  switch to ntfs3g[ntfsprogs].
Comment 3 Víctor Ostorga (RETIRED) gentoo-dev 2011-09-29 16:00:50 UTC
ntfs3g[ntfsprogs] segfaults as well...


Program received signal SIGSEGV, Segmentation fault.

0xb7f776fd in ntfs_attr_find (type=<value optimized out>, name=<value optimized out>, name_len=0, ic=CASE_SENSITIVE, 
    val=0x0, val_len=0, ctx=0x8060cd8) at attrib.c:2739
2739	attrib.c: No such file or directory.
	in attrib.c

(gdb) backtrace

#0  0xb7f776fd in ntfs_attr_find (type=<value optimized out>, name=<value optimized out>, name_len=0, ic=CASE_SENSITIVE, 
    val=0x0, val_len=0, ctx=0x8060cd8) at attrib.c:2739
#1  0xb7f786c5 in ntfs_attr_lookup (type=AT_STANDARD_INFORMATION, name=0x0, name_len=0, ic=CASE_SENSITIVE, lowest_vcn=0, 
    val=0x0, val_len=0, ctx=0x8060cd8) at attrib.c:3331
#2  0x0804e88a in find_attribute (type=AT_STANDARD_INFORMATION, ctx=0x8060cd8) at utils.c:459
#3  0x0804e958 in find_first_attribute (type=AT_STANDARD_INFORMATION, mft=0x8060888) at utils.c:498
#4  0x0804ab23 in read_record (vol=<value optimized out>, record=<value optimized out>) at ntfsundelete.c:1104
#5  0x0804c91c in scan_disk (vol=<value optimized out>) at ntfsundelete.c:1949
#6  0x0804d9e6 in main (argc=2, argv=0xbffff0a4) at ntfsundelete.c:2166
Comment 4 SpanKY gentoo-dev 2011-09-29 17:52:27 UTC
you need to post `emerge --info` with every bug report
Comment 5 Víctor Ostorga (RETIRED) gentoo-dev 2011-09-29 19:22:56 UTC
(In reply to comment #4)
> you need to post `emerge --info` with every bug report

Portage 2.1.10.11 (default/linux/x86/10.0, gcc-4.4.5, glibc-2.12.2-r0, 2.6.39-gentoo-r3-vostorga-0.4f i686)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-vostorga-0.4f-i686-Intel-R-_Pentium-R-_D_CPU_3.40GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 07 Sep 2011 15:30:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/  http://gentoo.arcticnetwork.ca/source/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa bash-completion berkdb bluetooth bzip2 cli cracklib crypt cups cxx dbus dri fortran gdbm gnome gpm gtk iconv ipv6 jpeg jpeg2k libnotify mmx modules mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python readline samba session sse sse2 ssl svg sysfs tcpd truetype udev unicode usb utf8 vim-syntax x86 xinerama xml xorg xprint zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 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="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2011-10-10 08:27:21 UTC
There is NTFS-3G 2011.10.9-RC Release Candidate available and it fixes some bugs:

ntfsundelete: try to recover the file name when undeleting
ntfsundelete: use inode number to name unnamed files

Probably it's worth to try and if it fixes issue backport patch.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2012-03-30 08:33:11 UTC
Please retry with =sys-fs/ntfs3g-2012.1.15-r1 or above. It's now the current stable and ntfsprogs is no longer in the tree. Reopen the bug if the problem persists, or change to FIXED if fixed.