Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#297 pdl2 enters infinite loop on DWIMPerl

unreproducible
closed-fixed
core (120)
3
2012-07-07
2012-03-13
David Mertens
No

As reported on IRC by azawawi, pdl2 can enter into an infinite loop in which it is unable to fall back onto pdl.

perlDL shell v1.354_001
PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file
'COPYING' in the PDL distribution. This is free software and you
are welcome to redistribute it under certain conditions, see
the same file for details.

Summary of my PDL configuration

VERSION: PDL v2.4.10 (supports bad values)

$%PDL::Config = {
'BADVAL_PER_PDL' => '0',
'WITH_PROJ' => '0',
'PDL_CONFIG_VERSION' => '0.005',
'POSIX_THREADS_INC' => undef,
'FFTW_TYPE' => 'double',
'PDL_BUILD_DIR' => 'C:\\.cpanm\\work\\1331034988.3504\\PDL-2.4.10',
'FFTW_LIBS' => undef,
'WITH_FFTW' => '0',
'GSL_LIBS' => undef,
'WITH_IO_BROWSER' => '0',
'PROJ_INC' => undef,
'WHERE_PLPLOT_INCLUDE' => undef,
'HTML_DOCS' => '1',
'SKIP_KNOWN_PROBLEMS' => '0',
'WHERE_PLPLOT_LIBS' => undef,
'WITH_3D' => '0',
'WITH_POSIX_THREADS' => '0',
'POGL_VERSION' => '0.65',
'FFTW_INC' => undef,
'HIDE_TRYLINK' => '1',
'HDF_INC' => undef,
'WITH_HDF' => '0',
'POGL_WINDOW_TYPE' => 'glut',
'WITH_GD' => '1',
'WITH_BADVAL' => '1',
'FITS_LEGACY' => '1',
'WITH_SLATEC' => '0',
'BADVAL_USENAN' => '0',
'WITH_DEVEL_REPL' => '1',
'TEMPDIR' => 'C:\\Users\\azawawi\\AppData\\Local\\Temp',
'PROJ_LIBS' => undef,
'USE_POGL' => '0',
'PDL_BUILD_VERSION' => '2.4.10',
'GD_LIBS' => undef,
'GSL_INC' => undef,
'GD_INC' => undef,
'WITH_GSL' => '0',
'OPTIMIZE' => undef,
'PDLDOC_IGNORE_AUTOLOADER' => '0',
'HDF_LIBS' => undef,
'POSIX_THREADS_LIBS' => undef,
'MALLOCDBG' => {},
'WITH_MINUIT' => '0',
'WITH_PLPLOT' => '0',
'MINUIT_LIB' => undef
};
Summary of my perl5 (revision 5 version 14 subversion 2) configuration:

Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
uname='Win32 strawberryperl 5.14.2.1 #1 Tue Nov 22 21:00:59 2011 i386'
config_args='undef'
hint=recommended, useposix=true, d_sigaction=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='gcc', ccflags =' -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='4.4.7', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long long', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='g++', ldflags ='-s -L"C:\Dwimperl\perl\lib\CORE" -L"C:\Dwimperl\c\lib"'
libpth=C:\Dwimperl\c\lib C:\Dwimperl\c\i686-w64-mingw32\lib
libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
libc=, so=dll, useshrplib=true, libperl=libperl514.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-mdll -s -L"C:\Dwimperl\perl\lib\CORE" -L"C:\Dwimperl\c\lib"'

Discussion

  • Chris Marshall
    Chris Marshall
    2012-03-13

    Steps to reproduce?

     
  • David Mertens
    David Mertens
    2012-03-13

    Install DWIM perl, install PDL, don't install Devel::REPL, type 'pdl2' at your prompt?

    Obviously, this is not yet confirmed.

     
  • Chris Marshall
    Chris Marshall
    2012-03-14

    Hmm. That could be a problem where pdl2 is trying to
    run perldl instead since the required Devel::REPL dependency
    is not available. A related question would be whether perldl
    works or not. If Devel::REPL is then installed, does it work
    correctly?

     
  • Chris Marshall
    Chris Marshall
    2012-03-14

    • labels: --> core
    • assigned_to: nobody --> marshallch
     
  • Chris Marshall
    Chris Marshall
    2012-05-18

    • assigned_to: marshallch --> nobody
    • milestone: --> unreproducible
    • priority: 5 --> 3
     
  • Chris Marshall
    Chris Marshall
    2012-05-18

    I don't have the configuration to reproduce this problem. Lowering the priority and changing group to "unreproducible" to reflect this fact. We can investigate further when we get an actual DWIMPerl user with PDL to assist....

     
  • Chris Marshall
    Chris Marshall
    2012-05-19

    I just fixed a couple of things with pdl2 running perldl when Devel::REPL is not installed. Perhaps that resolves this problem?

     
  • Chris Marshall
    Chris Marshall
    2012-07-07

    • assigned_to: nobody --> marshallch
    • status: open --> closed-fixed
     
  • Chris Marshall
    Chris Marshall
    2012-07-07

    PDL-2.4.11 with dwimperl-5.14.2.1-v7-32bit works ok.
    I believe the fixes mentioned below did resolve the
    issue.