FS#48268 - [f2fs-tools] segfault when running fsck.f2fs at boot

Attached to Project: Arch Linux
Opened by XazZ (XazZ) - Saturday, 20 February 2016, 10:57 GMT
Last edited by Tobias Powalowski (tpowa) - Thursday, 12 May 2016, 12:26 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
When fsck.f2fs is run during boot (automatically) it segfaults:
fsck.f2fs[651]: segfault at 84 ip 000000000040c1c2 sp 00007ffd81b064c0 error 4 in fsck.f2fs[400000+12000]


Additional info:
* f2fs-tools 1.6.0-1


Steps to reproduce:
fsck.f2fs -a /dev/your/part


This bug is already fixed upstream:
https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/commit/fsck/mount.c?h=dev&id=231fc70f6e9d57658393911c705346b061f23513
Please apply this patch to the Arch Linux package as well until a new upstream version is released
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Thursday, 12 May 2016, 12:26 GMT
Reason for closing:  Fixed
Comment by Juan Simón (j1simon) - Friday, 26 February 2016, 16:00 GMT
Same problem.
Comment by Juan Simón (j1simon) - Tuesday, 08 March 2016, 19:26 GMT
Any progress?
Comment by Juan Simón (j1simon) - Sunday, 13 March 2016, 00:11 GMT
I have tested f2fs-tools with that patch and it still fails.
Comment by Mr. Smith (eNTi) - Tuesday, 15 March 2016, 08:30 GMT
Just encountered this today on my machine. Did not try to apply the patch as of this writing.
Comment by XazZ (XazZ) - Monday, 28 March 2016, 07:31 GMT
@j1simon: seems to work fine for me (I did not apply just one patch but I used some git revision I can't remember right now).
I also re-tested it with upstream version 1.6.1 (which was released 5 days ago): seems fixed upstream!
Comment by Juan Simón (j1simon) - Monday, 28 March 2016, 17:26 GMT
In my case the problem wasn't f2fs-tools, it was the kernel version.
This is the last time that happened:
mar 26 15:25:30 arch.local kernel: fsck.f2fs[204]: segfault at 84 ip 000000000040e8ca sp 00007fffa6eb5230 error 4 in fsck.f2fs[400000+15000]

On that same day the kernel is updated:
[2016-03-26 15:27] [ALPM] upgraded linux-ck-nehalem (4.3.6-1 -> 4.4.6-1)

And now the problem is gone.
Comment by XazZ (XazZ) - Thursday, 21 April 2016, 19:14 GMT
this is now solved with the update of f2fs-tools to 1.6.1-1
Comment by Michael (c0da) - Saturday, 07 May 2016, 12:27 GMT
  • Field changed: Percent Complete (100% → 0%)
My fsck.f2fs still crashes with the same symptoms.

Version: f2fs-tools 1.6.1-1

The message from dmesg:

[ 3.299492] fsck.f2fs[150]: segfault at 84 ip 000000000040c1c2 sp 00007fff68c33280 error 4 in fsck.f2fs[400000+12000]
Comment by Michael (c0da) - Sunday, 08 May 2016, 04:33 GMT
Whoops! I forgot to rebuild my initram. After rebuilding everything works fine. Sorry for misreporting.

Loading...