[Prev][Next][Index]
BIT_NUMBER op, and dumpdep seg fault
- To: sage-bugs@cica.INDIANA.EDU
- Subject: BIT_NUMBER op, and dumpdep seg fault
- Date: Wed, 08 Feb 1995 10:41:18 -0500
- From: Erik Seligman <Erik_Seligman@BEEHIVE.MC.CS.CMU.EDU>
I've been trying to create expressions that use a '.' operator, as in
----
class_name.method_name();
----
so I have been using the variant BIT_NUMBER, which according to the users
manual (p.71) should be this operator. But it is giving me a ':' instead:
----
class_name:method_name();
----
In order to get a look at what the '.' operator looks like in a dep file,
I tried to do a 'dumpdep' on the following program:
----
class dome {
int meth();
};
main()
{
dome d;
d.meth();
}
----
but got a seg fault:
----
beehive% dumpdep testprog.dep
Source is "testprog.C"
#blob #bfnd #llnd #symb #type #labl GblBf #deps #cmnt #file
-------------------------------------------------------------------------
5 6 10 6 14 0 1 0 0 1
***BIF NODES***
id var cp bp1 cmnt sym lp1 lp2 lp3 dp1 dp2 lab lbl glin
llin file thread
1-B 100 ---- -- ---- ---- ---- ---- ---- -- 1096040772 ---- --
0 0 1-F 1-B GLOBAL
1-B 4-B --
--
decl_specs(bits set)=
Segmentation fault (core dumped)
----
gdb tells me:
----
(gdb) bt
#0 0x120002c94 in write_bif_node (bf_ptr=0x140005b40) at dumpnodes.c:305
#1 0x120002d74 in write_bif_nodes (f=0x140006100) at dumpnodes.c:329
#2 0x1200060c0 in dump_nodes (f=0x140006100, name=0x140000620 "")
at dumpnodes.c:884
#3 0x120001cb8 in main (argc=1, argv=0x11ffffb10, envp=0x11ffffb20)
at dumpdep.c:74
(gdb)
------------
So anyway, what I mainly care about is figuring out how to get that '.'
operator, though a non-seg-faulting dumpdep would be nice too. :-)
Thanks!
---Erik