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

Not OK: perl v5.6.0 +"v5.6.0-RC1 on os2 2.30 #1269

Closed
p5pRT opened this issue Mar 5, 2000 · 6 comments
Closed

Not OK: perl v5.6.0 +"v5.6.0-RC1 on os2 2.30 #1269

p5pRT opened this issue Mar 5, 2000 · 6 comments

Comments

@p5pRT
Copy link

p5pRT commented Mar 5, 2000

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

Searchable as RT2265$

@p5pRT
Copy link
Author

p5pRT commented Mar 5, 2000

From @ysth

This is 5.5.670 patched up through change #5542.

[D​:\perl\bin]cat hello.cmd
echo hello world

[D​:\perl\bin]perl -we "qx​:hello.cmd​:"
assertion botched (chunk's head overwrite?)​: ovp->ovu.ovu_rmagic == 0x55555555

Abnormal program termination
core dumped

[D​:\perl\bin]

Perl Info


Site configuration information for perl v5.6.0:

Configured by sthoenna at Sun Mar  5 02:50:19 PST 2000.

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=os2, osvers=2.30, archname=os2
    uname='os2 efn.org 2 2.30 i386  '
    config_args='-des -D prefix=d:/perl -D optimize=-O2 -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -s -DDEBUGGING'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='gcc', optimize='-O2 -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -s -DDEBUGGING', gccversion=2.8.1
    cppflags='-Zomf -Zmt -DDOSISH -DOS2=2 -DEMBED -I. -D_EMX_CRT_REV_=62'
    ccflags ='-Zomf -Zmt -DDOSISH -DOS2=2 -DEMBED -I. -D_EMX_CRT_REV_=62'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
    alignbytes=4, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags ='-Zexe -Zomf -Zmt -Zcrtdll -Zstack 32000'
    libpth=d:/emx/lib d:/emx/lib/mt
    libs=-lsocket -lm -lbsd
    libc=d:/emx/lib/mt/c_import.lib, so=dll, useshrplib=true, libperl=libperl.lib
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-Zdll', lddlflags='-Zdll -Zomf -Zmt -Zcrtdll '

Locally applied patches:
     "v5.6.0-RC1


@INC for perl v5.6.0:
    d:/perl/lib/5.6.0/os2
    d:/perl/lib/5.6.0
    d:/perl/lib/site_perl/5.6.0/os2
    d:/perl/lib/site_perl/5.6.0
    d:/perl/lib/site_perl
    .


Environment for perl v5.6.0:
    HOME=d:\os2apps\yarn\allen
    LANG=en_us
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=d:\bin;C:\OS2;d:\perl\bin;C:\OS2\SYSTEM;C:\OS2\INSTALL;C:\;C:\OS2\MDOS;C:\OS2\APPS;C:\MMOS2;d:\os2apps\util;d:\DOSAPPS\UTIL;c:\sio;D:\WINDOWS;d:\pdksh;d:\emx\bin;d:\emacs\19.33\bin;d:\ispell
    PERL_BADLANG (unset)
    PERL_SH_DIR=d:\BIN
    SHELL (unset)


@p5pRT
Copy link
Author

p5pRT commented Mar 5, 2000

From @gsar

On Sun, 05 Mar 2000 09​:05​:25 PST, Yitzchak Scott-Thoennes wrote​:

Locally applied patches​:
"v5.6.0-RC1

Of course, RC1 isn't *really* out yet, but here's a cosmetic fix.

Sarathy
gsar@​ActiveState.com

Inline Patch
-----------------------------------8<-----------------------------------
Change 5550 by gsar@auger on 2000/03/05 17:46:18

	perlbug tweak to grok local_patches better

Affected files ...

... //depot/perl/utils/perlbug.PL#25 edit

Differences ...

==== //depot/perl/utils/perlbug.PL#25 (text) ====
Index: perl/utils/perlbug.PL
--- perl/utils/perlbug.PL.~1~	Sun Mar  5 09:46:22 2000
+++ perl/utils/perlbug.PL	Sun Mar  5 09:46:22 2000
@@ -37,8 +37,8 @@
 while (<PATCH_LEVEL>) {
     last if /^\s*}/;
     chomp;
-    s/^\s+,?"?//;
-    s/"?,?$//;
+    s/^\s+,?\s*"?//;
+    s/"?\s*,?$//;
     s/(['\\])/\\$1/g;
     push @patches, $_ unless $_ eq 'NULL';
 }
End of Patch.

@p5pRT
Copy link
Author

p5pRT commented Mar 5, 2000

From [Unknown Contact. See original ticket]

Yitzchak Scott-Thoennes writes​:

This is a build failure report for perl from sthoenna@​efn.org,
generated with the help of perlbug 1.27 running under perl v5.6.0.

-----------------------------------------------------------------
[Please enter your report here]

This is 5.5.670 patched up through change #5542.

[D​:\perl\bin]cat hello.cmd
echo hello world

[D​:\perl\bin]perl -we "qx​:hello.cmd​:"
assertion botched (chunk's head overwrite?)​: ovp->ovu.ovu_rmagic == 0x55555555

Can't reproduce it here.

Could you set a breakpoint at malloc.c​:assert() and give a backtrace?

I would do
sd386 perl -we "qx​:hello.cmd​:"

Opening a file is Esc t, breakpoint is F9, Run is Esc r, backtrace is Alt-F1.

Ilya

@p5pRT
Copy link
Author

p5pRT commented Mar 5, 2000

From @ysth

Ilya Zakharevich <ilya@​math.ohio-state.edu> wrote​:

Yitzchak Scott-Thoennes writes​:

This is a build failure report for perl from sthoenna@​efn.org,
generated with the help of perlbug 1.27 running under perl v5.6.0.

-----------------------------------------------------------------
[Please enter your report here]

This is 5.5.670 patched up through change #5542.

[D​:\perl\bin]cat hello.cmd
echo hello world

[D​:\perl\bin]perl -we "qx​:hello.cmd​:"
assertion botched (chunk's head overwrite?)​: ovp->ovu.ovu_rmagic == 0x55555555

Can't reproduce it here.

Did you use -DDEBUGGING? It seems to happen only with .cmd files.

Could you set a breakpoint at malloc.c​:assert() and give a backtrace?

I would do
sd386 perl -we "qx​:hello.cmd​:"

Opening a file is Esc t, breakpoint is F9, Run is Esc r, backtrace is Alt-F1.

Sorry, no sd386. I'll *try* building an a.out perl (I had some
problems last time I tried and gave up) but it may not manifest the
bug. At least not in the same way.

@p5pRT
Copy link
Author

p5pRT commented Mar 5, 2000

From @ysth

In article <S6tw4gzkgijK092yn@​efn.org>,
sthoenna@​efn.org (Yitzchak Scott-Thoennes) wrote​:

Ilya Zakharevich <ilya@​math.ohio-state.edu> wrote​:

Could you set a breakpoint at malloc.c​:assert() and give a backtrace?

I would do
sd386 perl -we "qx​:hello.cmd​:"

Opening a file is Esc t, breakpoint is F9, Run is Esc r, backtrace is Alt-F1.

Sorry, no sd386. I'll *try* building an a.out perl (I had some
problems last time I tried and gave up) but it may not manifest the
bug. At least not in the same way.

Here we go​:

[D​:\perl-5.5.670]type con>hello.cmd
echo hello world
^Z

[D​:\perl-5.5.670]miniperl_ -we "qx​:hello.cmd​:"
assertion botched (chunk's head overwrite?)​: ovp->ovu.ovu_rmagic == 0x55555555

Abnormal program termination
core dumped

[D​:\perl-5.5.670]gdb miniperl_.exe core
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (emx), Copyright 1996 Free Software Foundation, Inc...
#0 0xf51ad in raise ()
(gdb) bt
#0 0xf51ad in raise ()
#1 0xf2193 in abort ()
#2 0x2a6d6 in botch (diag=0x2b741 "chunk's head overwrite",
  s=0x2b71f "ovp->ovu.ovu_rmagic == 0x55555555") at malloc.c​:971
#3 0x2b973 in free (mp=0x118908) at malloc.c​:1557
#4 0xcfaf7 in Perl_do_execfree () at doio.c​:1185
#5 0xe62b6 in do_spawn3 (cmd=0x122468 "/ello.cmd", execf=3, flag=0)
  at os2.c​:944
#6 0xe64a8 in do_spawn_nowait (cmd=0x122468 "/ello.cmd") at os2.c​:1001
#7 0xe66e5 in my_syspopen (cmd=0x122468 "/ello.cmd", mode=0xbb321 "r")
  at os2.c​:1072
#8 0x66021 in Perl_my_popen (cmd=0x122468 "/ello.cmd", mode=0xbb321 "r")
  at util.c​:2297
#9 0xbb436 in Perl_pp_backtick () at pp_sys.c​:309
#10 0x74a9f in Perl_runops_debug () at run.c​:56
#11 0x250fd in S_run_body (oldscope=1) at perl.c​:1382
#12 0x24ce2 in perl_run (my_perl=0x110808) at perl.c​:1306
#13 0x100e3 in main (argc=3, argv=0x30affc8, env=0x30afea4)
  at miniperlmain.c​:52

@p5pRT
Copy link
Author

p5pRT commented Mar 10, 2000

From [Unknown Contact. See original ticket]

On Wed, Mar 08, 2000 at 10​:36​:51AM -0800, Yitzchak Scott-Thoennes wrote​:

(gdb) p /x {long[16]}0x1188d8
$2 = {0x7265705f, 0x5555006c, 0x55555555, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x2bff06, 0x30b0053, 0x30b0053, 0xe4e05, 0x30af8a4, 0x0}

^ ovp ^ PL_Argv

Thanks. The following patch should cure this.

Yours,
Ilya

Inline Patch
--- ./os2/os2.c~	Sun Oct 24 05:51:20 1999
+++ ./os2/os2.c	Wed Mar  8 21:36:46 2000
@@ -777,7 +777,7 @@ U32 addflag;
 						   long enough. */
 			    a--;
 			}
-			while (nargs-- >= 0)
+			while (--nargs >= 0)
 			    PL_Argv[nargs] = argsp[nargs];
 			/* Enable pathless exec if #! (as pdksh). */
 			pass = (buf[0] == '#' ? 2 : 3);

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