Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win32 taint fork crash #8432

Closed
p5pRT opened this issue May 3, 2006 · 7 comments
Closed

Win32 taint fork crash #8432

p5pRT opened this issue May 3, 2006 · 7 comments

Comments

@p5pRT
Copy link

p5pRT commented May 3, 2006

Migrated from rt.perl.org#39061 (status was 'resolved')

Searchable as RT39061$

@p5pRT
Copy link
Author

p5pRT commented May 3, 2006

From @xdg

Created by @xdg

This is a bug report for perl from dagolden@​cpan.org,
generated with the help of perlbug 1.35 running under perl v5.8.8.

-----------------------------------------------------------------

Calling fork while running under taint mode on Win32 caused perl to crash
with a dialog box and message "perl.exe has encountered an error and needs to
close" (with options to submit error to Microsoft).

Isolated to and replicated with​:
  perl -Te "fork"
  perl -te "fork"

Does not crash with​:
  perl -e "fork"

This occured on Perl 5.8.8 on Win32 "VanillaPerl" compiled using MinGW.

Perl Info

Flags:
    category=core
    severity=medium

Site configuration information for perl v5.8.8:

Configured by DGolden at Tue Mar 28 23:51:02 2006.

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    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='gcc', ccflags =' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT  -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX',
    optimize='-s -O2',
    cppflags='-DWIN32'
    ccversion='', gccversion='3.2.3', 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:\perl\lib\CORE" -L"C:\MinGW\lib"'
    libpth=C:\MinGW\lib
    libs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32
    perllibs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32
    libc=-lmsvcrt, so=dll, useshrplib=yes, libperl=libperl58.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-mdll -s -L"c:\perl\lib\CORE" -L"C:\MinGW\lib"'

Locally applied patches:
    


@INC for perl v5.8.8:
    C:/Perl/lib
    C:/Perl/site/lib
    .


Environment for perl v5.8.8:
    HOME=C:\Documents and Settings\dgolden\My Documents
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Perl\bin\;C:\Program Files\Novell\ZENworks\;C:\Program Files\SecureCRT\;C:\PROGRA~1\SecureFX;C:\bin;C:\Program Files\Vim\vim63;C:\Program Files\svk\bin;C:\Program Files\MIT\Scheme\bin;C:\Program Files\svk\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\svk\bin;C:\Program Files\ATI Technologies\ATI Control Panel;C:\mingw\bin
    PERL_BADLANG (unset)
    SHELL (unset)


@p5pRT
Copy link
Author

p5pRT commented May 4, 2006

From @xdg

I started asking for additional examples of this on Perlmonks​:

http​://perlmonks.org/index.pl?node_id=547313

In at least one case, ActiveState 5.8.6 doesn't crash but ActiveState
5.8.7 does. Did something change on tainting or forking around 5.8.7?

@p5pRT
Copy link
Author

p5pRT commented May 27, 2013

From @jkeenan

On Wed May 03 07​:39​:59 2006, dagolden@​cpan.org wrote​:

This is a bug report for perl from dagolden@​cpan.org,
generated with the help of perlbug 1.35 running under perl v5.8.8.

-----------------------------------------------------------------

Calling fork while running under taint mode on Win32 caused perl to
crash
with a dialog box and message "perl.exe has encountered an error and
needs to
close" (with options to submit error to Microsoft).

Isolated to and replicated with​:
perl -Te "fork"
perl -te "fork"

Does not crash with​:
perl -e "fork"

This occured on Perl 5.8.8 on Win32 "VanillaPerl" compiled using
MinGW.

David,

Does this problem persist with more recent versions of Perl?

If so, do you have any idea as to what we can do about it?

Thank you very much.
Jim Keenan

@p5pRT
Copy link
Author

p5pRT commented May 27, 2013

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented May 27, 2013

From @bulk88

On Mon May 27 06​:07​:56 2013, jkeenan wrote​:

David,

Does this problem persist with more recent versions of Perl?

If so, do you have any idea as to what we can do about it?

Thank you very much.
Jim Keenan

Tried on AP 5.10.0 and Self VC 5.19.0. No crash, no console output
(correct thing). My VC 5.6 doesn't have threads, so can't be tested on that.

--
bulk88 ~ bulk88 at hotmail.com

@p5pRT
Copy link
Author

p5pRT commented Jul 12, 2016

From @dcollinsn

Bulk88 says this is fixed, no one has disagreed. Closing resolved.

--
Respectfully,
Dan Collins

@p5pRT
Copy link
Author

p5pRT commented Jul 12, 2016

@dcollinsn - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant