abrt version: 2.0.1 architecture: i686 cmdline: ntfsfix /dev/sdc1 component: ntfs-3g crash_function: __libc_free executable: /bin/ntfsfix kernel: 2.6.38.6-27.fc15.i686.PAE os_release: Fedora release 15 (Lovelock) package: ntfsprogs-2011.4.12-3.fc15 rating: 4 reason: Process /bin/ntfsfix was killed by signal 11 (SIGSEGV) time: Tue Jun 7 08:04:05 2011 uid: 500 username: piio backtrace: :[New LWP 3883] :[Thread debugging using libthread_db enabled] :Core was generated by `ntfsfix /dev/sdc1'. :Program terminated with signal 11, Segmentation fault. :#0 __libc_free (mem=0x44) at malloc.c:3709 :3709 malloc.c: No such file or directory. : in malloc.c : :Thread 1 (Thread 0xb7781b50 (LWP 3883)): :#0 __libc_free (mem=0x44) at malloc.c:3709 : ar_ptr = <optimized out> : p = <optimized out> : hook = 0 :#1 0x0804a12a in fix_startup (flags=0, dev=0x89b9008) at ntfsfix.c:850 : dev_open = <optimized out> : full_bs = <optimized out> : bs = <optimized out> : sector_size = <optimized out> : res = -1 : vol = <optimized out> : shown_sectors = <optimized out> : br = <optimized out> : eo = 13 :#2 fix_mount () at ntfsfix.c:888 : ret = 0 : vol = <optimized out> : dev = 0x89b9008 : flags = 0 :#3 main (argc=2, argv=0xbfc46904) at ntfsfix.c:955 : vol = <optimized out> : mnt_flags = 0 : flags = <optimized out> : ret = 1 : __FUNCTION__ = "main" :From To Syms Read Shared Object Library :0x4685bbc0 0x468a532c Yes /lib/libntfs-3g.so.81 :0x467c65f0 0x467d1d3c Yes /lib/libpthread.so.0 :0x4664bd10 0x46769b64 Yes /lib/libc.so.6 :0x46614850 0x4662baff Yes /lib/ld-linux.so.2 :$1 = 0x0 :No symbol "__glib_assert_msg" in current context. :eax 0x0 0 :ecx 0x44 68 :edx 0xd 13 :ebx 0x467bbff4 1182515188 :esp 0xbfc46788 0xbfc46788 :ebp 0xbfc46868 0xbfc46868 :esi 0x0 0 :edi 0xd 13 :eip 0x466aa026 0x466aa026 <__libc_free+54> :eflags 0x210206 [ PF IF RF ID ] :cs 0x73 115 :ss 0x7b 123 :ds 0x7b 123 :es 0x7b 123 :fs 0x0 0 :gs 0x33 51 :Dump of assembler code for function __libc_free: : 0x466a9ff0 <+0>: sub $0x14,%esp : 0x466a9ff3 <+3>: mov %ebx,0x8(%esp) : 0x466a9ff7 <+7>: mov 0x18(%esp),%ecx : 0x466a9ffb <+11>: call 0x4674fe93 <__i686.get_pc_thunk.bx> : 0x466aa000 <+16>: add $0x111ff4,%ebx : 0x466aa006 <+22>: mov %esi,0xc(%esp) : 0x466aa00a <+26>: mov %edi,0x10(%esp) : 0x466aa00e <+30>: mov -0x44(%ebx),%eax : 0x466aa014 <+36>: mov (%eax),%eax : 0x466aa016 <+38>: test %eax,%eax : 0x466aa018 <+40>: jne 0x466aa0dc <__libc_free+236> : 0x466aa01e <+46>: test %ecx,%ecx : 0x466aa020 <+48>: je 0x466aa0b0 <__libc_free+192> :=> 0x466aa026 <+54>: mov -0x4(%ecx),%esi : 0x466aa029 <+57>: lea -0x8(%ecx),%edx : 0x466aa02c <+60>: test $0x2,%esi : 0x466aa032 <+66>: jne 0x466aa068 <__libc_free+120> : 0x466aa034 <+68>: and $0x4,%esi : 0x466aa037 <+71>: lea 0x13ec(%ebx),%eax : 0x466aa03d <+77>: je 0x466aa048 <__libc_free+88> : 0x466aa03f <+79>: mov %edx,%eax : 0x466aa041 <+81>: and $0xfff00000,%eax : 0x466aa046 <+86>: mov (%eax),%eax : 0x466aa048 <+88>: mov 0x8(%esp),%ebx : 0x466aa04c <+92>: movl $0x0,0x18(%esp) : 0x466aa054 <+100>: mov 0xc(%esp),%esi : 0x466aa058 <+104>: mov 0x10(%esp),%edi : 0x466aa05c <+108>: add $0x14,%esp : 0x466aa05f <+111>: jmp 0x466a67b0 <_int_free> : 0x466aa064 <+116>: lea 0x0(%esi,%eiz,1),%esi : 0x466aa068 <+120>: mov 0x186c(%ebx),%eax : 0x466aa06e <+126>: test %eax,%eax : 0x466aa070 <+128>: jne 0x466aa07a <__libc_free+138> : 0x466aa072 <+130>: cmp 0x1854(%ebx),%esi : 0x466aa078 <+136>: ja 0x466aa0c0 <__libc_free+208> : 0x466aa07a <+138>: and $0xfffffff8,%esi : 0x466aa07d <+141>: mov -0x8(%ecx),%eax : 0x466aa080 <+144>: mov %edx,%ecx : 0x466aa082 <+146>: sub %eax,%ecx : 0x466aa084 <+148>: add %eax,%esi : 0x466aa086 <+150>: mov 0x1870(%ebx),%eax : 0x466aa08c <+156>: mov %esi,%edi : 0x466aa08e <+158>: or %ecx,%edi : 0x466aa090 <+160>: sub $0x1,%eax : 0x466aa093 <+163>: test %eax,%edi : 0x466aa095 <+165>: jne 0x466aa0eb <__libc_free+251> : 0x466aa097 <+167>: subl $0x1,0x1860(%ebx) : 0x466aa09e <+174>: sub %esi,0x1874(%ebx) : 0x466aa0a4 <+180>: mov %esi,0x4(%esp) : 0x466aa0a8 <+184>: mov %ecx,(%esp) : 0x466aa0ab <+187>: call 0x4670b4f0 <munmap> : 0x466aa0b0 <+192>: mov 0x8(%esp),%ebx : 0x466aa0b4 <+196>: mov 0xc(%esp),%esi : 0x466aa0b8 <+200>: mov 0x10(%esp),%edi : 0x466aa0bc <+204>: add $0x14,%esp : 0x466aa0bf <+207>: ret : 0x466aa0c0 <+208>: cmp $0x80000,%esi : 0x466aa0c6 <+214>: ja 0x466aa07a <__libc_free+138> : 0x466aa0c8 <+216>: and $0xfffffff8,%esi : 0x466aa0cb <+219>: lea (%esi,%esi,1),%eax : 0x466aa0ce <+222>: mov %esi,0x1854(%ebx) : 0x466aa0d4 <+228>: mov %eax,0x184c(%ebx) : 0x466aa0da <+234>: jmp 0x466aa07d <__libc_free+141> : 0x466aa0dc <+236>: mov 0x14(%esp),%edx : 0x466aa0e0 <+240>: mov %ecx,(%esp) : 0x466aa0e3 <+243>: mov %edx,0x4(%esp) : 0x466aa0e7 <+247>: call *%eax : 0x466aa0e9 <+249>: jmp 0x466aa0b0 <__libc_free+192> : 0x466aa0eb <+251>: mov 0x8(%esp),%ebx : 0x466aa0ef <+255>: mov %edx,%eax : 0x466aa0f1 <+257>: mov 0xc(%esp),%esi : 0x466aa0f5 <+261>: mov 0x10(%esp),%edi : 0x466aa0f9 <+265>: add $0x14,%esp : 0x466aa0fc <+268>: jmp 0x4664c603 <munmap_chunk> :End of assembler dump. build_ids: :6f6990307c70f74ac965124f51a3a7322885639c :876e9393bc3036cf739b7c6b5650ee30bc0ca1ce :2ca8544b0ff9269420c23a0ac22da52b7894148b :dcf4204c5d441af11e34bc3990b8cb25d7cf1cd6 :8ff89a194e5831bff9de18610af4cfcb5ced75d8 :56605d58a31a73d62633489d68080067e35eb5d5 dsos: :/lib/libntfs-3g.so.81.0.0 ntfs-3g-2:2011.4.12-3.fc15.i686 (Fedora Project) 1305022428 :/lib/libpthread-2.14.so glibc-2.14-2.i686 (Fedora Project) 1307175259 :/lib/ld-2.14.so glibc-2.14-2.i686 (Fedora Project) 1307175259 :/bin/ntfsfix ntfsprogs-2:2011.4.12-3.fc15.i686 (Fedora Project) 1305022444 :/lib/libc-2.14.so glibc-2.14-2.i686 (Fedora Project) 1307175259 environ: :ORBIT_SOCKETDIR=/tmp/orbit-piio :XDG_SESSION_ID=2 :HOSTNAME=491-0859.firmy.pl :IMSETTINGS_INTEGRATE_DESKTOP=yes :GPG_AGENT_INFO=/tmp/keyring-QrzIo0/gpg:0:1 :TERM=xterm :SHELL=/bin/bash :HISTSIZE=1000 :XDG_SESSION_COOKIE=179ebf0cc02daa4b985986e000000015-1307423327.913470-1643917957 :GJS_DEBUG_OUTPUT=stderr :WINDOWID=56623110 :OLDPWD=/media/data :GNOME_KEYRING_CONTROL=/tmp/keyring-QrzIo0 :'GJS_DEBUG_TOPICS=JS ERROR;JS LOG' :IMSETTINGS_MODULE=none :USER=piio :LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36: :SSH_AUTH_SOCK=/tmp/keyring-QrzIo0/ssh :SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2221,unix/unix:/tmp/.ICE-unix/2221 :USERNAME=piio :PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin :MAIL=/var/spool/mail/piio :DESKTOP_SESSION=gnome :QT_IM_MODULE=xim :PWD=/home/piio :XMODIFIERS=@im=none :GNOME_KEYRING_PID=2213 :LANG=pl_PL.utf8 :KDE_IS_PRELINKED=1 :GDM_LANG=pl_PL.utf8 :KDEDIRS=/usr :GDMSESSION=gnome :HISTCONTROL=ignoredups :HOME=/home/piio :SHLVL=2 :GNOME_DESKTOP_SESSION_ID=this-is-deprecated :LOGNAME=piio :CVS_RSH=ssh :DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-lvRkoqhdOF,guid=8750dac115ccb4ba6708523d000000c4 :'LESSOPEN=||/usr/bin/lesspipe.sh %s' :WINDOWPATH=1 :XDG_RUNTIME_DIR=/run/user/piio :DISPLAY=:0 :G_BROKEN_FILENAMES=1 :COLORTERM=gnome-terminal :XAUTHORITY=/var/run/gdm/auth-for-piio-SWGSfT/database :_=/bin/ntfsfix event_log: :2011-06-08-07:38:30> Analyzing coredump 'coredump' :2011-06-08-07:38:30 Zrzut core odnosi się do 6 plików debuginfo, 2 z nich nie jest zainstalowanych :2011-06-08-07:38:33 Wyszukiwanie wymaganych pakietów w repozytoriach :2011-06-08-07:38:33 Pakiety do pobrania: 1 :2011-06-08-07:38:33 Pobieranie 1.24Mb, rozmiar po zainstalowaniu: 5.26Mb :2011-06-08-07:38:34 Pobieranie (1 z 1) ntfs-3g-debuginfo-2011.4.12-3.fc15.i686.rpm: 100% :2011-06-08-07:38:34 Wypakowywanie cpio z /tmp/abrt-tmp-debuginfo-2011-06-08-07:38:30.1211/ntfs-3g-debuginfo-2011.4.12-3.fc15.i686.rpm :2011-06-08-07:38:35 Umieszczanie plików z unpacked.cpio utworzonych z ntfs-3g-debuginfo-2011.4.12-3.fc15.i686.rpm w pamięci podręcznej :2011-06-08-07:38:35 Wszystkie pobrane pakiety zostały wypakowane, usuwanie /tmp/abrt-tmp-debuginfo-2011-06-08-07:38:30.1211 :2011-06-08-07:38:35 Backtrace is generated and saved, 5273 bytes maps: :00a1b000-00a1c000 r-xp 00000000 00:00 0 [vdso] :08048000-08050000 r-xp 00000000 fd:02 6137 /bin/ntfsfix :08050000-08051000 rw-p 00007000 fd:02 6137 /bin/ntfsfix :089b9000-089fd000 rw-p 00000000 00:00 0 [heap] :46614000-46631000 r-xp 00000000 fd:02 1876 /lib/ld-2.14.so :46631000-46632000 r--p 0001d000 fd:02 1876 /lib/ld-2.14.so :46632000-46633000 rw-p 0001e000 fd:02 1876 /lib/ld-2.14.so :46635000-467ba000 r-xp 00000000 fd:02 8471 /lib/libc-2.14.so :467ba000-467bc000 r--p 00184000 fd:02 8471 /lib/libc-2.14.so :467bc000-467bd000 rw-p 00186000 fd:02 8471 /lib/libc-2.14.so :467bd000-467c0000 rw-p 00000000 00:00 0 :467c2000-467d8000 r-xp 00000000 fd:02 25539 /lib/libpthread-2.14.so :467d8000-467d9000 r--p 00015000 fd:02 25539 /lib/libpthread-2.14.so :467d9000-467da000 rw-p 00016000 fd:02 25539 /lib/libpthread-2.14.so :467da000-467dc000 rw-p 00000000 00:00 0 :46853000-468b8000 r-xp 00000000 fd:02 4643 /lib/libntfs-3g.so.81.0.0 :468b8000-468ba000 rw-p 00064000 fd:02 4643 /lib/libntfs-3g.so.81.0.0 :b7780000-b7782000 rw-p 00000000 00:00 0 :b779c000-b779e000 rw-p 00000000 00:00 0 :bfc27000-bfc48000 rw-p 00000000 00:00 0 [stack]
Created attachment 503654 [details] Proposed patch against segv This is a proposed patch for not ending up in a SEGV when the bootsector is really bad and cannot be fixed. With this patch, ntfsfix will still be unable to fix your bootsector (it will be left unchanged).
The bootsector of your /dev/sdc1 does not look like an NTFS bootsector. If you have reasons to believe this is an NTFS partition, please make a copy of the bootsector by issuing as root the command "dd if=/dev/sdc1 of=boot-copy bs=512 count=1". Assuming the partition was formatted as NTFS, there is a backup of the bootsector in the last sector. First determine the number of sectors in sdc1 by issuing the command "/sbin/sfdisk -uS -l /dev/sdc", then make a copy of the last sector by "dd if=/dev/sdc1 of=backup-copy skip=xxxxx bs=512 count=1" where xxxxx is the number of sectors minus one. If you post both files, we can determine whether your partition can be repaired.
(In reply to comment #1) > Created attachment 503654 [details] > Proposed patch against segv > > This is a proposed patch for not ending up in a SEGV when the bootsector is > really bad and cannot be fixed. With this patch, ntfsfix will still be unable > to fix your bootsector (it will be left unchanged). Assuming that this patch is applied upstream, is a new version coming soon, or should I push an update in the interim?
This patch will be integrated in next upstream version (which is not planned yet). The patch just leads to a normal termination instead of a SEGV when a bad bootsector cannot be fixed. It does not fix the bootsector (I need to know more about the bootsector data).
(In reply to comment #4) > This patch will be integrated in next upstream version (which is not planned > yet). > > The patch just leads to a normal termination instead of a SEGV when a bad > bootsector cannot be fixed. It does not fix the bootsector (I need to know more > about the bootsector data). Okay. Given that, and the lack of other cases where this tool is hitting "bad bootsectors", I'm just going to wait on pushing an update for the next major ntfs-3g release.
ntfs-3g-2011.4.12-4.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/ntfs-3g-2011.4.12-4.fc15
ntfs-3g-2011.4.12-4.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/ntfs-3g-2011.4.12-4.el6
ntfs-3g-2011.4.12-4.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/ntfs-3g-2011.4.12-4.el5
ntfs-3g-2011.4.12-4.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/ntfs-3g-2011.4.12-4.fc16
ntfs-3g-2011.4.12-4.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/ntfs-3g-2011.4.12-4.fc14
Package ntfs-3g-2011.4.12-4.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing ntfs-3g-2011.4.12-4.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/ntfs-3g-2011.4.12-4.fc16 then log in and leave karma (feedback).
ntfs-3g-2011.4.12-5.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/ntfs-3g-2011.4.12-5.fc16
ntfs-3g-2011.4.12-5.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/ntfs-3g-2011.4.12-5.el5
ntfs-3g-2011.4.12-5.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/ntfs-3g-2011.4.12-5.fc14
ntfs-3g-2011.4.12-5.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/ntfs-3g-2011.4.12-5.el6
ntfs-3g-2011.4.12-5.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/ntfs-3g-2011.4.12-5.fc15
ntfs-3g-2011.4.12-5.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
ntfs-3g-2011.4.12-5.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
ntfs-3g-2011.4.12-5.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
ntfs-3g-2011.4.12-5.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
ntfs-3g-2011.4.12-5.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.