From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@bugzilla.kernel.org Subject: [Bug 201911] New: High frequency of gc cause application database corrupt Date: Fri, 07 Dec 2018 02:38:40 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gV62S-0004YN-Iq for linux-f2fs-devel@lists.sourceforge.net; Fri, 07 Dec 2018 02:38:48 +0000 Received: from mail.wl.linuxfoundation.org ([198.145.29.98]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1gV62Q-005OfS-N4 for linux-f2fs-devel@lists.sourceforge.net; Fri, 07 Dec 2018 02:38:48 +0000 Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B9F22D175 for ; Fri, 7 Dec 2018 02:38:40 +0000 (UTC) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: linux-f2fs-devel@lists.sourceforge.net https://bugzilla.kernel.org/show_bug.cgi?id=201911 Bug ID: 201911 Summary: High frequency of gc cause application database corrupt Product: File System Version: 2.5 Kernel Version: 4.9 Hardware: ARM OS: Linux Tree: Mainline Status: NEW Severity: high Priority: P1 Component: f2fs Assignee: filesystem_f2fs@kernel-bugs.kernel.org Reporter: liu_shuang_lin@163.com Regression: No Hello, Android phone with kernel 4.9, f2fs version based on 2018-06-04 version with commit description "f2fs: run fstrim asynchronously if runtime discard is on", fill 2G space totaly, with a 4K small file each, and then delete 1G, set gc_urgent_sleep_time to 300, and gc_urgent to 1. then do monkey test, 40% cause application database corrupt, below is main log error info: ---------------------------------------- 11-25 21:42:27.874 21412 21412 W System.err: Application uncaught exception in thread "main" com.tencent.wcdb.database.SQLiteDatabaseCorruptException: database disk image is malformed (code 11, errno 0): 11-25 21:42:27.874 21412 21412 W System.err: at com.tencent.wcdb.database.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method) 11-25 21:42:27.874 21412 21412 W System.err: at com.tencent.wcdb.database.SQLiteConnection.executeForLastInsertedRowId(SourceFile:887) 11-25 21:42:27.874 21412 21412 W System.err: at com.tencent.wcdb.database.SQLiteSession.executeForLastInsertedRowId(SourceFile:742) 11-25 21:42:27.874 21412 21412 W System.err: at com.tencent.wcdb.database.SQLiteStatement.executeInsert(SourceFile:127) 11-25 21:42:27.874 21412 21412 W System.err: at com.tencent.wcdb.database.SQLiteStatement.executeInsert(SourceFile:110) 11-25 21:42:27.874 21412 21412 W System.err: at com.tencent.wcdb.database.SQLiteDatabase.insertWithOnConflict(SourceFile:1678) 11-25 21:42:27.874 21412 21412 W System.err: at com.tencent.wcdb.database.SQLiteDatabase.insert(SourceFile:1528) 11-25 21:42:27.874 21412 21412 W System.err: at com.tencent.mm.cg.f.insert(SourceFile:645) 11-25 21:42:27.874 21412 21412 W System.err: at com.tencent.mm.cg.h.a(SourceFile:561) 11-25 21:42:27.874 21412 21412 W System.err: at com.tencent.mm.storage.bj.b(SourceFile:1583) 11-25 21:42:27.874 21412 21412 W System.err: at com.tencent.mm.modelmulti.h.(SourceFile:120) 11-25 21:42:27.874 21412 21412 W System.err: at com.tencent.mm.ui.chatting.b.ah$1.run(SourceFile:176) 11-25 21:42:27.874 21412 21412 W System.err: at com.tencent.mm.sdk.platformtools.ao.run(SourceFile:127) 11-25 21:42:27.874 21412 21412 W System.err: at android.os.Handler.handleCallback(Handler.java:873) 11-25 21:42:27.874 21412 21412 W System.err: at android.os.Handler.dispatchMessage(Handler.java:99) 11-25 21:42:27.874 21412 21412 W System.err: at com.tencent.mm.sdk.platformtools.aj.dispatchMessage(SourceFile:122) 11-25 21:42:27.874 21412 21412 W System.err: at android.os.Looper.loop(Looper.java:217) 11-25 21:42:27.874 21412 21412 W System.err: at android.app.ActivityThread.main(ActivityThread.java:7351) 11-25 21:42:27.874 21412 21412 W System.err: at java.lang.reflect.Method.invoke(Native Method) 11-25 21:42:27.874 21412 21412 W System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499) 11-25 21:42:27.874 21412 21412 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:865) ---------------------------------------- in comparison, if decrease gc frequency, the corrupt frequency also decreased. -- You are receiving this mail because: You are watching the assignee of the bug.