https://bugzilla.novell.com/show_bug.cgi?id=354113
User bk@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=354113#c23
Bernhard Kaindl
-fipa-pta -fpack-struct (only a problem if only attrib.c is compiled different) -frtl-abstract-sequences -fwhole-program
which would cause errors just works: mv opts opts.old;touch libntfs-3g/attrib.c;make CFLAGS="-O0 `gcc --help=optimizers,^joined| grep ' -f'|cut -d' ' -f 3|grep -v -e whole -e rtl -e pack -e fipa-pt|tee opts |tr '\n' ' '`" && ./src/ntfs-3g.probe --readonly test ; echo $?;diff opts.old opts I submitted a package with the -O0 workaround to stable, but it would be better to have a gcc fix, because ntfsresize and ntfsclone are also affected, see bug 355151 : Program received signal SIGSEGV, Segmentation fault. 0xb7f25f58 in ntfs_volume_startup (dev=0x93f10e0, flags=0) at volume.c:403 403 if (vol->mftmirr_na->rl[0].lcn != vol->mftmirr_lcn || (gdb) p vol->mftmirr_lcn $1 = 16 (gdb) p vol->mftmirr_na->rl[0].lcn Cannot access memory at address 0x8 --------> That is the same data variable as in this bug: lcn Even the mount issues from kernel NTFS might be releated, just pasting from bug 355151 : NTFS-fs error (device sdb1): ntfs_read_block(): Failed to read from inode 0x1, attribute type 0x80, vcn 0x0, offset 0xe00 because its location on disk could not be determined even after retrying (error code -5). NTFS-fs error (device sdb1): check_mft_mirror(): Failed to read $MFTMirr. NTFS-fs error (device sdb1): load_system_files(): $MFTMirr does not match $MFT. and from this bug, comment 4 : Jan 16 09:47:26 workstation6l klogd: NTFS-fs error (device sda1): ntfs_read_block(): Failed to read from inode 0x1, attribute type 0x80, vcn 0x0, offset 0xe00 because its location on disk could not be determined even after retrying (error code -5). Jan 16 09:47:26 workstation6l klogd: NTFS-fs error (device sda1): check_mft_mirror(): Failed to read $MFTMirr. Jan 16 09:47:26 workstation6l klogd: NTFS-fs error (device sda1): load_system_files(): $MFTMirr does not match $MFT. Mounting read-only. Run ntfsfix and/or chkdsk. AFAIK, for the kernel, we cannot compile single files with -O0 because it needs optimisations from O2 to produce working code (for inline, I think), so we'd probably have to compile the kernel gcc41 if this bug is not fixed before Alpha3. Other users also report this issue: bug 360566 bug 362568 bug 359936 looks strange bug has 3 duplicates closed on it which clearly fit to this bug: bug 356195 bug 359667 and bug 360440 I am going to close those NTFS-mount bugs as duplicates of this bug now and rise priority to high. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.