Now I get the following :
dragon 34 % gdb /usr/local/bin/perl5.005 core
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "sparc-sun-solaris2.5"...

warning: core file may not match specified executable file.
Core was generated by `perl5.005 -Mblib ./bidi_builder -cells idg04 uot335
ps100 -technology sr40 -mfn'.
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/libm.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libmp.so.2...done.
Reading symbols from /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.
Reading symbols from
/apps/perl5.005/lib/5.00502/sun4-solaris/auto/Data/Dumper/Dumper.so...done.
Reading symbols from
/apps/perl5.005/lib/5.00502/sun4-solaris/auto/IO/IO.so...done.
Reading symbols from
/apps/perl5.005/lib/5.00502/sun4-solaris/auto/Fcntl/Fcntl.so...
done.
Reading symbols from
/data/cdmg/dev/cdmg_toolbox/blib/arch/auto/Laff/Laff.so...done.
#0  0x6519c in Perl_sv_clear ()
(gdb) bt
#0  0x6519c in Perl_sv_clear ()
#1  0x6555c in Perl_sv_free ()
#2  0x781b0 in Perl_free_tmps ()
#3  0x593e8 in Perl_pp_nextstate ()
#4  0x98488 in Perl_runops_standard ()
#5  0x21030 in perl_run ()
#6  0x1eba0 in main ()
(gdb) q


Is this from a reference count?
do I use: SV* SvREFCNT_inc(SV* sv);
,SvREFCNT_inc((SV*)&hv),0);

Dan Sugalski wrote:

> At 5:32 PM -0600 1/28/02, Billy Patton wrote:
> >       hv = newHV();
> >       hv_store(top,name->name,strlen(name->name),(SV*)hv,0);
> >
> >Here's the output I get from Data::Dumper
> >Bizarre copy of HASH in each at
> >/apps/perl5.005/lib/5.00502/Data/Dumper.pm line 309.
> >
> >What am I doing wrong?
>
> Hash of hashes are really hashes of hash *references*, not actual
> HV*s. Take a reference to your new hash there and store it in top,
> not the hash pointer itself.
> --
>                                          Dan
>
> --------------------------------------"it's like this"-------------------
> Dan Sugalski                          even samurai
> [EMAIL PROTECTED]                         have teddy bears and even
>                                        teddy bears get drunk

Reply via email to