I'm testing a module on a recent 7.7 after using 7.7.34 for quite a while. I've run into a problem with some code that generates a program dynamically using start_new_program(). One of the first things that I do is add a constant using add_string_constant()., That's where the module dumps core. Apparently add_string_constant() and friends look at THIS_COMPILATION.lex and try to add strings based on the filename and such. Since I'm working with a C module, I'm not manipulating that, so I'm not sure how to get around it. Any suggestions?
#0 store_prog_string (str=0x92a1ba10) at /Users/hww3/Downloads/Pike- v7.7-snapshot/src/program.c:6086 #1 0x000bac9a in add_constant (name=0x334560, c=0xbfffe1e8, flags=8) at /Users/hww3/Downloads/Pike-v7.7-snapshot/src/program.c:5179 #2 0x000bb0ef in simple_add_constant (name=0x5512d8 "\002", c=0x5512d8, flags=5575384) at /Users/hww3/Downloads/Pike-v7.7-snapshot/ src/program.c:5261 #3 0x000bb2bb in add_string_constant (name=0x5512d8 "\002", str=0x5512d8 "\002", flags=5575384) at /Users/hww3/Downloads/Pike-v7.7- snapshot/src/program.c:5333
The data in #3 and friends seems bogus, as the values I'm inserting in this example are string constants. Not sure if that's due to the problem that happens later or not.
Bill