[Top][All Lists]

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

Re: [Chicken-users] Strange segfaults when linking with pthreads

From: Peter Bex
Subject: Re: [Chicken-users] Strange segfaults when linking with pthreads
Date: Thu, 3 Mar 2011 22:56:26 +0100
User-agent: Mutt/

On Thu, Mar 03, 2011 at 10:48:01PM +0100, Felix wrote:
> > I've been observing something really strange for a while and decided to
> > finally dig a little deeper.  It appears that when I link to libpthread,
> > even if I don't use it, Chicken segfaults.
> > 
> What does "LD_DEBUG=all csi ..." say?

Nothing. Is that a GNU libc-only option or something?

> What happens when you run it in gdb?

It also segfaults.  I get this:

Program received signal SIGSEGV, Segmentation fault.
0x00007f7ffcd0b884 in pthread_exit () from /usr/lib/
(gdb) bt
#0  0x00007f7ffcd0b884 in pthread_exit () from /usr/lib/
#1  0x00007f7ffcd0b9db in pthread__cancelled () from /usr/lib/
#2  0x00007f7ffcd0661c in select () from /usr/lib/
#3  0x00007f7ffd943694 in stub285 () from /usr/pkg/lib/
#4  0x00007f7ffd943fe9 in f_523 () from /usr/pkg/lib/
#5  0x00007f7ffd943954 in f_519 () from /usr/pkg/lib/
#6  0x00007f7ffd9440ba in f_514 () from /usr/pkg/lib/
#7  0x00007f7ffd944233 in f_484 () from /usr/pkg/lib/
#8  0x00007f7ffd7b8089 in f_17762 () from /usr/pkg/lib/
#9  0x00007f7ffd9b4fda in C_call_cc () from /usr/pkg/lib/
#10 0x00007f7ffd7ca75d in f_17756 () from /usr/pkg/lib/
#11 0x00007f7ffd8bda3e in f_1854 () from /usr/pkg/lib/
#12 0x00007f7ffd9420ae in f_1289 () from /usr/pkg/lib/
#13 0x00007f7ffd942191 in f_1286 () from /usr/pkg/lib/
#14 0x00007f7ffd944334 in f_1343 () from /usr/pkg/lib/
#15 0x00007f7ffd94447b in f_1282 () from /usr/pkg/lib/
#16 0x00007f7ffd8bf2cf in f_1851 () from /usr/pkg/lib/
#17 0x00007f7ffd77a2e0 in f_9996 () from /usr/pkg/lib/
#18 0x00007f7ffd7cc04a in f_21060 () from /usr/pkg/lib/

.... lots more of those ...

I get the same error on my server you have access to, if you would like
to dig in yourself.

"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

reply via email to

[Prev in Thread] Current Thread [Next in Thread]