NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-arm/50087: all threaded programs crash on arm



The following reply was made to PR port-arm/50087; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: Christos Zoulas <christos%zoulas.com@localhost>
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: port-arm/50087: all threaded programs crash on arm
Date: Tue, 28 Jul 2015 09:04:47 +0200

 We are down to 7 failures as of last night:
 
 http://www.netbsd.org/~martin/evbearmv7hf-atf/54_atf.html#failed-tcs-summary
 
 A few spurious/unclear, none directly crashing inside malloc.
 
 Note that other architectures are hovering int the 1-2 failures range.
 
 One of the reproducable failures on arm (at least for me) is
 a pthread_rwlock_init() failing:
 
 void
 rumpuser_rw_init(struct rumpuser_rw **rwp)
 { 
         struct rumpuser_rw *rw;
         size_t allocsz;
  
         allocsz = (sizeof(*rw)+RUMPUSER_LOCKALIGN) & ~(RUMPUSER_LOCKALIGN-1);
  
         NOFAIL(rw = aligned_alloc(RUMPUSER_LOCKALIGN, allocsz));
         NOFAIL_ERRNO(pthread_rwlock_init(&rw->pthrw, NULL));
 
 and that NOFAIL_ERRNO calls abort():
 
 Core was generated by `t_snapshot_v2'.
 Program terminated with signal SIGABRT, Aborted.
 #0  0x7bb85288 in _lwp_kill () from /usr/lib/libc.so.12
 #0  0x7bb85288 in _lwp_kill () from /usr/lib/libc.so.12
 #1  0x7ba9e290 in abort () at /usr/src/lib/libc/stdlib/abort.c:74
 #2  0x7bc44a34 in rumpuser_rw_init (rwp=0x7b93cc5c) at /usr/src/lib/librumpuser/rumpuser_pth.c:355
 #3  0x7bdaa4ac in vnalloc (mp=mp@entry=0x0) at /usr/src/lib/librumpvfs/../../sys/rump/../kern/vfs_vnode.c:272
 
 
 (http://www.netbsd.org/~martin/evbearmv7hf-atf/54_atf.html#fs_ffs_t_snapshot_v2_snapshotstress)
 
 The other failure is pthread_rwlock_tryrdlock() being called for a NULL
 lock:
 
 Core was generated by `t_renamerace'.
 Program terminated with signal SIGSEGV, Segmentation fault.
 #0  pthread_rwlock_tryrdlock (ptr=ptr@entry=0x0) at /usr/src/lib/libpthread/pthread_rwlock.c:246
 #0  pthread_rwlock_tryrdlock (ptr=ptr@entry=0x0) at /usr/src/lib/libpthread/pthread_rwlock.c:246
 #1  0x7ba45320 in rumpuser_rw_enter (enum_rumprwlock=0, rw=0x0) at /usr/src/lib/librumpuser/rumpuser_pth.c:380
 #2  0x7bbbb868 in namei_getstartdir (state=<optimized out>, state=<optimized out>) at /usr/src/lib/librumpvfs/../../sys/rump/../kern/vfs_lookup.c:539
 
 (http://www.netbsd.org/~martin/evbearmv7hf-atf/54_atf.html#fs_vfs_t_renamerace_nfs_renamerace_dirs)
 
 Martin
 


Home | Main Index | Thread Index | Old Index