From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4575 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: LMDB test failures under musl on mips Date: Fri, 14 Feb 2014 00:26:48 +0100 Message-ID: <20140213232648.GG23551@port70.net> References: <20140213205040.GC19573@nodbug.moloch.sk> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="bp/iNruPH9dso1Pn" X-Trace: ger.gmane.org 1392334019 11432 80.91.229.3 (13 Feb 2014 23:26:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2014 23:26:59 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4579-gllmg-musl=m.gmane.org@lists.openwall.com Fri Feb 14 00:27:06 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WE5gL-0004eJ-OT for gllmg-musl@plane.gmane.org; Fri, 14 Feb 2014 00:27:01 +0100 Original-Received: (qmail 17543 invoked by uid 550); 13 Feb 2014 23:27:00 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 17532 invoked from network); 13 Feb 2014 23:27:00 -0000 Content-Disposition: inline In-Reply-To: <20140213205040.GC19573@nodbug.moloch.sk> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4575 Archived-At: --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * Martin Lucina [2014-02-13 21:50:40 +0100]: > You can reproduce the problem fairly easily by building the mtest* programs > that come with LMDB. Running mtest a few times (after creating ./testdb) > reliably gives either a segfault or various assertion failures in LMDB. ok i could reproduce it i got the following assertion failure: mdb.c:2001: Assertion 'mp->mp_pgno != pgno' failed in mdb_page_touch() (it's on real hw without debugger, but i have strace now) --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="mtest.txt" execve("./mtest", ["./mtest"], [/* 11 vars */]) = 0 clock_gettime(CLOCK_REALTIME, {1392333473, 890526084}) = 0 getpid() = 28121 mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2abe1000 mmap(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ac62000 open("./testdb/lock.mdb", O_RDWR|O_CREAT|O_LARGEFILE|0x80000, 0664) = 3 rt_sigprocmask(SIG_UNBLOCK, [RT_1 RT_2], NULL, 16) = 0 set_thread_area(0x2abe7d68) = 0 set_tid_address(0x2abe0cb8) = 28121 fcntl64(3, F_SETLK64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}, 0x7f9ee820) = 0 _llseek(3, 0, [8192], SEEK_END) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0x2abce000 open("./testdb/data.mdb", O_RDWR|O_CREAT|O_LARGEFILE, 0664) = 4 pread(4, "\0\0\0\0\0\0\0\10\0\0\0\0\276\357\300\336\0\0\0\1*\326@\0\0\240\0\0\0\0\20\0"..., 92, 0) = 92 pread(4, "\0\0\0\1\0\0\0\10\0\0\0\0\276\357\300\336\0\0\0\1*\326@\0\0\240\0\0\0\0\20\0"..., 92, 4096) = 92 mmap(0x2ad64000, 10485760, PROT_READ, MAP_SHARED, 4, 0) = 0x2ad64000 open("./testdb/data.mdb", O_RDWR|O_SYNC|O_LARGEFILE) = 5 fcntl64(3, F_SETLK64, {type=F_RDLCK, whence=SEEK_SET, start=0, len=1}, 0x7f9ee878) = 0 brk(0) = 0x423000 brk(0x425000) = 0x425000 ioctl(1, TIOCNXCL, 0x7f9ee6e0) = -1 ENOTTY (Inappropriate ioctl for device) writev(1, [{"Adding 75", 9}, {" values\n", 8}], 2) = 17 brk(0x427000) = 0x427000 brk(0x429000) = 0x429000 pwrite(4, "\0\0\0\2\0\0\0\1\0\20\17\354\17\370\17\354\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096, 8192) = 4096 _llseek(4, 40960, [40960], SEEK_SET) = 0 writev(4, [{"\0\0\0\n\0\0\0\2\0\212\5,\17\324\17\250\17|\17P\17$\16\370\16\314\7\354\16\240\16t"..., 4096}, {"\0\0\0\v\0\0\0\2\0\20\17\310\17\344\17\310\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], 2) = 8192 fdatasync(4) = 0 pwrite(5, "\0\1\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\2\0\0\0\v\0\0\0\0\0\0\0\2\0\0"..., 58, 34) = 58 writev(1, [{"74 duplicates skipped\nkey: 0x2ad"..., 1021}, {"097 ", 4}], 2) = 1025 writev(1, [{", data: 0x2ad67da4 097 151 foo b"..., 1024}, {"\n", 1}], 2) = 1025 writev(1, [{"key: 0x2ad67b64 114 , data: 0x2a"..., 1020}, {"2ad67640", 8}], 2) = 1028 writev(1, [{" 1a3 419 foo bar\nkey: 0x2ad67820"..., 1023}, {"258 ", 4}], 2) = 1027 writev(1, [{", data: 0x2ad68f04 258 600 foo b"..., 1024}, {"\n", 1}], 2) = 1025 writev(1, [{"key: 0x2ad68c98 327 , data: 0x2a"..., 1020}, {"2ad68ab8", 8}], 2) = 1028 writev(1, [{" 377 887 foo bar\nkey: 0x2ad68a88"..., 1024}, {"3f4 ", 4}], 2) = 1028 _llseek(4, 16384, [16384], SEEK_SET) = 0 writev(4, [{"\0\0\0\4\0\0\0\1\0\20\17\354\17\370\17\354\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}, {"\0\0\0\5\0\0\0\2\0\210\5X\17\324\17\250\17|\17P\17$\16\370\16\314\7\354\16\240\16t"..., 4096}, {"\0\0\0\6\0\0\0\2\0\20\17\310\17\344\17\310\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], 3) = 12288 fdatasync(4) = 0 pwrite(5, "\0\1\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\2\0\0\0\6\0\0\0\0\0\0\0\2\0\0"..., 58, 4130) = 58 writev(2, [{"mdb.c:2001: Assertion 'mp->mp_pg"..., 71}, {NULL, 0}], 2mdb.c:2001: Assertion 'mp->mp_pgno != pgno' failed in mdb_page_touch() ) = 71 rt_sigprocmask(SIG_BLOCK, ~[RT_0 RT_1 RT_2], [], 16) = 0 gettid() = 28121 getpid() = 28121 tgkill(28121, 28121, SIGIOT) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 16) = 0 --- SIGIOT (Aborted) @ 0 (0) --- +++ killed by SIGIOT +++ Aborted --bp/iNruPH9dso1Pn--