Subject: mutex problem
To: None <current-users@netbsd.org, netbsd-users@netbsd.org>
From: haad <haaaad@gmail.com>
List: netbsd-users
Date: 09/29/2005 13:55:11
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
i am student and for my work in school i need cad utility for writing
VHDL sources.
So today I try to install cad/electric everything compiled fine but when
i try to tun it I receive this error
electric: Error detected by libpthread: Unlocking unlocked mutex.
Detected by file "/usr/src/lib/libpthread/pthread_mutex.c", line 345,
function "pthread_mutex_unlock".
See pthread(3) for information.
Abort (core dumped)
I am using current NetBSD 3.99.8 NetBSD 3.99.8 #0: Tue Sep 20 11:05:16
CEST 2005 self configured kernel .
at the end of ktrace.out i found this 1652
readlink(0xbd7d3a4e,0xbfbfe608,0x3f)
1652 electric NAMI "/etc/malloc.conf"
1652 electric RET readlink -1 errno 2 No such file or directory
1652 electric CALL mmap(0,0x1000,3,0x1002,0xffffffff,0,0,0)
1652 electric RET mmap -1111547904/0xbdbf2000
1652 electric CALL break(0x8499114)
1652 electric RET break 0
1652 electric CALL break(0x849a114)
1652 electric RET break 0
1652 electric CALL break(0x849b000)
1652 electric RET break 0
1652 electric CALL break(0x849c000)
1652 electric RET break 0
1652 electric CALL mlock(0xbd8e6670,8)
1652 electric RET mlock 0
1652 electric CALL __sysctl(0xbfbfe610,2,0xbfbfe608,0xbfbfe60c,0,0)
1652 electric RET __sysctl 0
1652 electric CALL getrlimit(3,0xbfbfe678)
1652 electric RET getrlimit 0
1652 electric CALL __sysctl(0xbfbfe5f0,2,0xbfbfe5e8,0xbfbfe5ec,0,0)
1652 electric RET __sysctl 0
1652 electric CALL mprotect(0xbfa01000,0x1000,0)
1652 electric RET mprotect 0
1652 electric CALL __sigprocmask14(0,0,0xbd8e5d40)
1652 electric RET __sigprocmask14 0
1652 electric CALL __sysctl(0xbfbfe690,2,0xbfbfe688,0xbfbfe68c,0,0)
1652 electric RET __sysctl 0
1652 electric CALL
__sigaction_sigtramp(4,0xbfbfe780,0xbfbfe760,0xbd7806d8,1)
1652 electric RET __sigaction_sigtramp 0
1652 electric CALL
__sigaction_sigtramp(8,0xbfbfe780,0xbfbfe760,0xbd7806d8,1)
1652 electric RET __sigaction_sigtramp 0
1652 electric CALL
__sigaction_sigtramp(0xa,0xbfbfe780,0xbfbfe760,0xbd7806d8,1)
1652 electric RET __sigaction_sigtramp 0
1652 electric CALL
__sigaction_sigtramp(0xb,0xbfbfe780,0xbfbfe760,0xbd7806d8,1)
1652 electric RET __sigaction_sigtramp 0
1652 electric CALL write(2,0xbfbfe2d0,0xc9)
1652 electric GIO fd 2 wrote 201 bytes
"electric: Error detected by libpthread: Unlocking unlocked mutex.
Detected by file \"/usr/src/lib/libpthread/pthread_mutex.c\",
line 345, function \"pthread_mutex_unlock\
\".
See pthread(3) for information.
"
is this error why it crashes or not ?? I can send whole ktrace output.
and source code where it crashes look like this
default:
if (__predict_false(!weown)) {
pthread__error(EPERM, "Unlocking unlocked mutex",
/*!!!345 line == */ (mutex->ptm_owner != 0));
pthread__error(EPERM,"Unlocking mutex owned by another thread",
weown);
}
break;
}
Cheers Adam :)
- --
Linux is for people who hate windows NetBSD is for people who love UNIX.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDO9Yf9Wt2FT7y228RAoDwAJ4kq8KtfU9/OkKujUyg3eKgRipPiwCfWImJ
prc1YtoWpIVAhyPvqj9mepA=
=ccrN
-----END PGP SIGNATURE-----