develooper Front page | perl.perl5.porters | Postings from September 2003

segfault

Thread Next
From:
Gabor Kiss [Bitman]
Date:
September 15, 2003 08:34
Subject:
segfault
Message ID:
Pine.LNX.4.44.0309151550260.19117-100000@mail.cdata.hu
Dear Elizabeth et al.

To whom it may concern.

I've just downloaded the actual perl5.8 source.
I compiled it with -Dusethreads. All tests were passed.
Then I installed Storable-2.08.
Test "interwork56" was skipped the others were passed.
Then I installed Thread-Queue-Any-0.06. Test was successful.

Five minutes later I got segmentation fault:

-------------------------------------------------
#!/usr/local/bin/perl-5.8

use threads;
#use threads::shared;
use Thread::Queue::Any;
use IO::Handle;

$io = new IO::Handle;
if ($io->fdopen(fileno(STDOUT),"w")) {
        $io->print("Some text\n");
}
$q = Thread::Queue::Any->new;
$q->enqueue($io);
my ($another_io) = $q->dequeue();
$another_io->print("Other text\n");
-------------------------------------------------
$ ./qtest
Some text
Can't store GLOB items at blib/lib/Storable.pm (autosplit into
blib/lib/auto/Storable/_freeze.al) line 282, at
/usr/local/lib/perl5/site_perl/5.8.0/Thread/Queue/Any.pm line 30
Segmentation fault
$

Simply discard this mail if you are not interested in this bug report.
If you have any question or you want more specific tests just write.

Regards

Gabor


$ /usr/local/bin/perl-5.8 -v

This is perl, v5.8.0 built for i686-linux-thread-multi

Copyright 1987-2002, Larry Wall

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to
the
Internet, point your browser at http://www.perl.com/, the Perl Home
Page.

kissg@zeronull:~/src/ftrack/otthon$ /usr/local/bin/perl-5.8 -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.4.22, archname=i686-linux-thread-multi
    uname='linux zeronull 2.4.22 #1 mon sep 1 14:53:43 cest 2003 i686 unknown '
    config_args='-d -Dusethreads'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O3',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.4 20011002 (Debian prerelease)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldbm -ldl -lm -lpthread -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
    libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.2.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_
CONTEXT
  Built under linux
  Compiled at Sep 15 2003 15:16:28
  @INC:
    /usr/local/lib/perl5/5.8.0/i686-linux-thread-multi
    /usr/local/lib/perl5/5.8.0
    /usr/local/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi
    /usr/local/lib/perl5/site_perl/5.8.0
    /usr/local/lib/perl5/site_perl
    .




Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About