Navigation Menu

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

perl dump core #11517

Closed
p5pRT opened this issue Jul 22, 2011 · 10 comments
Closed

perl dump core #11517

p5pRT opened this issue Jul 22, 2011 · 10 comments

Comments

@p5pRT
Copy link

p5pRT commented Jul 22, 2011

Migrated from rt.perl.org#95368 (status was 'rejected')

Searchable as RT95368$

@p5pRT
Copy link
Author

p5pRT commented Jul 22, 2011

From testabhi@gmail.com

I was using threads in loop, but perl dump core with segmentation fault. Out
of memory error with below trace

dbx /usr/opt/perl5/bin/perl5.10.1 core
Type 'help' for help.
[using memory image in core]
reading symbolic information ...warning​: no source compiled with -g

Segmentation fault in Perl_dounwind at 0xd43b03a0 ($t1)
0xd43b03a0 (Perl_dounwind+0xc0) 90050010 stw r0,0x10(r5)
(dbx) where
Perl_dounwind() at 0xd43b03a0
S_my_exit_jump() at 0xd43744d0
Perl_my_exit() at 0xd43775b8
S_write_no_mem() at 0xd434597c
Perl_safesysmalloc() at 0xd43465e4
Perl_get_arena() at 0xd4329630
S_more_bodies() at 0xd432774c
Perl_ptr_table_store() at 0xd4329b10
Perl_sv_dup() at 0xd432a4ec
Perl_sv_dup() at 0xd432a8b0
Perl_sv_dup() at 0xd432a8b0
Perl_sv_dup() at 0xd432acc4
Perl_gp_dup() at 0xd432b804
Perl_sv_dup() at 0xd432a730
Perl_he_dup() at 0xd435a444
Perl_he_dup() at 0xd435a3e8
Perl_sv_dup() at 0xd432aa90
Perl_gp_dup() at 0xd432b7b8
Perl_sv_dup() at 0xd432a730
Perl_he_dup() at 0xd435a444
Perl_sv_dup() at 0xd432aa90
Perl_sv_dup() at 0xd432a718
perl_clone() at 0xd433c51c
S_ithread_create() at 0xd2a0eed4
XS_threads_create() at 0xd2a0d780
Perl_pp_entersub() at 0xd43e376c
Perl_runops_standard() at 0xd443aa38
S_run_body() at 0xd43729ec
perl_run() at 0xd437a1a0
main() at 0x100004a8
(dbx)

@p5pRT
Copy link
Author

p5pRT commented Aug 22, 2011

From @cpansprout

On Thu Jul 21 23​:15​:11 2011, adave wrote​:

I was using threads in loop, but perl dump core with segmentation
fault. Out
of memory error with below trace

dbx /usr/opt/perl5/bin/perl5.10.1 core
Type 'help' for help.
[using memory image in core]
reading symbolic information ...warning​: no source compiled with -g

Segmentation fault in Perl_dounwind at 0xd43b03a0 ($t1)
0xd43b03a0 (Perl_dounwind+0xc0) 90050010 stw r0,0x10(r5)
(dbx) where
Perl_dounwind() at 0xd43b03a0
S_my_exit_jump() at 0xd43744d0
Perl_my_exit() at 0xd43775b8
S_write_no_mem() at 0xd434597c
Perl_safesysmalloc() at 0xd43465e4
Perl_get_arena() at 0xd4329630
S_more_bodies() at 0xd432774c
Perl_ptr_table_store() at 0xd4329b10
Perl_sv_dup() at 0xd432a4ec
Perl_sv_dup() at 0xd432a8b0
Perl_sv_dup() at 0xd432a8b0
Perl_sv_dup() at 0xd432acc4
Perl_gp_dup() at 0xd432b804
Perl_sv_dup() at 0xd432a730
Perl_he_dup() at 0xd435a444
Perl_he_dup() at 0xd435a3e8
Perl_sv_dup() at 0xd432aa90
Perl_gp_dup() at 0xd432b7b8
Perl_sv_dup() at 0xd432a730
Perl_he_dup() at 0xd435a444
Perl_sv_dup() at 0xd432aa90
Perl_sv_dup() at 0xd432a718
perl_clone() at 0xd433c51c
S_ithread_create() at 0xd2a0eed4
XS_threads_create() at 0xd2a0d780
Perl_pp_entersub() at 0xd43e376c
Perl_runops_standard() at 0xd443aa38
S_run_body() at 0xd43729ec
perl_run() at 0xd437a1a0
main() at 0x100004a8
(dbx)

Could you send us the script that caused perl to crash?

@p5pRT
Copy link
Author

p5pRT commented Aug 22, 2011

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

@p5pRT
Copy link
Author

p5pRT commented Aug 28, 2011

From testabhi@gmail.com

Hello,

Sorry for delay

Please find attach code which is a simple file creation

Thanks,
Abhishek
On Mon, Aug 22, 2011 at 10​:25 PM, Father Chrysostomos via RT <
perlbug-followup@​perl.org> wrote​:

On Thu Jul 21 23​:15​:11 2011, adave wrote​:

I was using threads in loop, but perl dump core with segmentation
fault. Out
of memory error with below trace

dbx /usr/opt/perl5/bin/perl5.10.1 core
Type 'help' for help.
[using memory image in core]
reading symbolic information ...warning​: no source compiled with -g

Segmentation fault in Perl_dounwind at 0xd43b03a0 ($t1)
0xd43b03a0 (Perl_dounwind+0xc0) 90050010 stw r0,0x10(r5)
(dbx) where
Perl_dounwind() at 0xd43b03a0
S_my_exit_jump() at 0xd43744d0
Perl_my_exit() at 0xd43775b8
S_write_no_mem() at 0xd434597c
Perl_safesysmalloc() at 0xd43465e4
Perl_get_arena() at 0xd4329630
S_more_bodies() at 0xd432774c
Perl_ptr_table_store() at 0xd4329b10
Perl_sv_dup() at 0xd432a4ec
Perl_sv_dup() at 0xd432a8b0
Perl_sv_dup() at 0xd432a8b0
Perl_sv_dup() at 0xd432acc4
Perl_gp_dup() at 0xd432b804
Perl_sv_dup() at 0xd432a730
Perl_he_dup() at 0xd435a444
Perl_he_dup() at 0xd435a3e8
Perl_sv_dup() at 0xd432aa90
Perl_gp_dup() at 0xd432b7b8
Perl_sv_dup() at 0xd432a730
Perl_he_dup() at 0xd435a444
Perl_sv_dup() at 0xd432aa90
Perl_sv_dup() at 0xd432a718
perl_clone() at 0xd433c51c
S_ithread_create() at 0xd2a0eed4
XS_threads_create() at 0xd2a0d780
Perl_pp_entersub() at 0xd43e376c
Perl_runops_standard() at 0xd443aa38
S_run_body() at 0xd43729ec
perl_run() at 0xd437a1a0
main() at 0x100004a8
(dbx)

Could you send us the script that caused perl to crash?

@p5pRT
Copy link
Author

p5pRT commented Aug 28, 2011

From testabhi@gmail.com

test1.pl

@p5pRT
Copy link
Author

p5pRT commented Sep 19, 2011

From @cpansprout

On Sat Aug 27 18​:48​:14 2011, adave wrote​:

Hello,

Sorry for delay

Same here. :-)

Please find attach code which is a simple file creation

I cannot reproduce the crash myself. What version of Perl are you
using? What is the output of ‘perl -V’ (with a capital V)? What
arguments are you passing to the script? I tried ‘perl test1.pl tmp 1
1% 1’, where tmp is an empty directory.

@p5pRT
Copy link
Author

p5pRT commented Sep 21, 2011

From testabhi@gmail.com

Hello Father,

i was hitting crash in my 10-12th loop. I was using big file system with
~1000 files

Below is the O/P of perl version
<snip>
Summary of my perl5 (revision 5 version 10 subversion 1) configuration​:

  Platform​:
  osname=aix, osvers=5.3.0.0, archname=aix-thread-multi
  uname='aix dennis01 3 5 00c72e9a4c00 '
  config_args='-desr -Dinstallprefix=/usr/opt/perl5
-Dprefix=/usr/opt/perl5 -Dcc=xlc_r -Duseshrplib -Dusethreads'
  hint=recommended, useposix=true, d_sigaction=define
  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='xlc_r -q32', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE
-D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -qlanglvl=extended -q32 -D_LARGE_FILES -qlonglong',
  optimize='-O',
  cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -qlanglvl=extended'
  ccversion='9.0.0.0', gccversion='', gccosandvers=''
  intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
  ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
  alignbytes=8, prototype=define
  Linker and Libraries​:
  ld='ld', ldflags =' -brtl -bdynamic -L/usr/local/lib -b32 '
  libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
  libs=-lbind -lnsl -ldbm -ldb -ldl -lld -lm -lcrypt -lpthreads -lc
  perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc
  libc=, so=a, useshrplib=true, libperl=libperl.a
  gnulibc_version=''
  Dynamic Linking​:
  dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='
-bE​:/usr/opt/perl5/lib/5.10.1/aix-thread-multi/CORE/perl.exp'
  cccdlflags=' ', lddlflags='-bhalt​:4 -G -bI​:$(PERL_INC)/perl.exp
-bE​:$(BASEEXT).exp -bnoentry -lpthreads -lc -lm -L/usr/local/lib'

Characteristics of this binary (from libperl)​:
  Compile-time options​: MULTIPLICITY PERL_DONT_CREATE_GVSV
  PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS
  USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
  Built under aix
  Compiled at Mar 19 2010 16​:13​:01
  @​INC​:
  /usr/opt/perl5/lib/5.10.1/aix-thread-multi
  /usr/opt/perl5/lib/5.10.1
  /usr/opt/perl5/lib/site_perl/5.10.1/aix-thread-multi
  /usr/opt/perl5/lib/site_perl/5.10.1
</snip>

On Mon, Sep 19, 2011 at 9​:17 AM, Father Chrysostomos via RT <
perlbug-followup@​perl.org> wrote​:

On Sat Aug 27 18​:48​:14 2011, adave wrote​:

Hello,

Sorry for delay

Same here. :-)

Please find attach code which is a simple file creation

I cannot reproduce the crash myself. What version of Perl are you
using? What is the output of ‘perl -V’ (with a capital V)? What
arguments are you passing to the script? I tried ‘perl test1.pl tmp 1
1% 1’, where tmp is an empty directory.

@p5pRT
Copy link
Author

p5pRT commented Oct 23, 2011

From @cpansprout

On Wed Sep 21 02​:16​:47 2011, adave wrote​:

On Mon, Sep 19, 2011 at 9​:17 AM, Father Chrysostomos via RT <
perlbug-followup@​perl.org> wrote​:

On Sat Aug 27 18​:48​:14 2011, adave wrote​:

Hello,

Sorry for delay

Same here. :-)

Please find attach code which is a simple file creation

I cannot reproduce the crash myself. What version of Perl are you
using? What is the output of ‘perl -V’ (with a capital V)? What
arguments are you passing to the script? I tried ‘perl test1.pl tmp 1
1% 1’, where tmp is an empty directory.

Hello Father,

i was hitting crash in my 10-12th loop. I was using big file system with
~1000 files

Below is the O/P of perl version
<snip>
Summary of my perl5 (revision 5 version 10 subversion 1) configuration​:

Platform​:
osname=aix, osvers=5.3.0.0, archname=aix-thread-multi

I still cannot reproduce this. On OS X, it seems I can’t open enough
files to trigger the crash.

Could you try to reduce the script to a small test case that crashes?

Is any other AIX user able to reproduce it?

@p5pRT
Copy link
Author

p5pRT commented Aug 18, 2016

From @dcollinsn

The requester never provided a minimal or even reproducible testcase, so I'm closing this. Requestor, if you're still having this issue, please respond with a /minimal/ testcase that demonstrates this bug, ideally on a recent (>=5.22) version of perl. Thanks,

--
Respectfully,
Dan Collins

@p5pRT p5pRT closed this as completed Aug 18, 2016
@p5pRT
Copy link
Author

p5pRT commented Aug 18, 2016

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

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