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

(fwd) Dumping core in perl5.005_03 (hv.c) #36

Closed
p5pRT opened this issue Jun 3, 1999 · 1 comment
Closed

(fwd) Dumping core in perl5.005_03 (hv.c) #36

p5pRT opened this issue Jun 3, 1999 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Jun 3, 1999

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

Searchable as RT837$

@p5pRT
Copy link
Author

p5pRT commented Jun 3, 1999

From [email protected]

Folks, I know that this is a long shot, but has anyone seen core
dumps with perl5.005_03 (hv.c), Solaris 2.5.1 & the SunPro
compilers v4.2?

This is what gdb shows me -- an attempt to dereference a NULL
pointer?...

Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libintl.so.1...done.
Reading symbols from /usr/lib/libmp.so.1...done.
Reading symbols from /usr/lib/libw.so.1...done.
Reading symbols from /app/csha/perl5/lib/5.00503/sun4-solaris/auto/Socket/Socket.so...done.
Reading symbols from /app/csha/perl5/lib/5.00503/sun4-solaris/auto/Fcntl/Fcntl.so...done.
Reading symbols from /app/csha/lib/sun4-solaris/auto/Shadow/Shadow.so...done.
Reading symbols from /usr/lib/nss_compat.so.1...done.
Reading symbols from /usr/lib/nss_nis.so.1...done.
Reading symbols from /usr/lib/nss_files.so.1...done.
#0 0x9e284 in Perl_share_hek (str=0x2b98e0 "16341", len=5, hash=60108031) at hv.c​:1202
1202 if (HeHASH(entry) != hash) /* strings can't be equal */
(gdb) bt
#0 0x9e284 in Perl_share_hek (str=0x2b98e0 "16341", len=5, hash=60108031) at hv.c​:1202
#1 0x9b030 in Perl_hv_store_ent (hv=0x18760c, keysv=0x1b225c, val=0x1ab444, hash=60108031) at hv.c​:411
#2 0x9a5ac in Perl_hv_fetch_ent (hv=0x18760c, keysv=0x1b225c, lval=1, hash=60108031) at hv.c​:254
#3 0xaaf18 in Perl_pp_helem () at pp_hot.c​:1358
#4 0x1375a4 in Perl_runops_standard () at run.c​:30
#5 0x24994 in perl_run (sv_interp=0x16400c) at perl.c​:1100
#6 0x1fd14 in main (argc=3, argv=0xeffffe1c, env=0xeffffe2c) at perlmain.c​:51
(gdb) list
1197 xhv = (XPVHV*)SvANY(PL_strtab);
1198 /* assert(xhv_array != 0) */
1199 LOCK_STRTAB_MUTEX;
1200 oentry = &((HE**)xhv->xhv_array)[hash & (I32) xhv->xhv_max];
1201 for (entry = *oentry; entry; i=0, entry = HeNEXT(entry)) {
1202 if (HeHASH(entry) != hash) /* strings can't be equal */
1203 continue;
1204 if (HeKLEN(entry) != len)
1205 continue;
1206 if (memNE(HeKEY(entry),str,len)) /* is this it? */
(gdb) print *entry
$1 = {hent_next = 0x0, hent_hek = 0x0, hent_val = 0x0}

I'll try compiling with gcc to eliminate compiler error as the
cause, but any other thoughts would be much appreciated...

Thanks,
W.

-- end of forwarded message --

William Charles ___________________________________________________
DTS Unix Systems Engineering william.charles@​csfb.com
Fixed Income & Derivatives Services +44 (0)171-888 7193
Credit Suisse First Boston (Europe) Ltd

@p5pRT p5pRT closed this as completed Nov 28, 2003
This was referenced Oct 18, 2019
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