Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Melzzzzz <mel@zzzzz.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: [C/POSIX] pthread_exit() |
| Date | 2016-07-25 14:00 +0200 |
| Organization | albasani.net |
| Message-ID | <20160725140043.0ea6bdef@maxa-pc> (permalink) |
| References | <slrnnovao6.boo.jkb@rayleigh.systella.fr> <20160723005217.73ba92bf@maxa-pc> <slrnnpburt.kce.jkb@rayleigh.systella.fr> <20160725134725.765c4080@maxa-pc> <slrnnpbvne.kce.jkb@rayleigh.systella.fr> |
On Mon, 25 Jul 2016 11:58:38 +0000 (UTC) JKB <jkb@koenigsberg.invalid> wrote: > Le Mon, 25 Jul 2016 13:47:25 +0200, > Melzzzzz <mel@zzzzz.com> écrivait : > > On Mon, 25 Jul 2016 11:43:57 +0000 (UTC) > > JKB <jkb@koenigsberg.invalid> wrote: > > > >> Le Sat, 23 Jul 2016 00:52:17 +0200, > >> Melzzzzz <mel@zzzzz.com> écrivait : > >> > On Wed, 20 Jul 2016 16:47:01 +0000 (UTC) > >> > JKB <jkb@koenigsberg.invalid> wrote: > >> > > >> >> Hello, > >> >> > >> >> I'm debugging a huge program that can enter in deadlock > >> >> on a pthread_exit() syscall. I use gcc compiler on Linux or > >> >> NetBSD. > >> > > >> > Do you observe same behavior on both systems? > >> > >> Not exactly. On Linux side, pthread_exit() enters in a > >> deadlock. On NetBSD side, I don't know. Execution stops, but when I > >> try to attach gdb on faulty process, it abots with sigtrap if I > >> remember. > >> > >> I'm sure there is an issue in my code, and I'm not sure > >> that it is pthread related. pthread_exit() only triggers the bug. > >> It's not a memory corruption, maybe a race condition, but I have > >> looked for this condition with a piece of paper without any result. > >> > >> Best regards, > >> > >> JKB > >> > > > > If pthread_exit enters deadlock that means either something holds > > lock or mutex memory is corrupted. NetBSD case shows that probably > > memory is corrupted rather deadlock... > > Maybe. pthread_exit() (on glibc side) enters in deadlock in > libunwind. I don't see how could lock this mutex. It could be > a memory corruption also, but I'm trying to track a memory corruption > for a long time without any success. > > Regards, > > JKB > Do you unmap a lot? Perhaps you just unmap some region of process memory leading to this problem?
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[C/POSIX] pthread_exit() JKB <jkb@koenigsberg.invalid> - 2016-07-20 16:47 +0000
Re: [C/POSIX] pthread_exit() "James R. Kuyper" <jameskuyper@verizon.net> - 2016-07-20 13:42 -0400
Re: [C/POSIX] pthread_exit() Keith Thompson <kst-u@mib.org> - 2016-07-20 11:33 -0700
Re: [C/POSIX] pthread_exit() JKB <jkb@koenigsberg.invalid> - 2016-07-21 10:10 +0000
Re: [C/POSIX] pthread_exit() Randy Howard <rhoward.mx@EverybodyUsesIt.com> - 2016-07-22 08:10 -0500
Re: [C/POSIX] pthread_exit() JKB <jkb@koenigsberg.invalid> - 2016-07-22 13:42 +0000
Re: [C/POSIX] pthread_exit() Randy Howard <rhoward.mx@EverybodyUsesIt.com> - 2016-07-22 09:44 -0500
Re: [C/POSIX] pthread_exit() JKB <jkb@koenigsberg.invalid> - 2016-07-22 14:48 +0000
Re: [C/POSIX] pthread_exit() Richard Heathfield <rjh@cpax.org.uk> - 2016-07-22 14:52 +0100
Re: [C/POSIX] pthread_exit() supercat@casperkitty.com - 2016-07-22 08:51 -0700
Re: [C/POSIX] pthread_exit() James Kuyper <jameskuyper@verizon.net> - 2016-07-22 13:26 -0400
Re: [C/POSIX] pthread_exit() Keith Thompson <kst-u@mib.org> - 2016-07-22 10:28 -0700
Re: [C/POSIX] pthread_exit() Ian Collins <ian-news@hotmail.com> - 2016-07-23 16:12 +1200
Re: [C/POSIX] pthread_exit() Randy Howard <rhoward.mx@EverybodyUsesIt.com> - 2016-07-23 16:43 -0500
Re: [C/POSIX] pthread_exit() "James R. Kuyper" <jameskuyper@verizon.net> - 2016-07-23 18:17 -0400
Re: [C/POSIX] pthread_exit() Keith Thompson <kst-u@mib.org> - 2016-07-23 20:45 -0700
Re: [C/POSIX] pthread_exit() James Kuyper <jameskuyper@verizon.net> - 2016-07-24 07:27 -0400
Re: [C/POSIX] pthread_exit() Randy Howard <rhoward.mx@EverybodyUsesIt.com> - 2016-07-25 15:22 -0500
Re: [C/POSIX] pthread_exit() Ian Collins <ian-news@hotmail.com> - 2016-07-26 08:26 +1200
Re: [C/POSIX] pthread_exit() "James R. Kuyper" <jameskuyper@verizon.net> - 2016-07-25 16:32 -0400
Re: [C/POSIX] pthread_exit() Randy Howard <rhoward.mx@EverybodyUsesIt.com> - 2016-07-25 15:52 -0500
Re: [C/POSIX] pthread_exit() "James R. Kuyper" <jameskuyper@verizon.net> - 2016-07-25 16:59 -0400
Re: [C/POSIX] pthread_exit() Randy Howard <rhoward.mx@EverybodyUsesIt.com> - 2016-07-25 16:36 -0500
Re: [C/POSIX] pthread_exit() Johann Klammer <klammerj@NOSPAM.a1.net> - 2016-07-21 11:54 +0200
Re: [C/POSIX] pthread_exit() JKB <jkb@koenigsberg.invalid> - 2016-07-22 08:17 +0000
Re: [C/POSIX] pthread_exit() JKB <jkb@koenigsberg.invalid> - 2016-07-22 08:47 +0000
Re: [C/POSIX] pthread_exit() Melzzzzz <mel@zzzzz.com> - 2016-07-23 00:52 +0200
Re: [C/POSIX] pthread_exit() JKB <jkb@koenigsberg.invalid> - 2016-07-25 11:43 +0000
Re: [C/POSIX] pthread_exit() Melzzzzz <mel@zzzzz.com> - 2016-07-25 13:47 +0200
Re: [C/POSIX] pthread_exit() JKB <jkb@koenigsberg.invalid> - 2016-07-25 11:58 +0000
Re: [C/POSIX] pthread_exit() Melzzzzz <mel@zzzzz.com> - 2016-07-25 14:00 +0200
Re: [C/POSIX] pthread_exit() JKB <jkb@koenigsberg.invalid> - 2016-07-25 12:18 +0000
Re: [C/POSIX] pthread_exit() Melzzzzz <mel@zzzzz.com> - 2016-07-25 14:20 +0200
Re: [C/POSIX] pthread_exit() JKB <jkb@koenigsberg.invalid> - 2016-07-25 12:26 +0000
Re: [C/POSIX] pthread_exit() Melzzzzz <mel@zzzzz.com> - 2016-07-25 14:28 +0200
Re: [C/POSIX] pthread_exit() JKB <jkb@koenigsberg.invalid> - 2016-07-25 12:35 +0000
Re: [C/POSIX] pthread_exit() JKB <jkb@koenigsberg.invalid> - 2016-07-25 13:44 +0000
csiph-web