pike issueshttps://git.lysator.liu.se/pikelang/pike/-/issues2009-04-16T14:11:39Zhttps://git.lysator.liu.se/pikelang/pike/-/issues/2690Local, scope dependent functions are not equal to themselves.2009-04-16T14:11:39ZPeter BortasLocal, scope dependent functions are not equal to themselves.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2690
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
The following code will throw an error.
int main() {
```
int b;
void add() { b++; };
if(add!=add)
...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2690
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
The following code will throw an error.
int main() {
```
int b;
void add() { b++; };
if(add!=add)
error("Ouch.\n");
}
```Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/2689Documentation targets fail completely if there's no jpeg support2009-04-16T14:11:39ZPeter BortasDocumentation targets fail completely if there's no jpeg supportImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2689
Reported by Martin Stjernholm <mast@roxen.com>
I think better error handling is needed here; an external lib shouldn't be
required to get any documentation at all.
...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2689
Reported by Martin Stjernholm <mast@roxen.com>
I think better error handling is needed here; an external lib shouldn't be
required to get any documentation at all.
```
mkxml: Image.Color.Color-> : Image.Color.Color->grey
mkxml: Image.Color.Color-> :
Image.Color.Color->name,Image.Color.Color->html,Image.Color.Color->hex
mkxml: Image.Color.Color-> : Image.Color.Color->`==
mkxml: Image.Color colors : Image.Color colors
-:32:Index 'encode' not present in module 'JPEG'.
"file='/home/mast/Pike/devel/refdoc/../src/modules/Image/colors.c'
first-line='89'"
******
0000:
0001: class Interceptor {
0002: string buffer = "";
0003:
0004: void `()(string in) {
0005: buffer += in;
0006: }
0007:
0008: string get() {
0009: return buffer;
0010: }
0011: }
0012:
0013: Interceptor write = Interceptor();
0014:
0015: int img_counter;
0016: string prefix;
0017: void create(int _img_counter, string _prefix) {
0018: img_counter = _img_counter;
0019: prefix = _prefix;
0020: }
0021:
0022: string illustration(string|Image.Image img, mapping extra,
void|string suffix) {
0023: string fn = prefix + "." + (img_counter++) + (suffix||".png");
0024: if(!stringp(img)) img = Image.PNG.encode(img);
0025: Stdio.write_file(fn, img);
0026: werror("Wrote %s from execute.\n", fn);
0027: return "<image>"+fn+"</image>";
0028: }
0029:
0030: string illustration_jpeg(Image.Image img, mapping extra) {
0031: return illustration(Image.JPEG.encode(img, extra), extra,
".jpeg");
0032: }
0033:
0034: string mktag(string name, void|mapping args, void|string c) {
0035: if(!args) args = ([]);
0036: if(!c)
0037: return sprintf("<%s%{ %s='%s'%} />", name, (array)args);
0038: return sprintf("<%s%{ %s='%s'%}>%s</%s>", name, (array)args, c,
name);
0039: }
0040:
0041: array(string) tag_stack = ({});
0042:
0043: string begin_tag(string name, void|mapping args) {
0044: if(!args) args = ([]);
0045: tag_stack += ({ name });
0046: return sprintf("<%s%{ %s='%s'%}>", name, (array)args);
0047: }
0048:
0049: string end_tag() {
0050: if(!sizeof(tag_stack)) throw( ({ "Tag stack underflow.\n",
backtrace() }) );
0051: string name = tag_stack[-1];
0052: tag_stack = tag_stack[..sizeof(tag_stack)-2];
0053: return "</" + name + ">";
0054: }
0055:
0056: string fix_image_path(string name) {
0057: return "/home/mast/Pike/devel/refdoc/src_images/" + name;
0058: }
0059:
0060:
0061:
0062: import Image;
0063:
0064: array modifiers=({"neon","light","dark","bright","dull"});
0065:
0066: object F=Font();
0067:
0068: mixed color_info(array(object) ac)
0069: {
0070:
0071: #define YZ 14
0072: #define YZz (YZ+1)
0073: #define MODX 32
0074: #define CXZ 64
0075: #define CSP 8
0076: #define MSP 4
0077: #define LSP 4
0078: #define XTEXT 100
0079: #define XSP 4
0080: #define cPOS (XTEXT+XSP)
0081: #define tPOS 0
0082: #define txPOS(t) (XSP*2)
0083: #define XZ (CXZ+CSP+(MSP+MODX)*sizeof(modifiers)-MSP)
0084:
0085: object i=Image(XZ+XTEXT,YZz*sizeof(ac),Color.black);
0086: object a=Image(XZ+XTEXT,YZz*sizeof(ac),Color.black);
0087:
0088: int y=0;
0089: foreach (ac,object c)
0090: {
0091: i->box(cPOS+0, y, cPOS+CXZ-1,y+YZ-1,c);
0092: i->box(cPOS+CXZ,y+YZ-LSP,cPOS+XZ, y+YZ-1,c);
0093: a->box(cPOS+0, y, cPOS+CXZ-1,y+YZ-1,Color.white);
0094: a->box(cPOS+CXZ,y+YZ-LSP,cPOS+XZ, y+YZ-1,Color.white);
0095:
0096: int x=CXZ+CSP+cPOS;
0097: foreach (modifiers,string mod)
0098: {
0099: i->box(x,y,x+MODX-1,y+YZ-LSP-1,c[mod]());
0100: a->box(x,y,x+MODX-1,y+YZ-LSP-1,Color.white);
0101: x+=MSP+MODX;
0102: }
0103: i->box(tPOS,y,tPOS+XTEXT-XSP-1,y+YZ-1,
0104: c->neon()->dark()->dark()->dark());
0105: a->box(tPOS,y,tPOS+XTEXT-XSP-1,y+YZ-1,Color.white);
0106: i->paste_alpha_color(F->write(c->name()), Color.white,
0107: txPOS(c->name()),y+1);
0108: y+=YZz;
0109: }
0110:
0111: write(illustration(i,(["alpha":a])));
0112: write(mktag("br")+"\n");
0113: }
0114:
0115: void main()
0116: {
0117: array cs=values(Color);
0118:
0119: array orig=({Color.black,Color.red,Color.green,Color.yellow,
0120: Color.blue,Color.violet,Color.cyan,Color.white});
0121: cs-=orig;
0122: cs-=({Color.pikegreen,Color.avantgardepikegreen,Color.roxenorange,
0123: Color.pikeblue}); // Lame sort of easter egg.
0124:
0125: array grey=Array.filter(cs,lambda(object c) { return c->s==0; });
0126: array colored=cs-grey;
0127:
0128: sort(grey->v,grey);
0129: sort(Array.map(colored,lambda(object c)
0130: {
0131: return (c->h*50-c->s)*10+c->v;
0132: }),colored);
0133:
0134: Array.map(({orig}),color_info);
0135: // write("\240");
0136: Array.map(({grey}),color_info);
0137: // write("\240");
0138: Array.map(colored/8.0,color_info);
0139: }
0140:
0141:
******
Compilation failed.
/home/mast/Pike/devel/build/linux-2.4.14-i686/master.pike:224:
master()->compile_string("\n class Interceptor {\n string buffer =
\"\";\n\n void `()(str
ing in) {\n buffer += in;\n }\n\n string get() {\n
return buffer;\n }\n }\n\
n Interceptor write = Interceptor();\n\n
in"+[3470],0,0)
/home/mast/Pike/devel/refdoc/bin/mirardoc.pike:917:
```
__lambda_65603_27_line_906(/home/mast/Pike/devel/build/linux-2.4.14-i686/lib/modules/Parser.pmod
/_parser.so.HTML(),([]),"\n\nimport Image;\n\narray
modifiers=({\"neon\",\"light\","+[2045],"fil
```
e='/home/mast/Pike/devel/refdoc/../src/modules/"+[32])
/home/mast/Pike/devel/build/linux-2.4.14-i686/lib/modules/Parser.pmod/_parser.so.HTML:
finish("\nThis table lists all the different named colors available in
Image.Color.\nThe first c
olumn shows the actual color while the five following
columns\ndemonstrates the modifiers neon,
light, dark,
br"+[2314])
/home/mast/Pike/devel/refdoc/bin/mirardoc.pike:245:
fixdesc("\nThis table lists all the different named colors available in
Image.Color.\nThe first
column shows the actual
co"+[2399],"","file='/home/mast/Pike/devel/refdoc/../src/modules/Image/c
olors.c'
first-line='89'")
/home/mast/Pike/devel/refdoc/bin/mirardoc.pike:595:
document("appendix",mapping[2],"Image.Color
colors","",/home/mast/Pike/devel/refdoc/bin/mirardoc
.pike.__class_65603_24_line_778())
/home/mast/Pike/devel/refdoc/bin/mirardoc.pike:794:
make_doc_files("../../../images")
/home/mast/Pike/devel/refdoc/bin/extract.pike:54:
```
main(3,({"/home/mast/Pike/devel/refdoc/../src/modules/Image/colors.c","../../../images"}))Pike 7.4https://git.lysator.liu.se/pikelang/pike/-/issues/2688Another test bug2009-04-16T14:11:39ZPeter BortasAnother test bugImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2688
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
Another test bug. Please ignore.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2688
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
Another test bug. Please ignore.Pike 7.6https://git.lysator.liu.se/pikelang/pike/-/issues/2687Test bug2009-04-16T14:11:39ZPeter BortasTest bugImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2687
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
Test bug. Please ignore.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2687
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
Test bug. Please ignore.Pike 7.6https://git.lysator.liu.se/pikelang/pike/-/issues/2681Poor random distribution for large integers.2009-04-16T14:11:39ZPeter BortasPoor random distribution for large integers.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2681
Reported by Stefan Wallström <stewa@lysator.liu.se>
for random(x) where x > maxint, mpz_random is used.
http://www.gnu.org/manual/gmp-3.1.1/text/gmp.txt :
- Functio...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2681
Reported by Stefan Wallström <stewa@lysator.liu.se>
for random(x) where x > maxint, mpz_random is used.
http://www.gnu.org/manual/gmp-3.1.1/text/gmp.txt :
- Function: void mpz_random (mpz_t ROP, mp_size_t MAX_SIZE)
Generate a random integer of at most MAX_SIZE limbs. The generated
random number doesn't satisfy any particular requirements of
randomness. Negative random numbers are generated when MAX_SIZE
is negative.
This function is obsolete. Use `mpz_urandomb' or `mpz_urandomm'
instead.Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/2675Calendar backtraces when \r\n is used in timezone data files.2009-04-16T14:11:39ZPeter BortasCalendar backtraces when \r\n is used in timezone data files.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2675
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
The Calendar module does not handle the case where \r\n is used as line
breaks in the time zone data files,...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2675
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
The Calendar module does not handle the case where \r\n is used as line
breaks in the time zone data files, which is the case in Windows Pike
distributions. A simple solution is to add -"\r" in the get_all_rules
function, or modifying all the places where the data is used, e.g. by
adding a newline makro that is platform dependent.Pike 7.6Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/2665Post modules don't compile on MacOS X 10.1.x2009-04-16T14:11:39ZPeter BortasPost modules don't compile on MacOS X 10.1.xImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2665
Reported by @grubba
From the pike@roxen.com mailinglist:
```
From: Bill Welliver <hww3@riverweb.com>
To: "pike@roxen.com" <pike@roxen.com>
Date: Sun, 6 Jan 2002 14:...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2665
Reported by @grubba
From the pike@roxen.com mailinglist:
```
From: Bill Welliver <hww3@riverweb.com>
To: "pike@roxen.com" <pike@roxen.com>
Date: Sun, 6 Jan 2002 14:56:18 -0500
Subject: Pike and MacOS X 10.1.x
```
The other problems are in the post_modules: I don't have GL, but
configure doesn't seem to remove GL or GLUT from the lists of modules to
build. The build process doesn't seem to like my GTK installation
either, as I get a whole bunch of errors similar to this:
```
Compiling pgtk_1.c
./gdkeventstrings.h:1: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:1: warning: garbage at end of number
./gdkeventstrings.h:1: illegal external declaration, missing `;' after
`s_2button'
./gdkeventstrings.h:2: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:2: warning: garbage at end of number
./gdkeventstrings.h:2: illegal external declaration, missing `;' after
`s_3button'
./gdkeventstrings.h:1: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:1: warning: garbage at end of number
./gdkeventstrings.h:1: illegal statement, missing `;' after `s_2button'
./gdkeventstrings.h:2: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:2: warning: garbage at end of number
./gdkeventstrings.h:2: illegal statement, missing `;' after `s_3button'
pgtk_1.c:84: warning: nondigits in number and not hexadecimal
pgtk_1.c:84: warning: garbage at end of number
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:84:
syntax error, missing `;' after `s_2button'
pgtk_1.c:86: warning: nondigits in number and not hexadecimal
pgtk_1.c:86: warning: garbage at end of number
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:86:
syntax error, missing `;' after `s_3button'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
In file included from
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:13:
./gdkeventstrings.h:1: parse error before `_press'
./gdkeventstrings.h:1: warning: data definition has no type or storage
class
./gdkeventstrings.h:2: parse error before `_press'
./gdkeventstrings.h:2: warning: data definition has no type or storage
class
In file included from
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:19:
./gdkeventstrings.h: In function `define_gdkeventstrings':
./gdkeventstrings.h:1: `s_2button' undeclared (first use in this
function)
./gdkeventstrings.h:1: (Each undeclared identifier is reported only once
./gdkeventstrings.h:1: for each function it appears in.)
./gdkeventstrings.h:1: parse error before `_press'
./gdkeventstrings.h:2: `s_3button' undeclared (first use in this
function)
./gdkeventstrings.h:2: parse error before `_press'
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:
In function `pgdk_event__index':
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:84:
`s_2button' undeclared (first use in this function)
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:84:
parse error before `_press'
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:86:
`s_3button' undeclared (first use in this function)
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:86:
parse error before `_press'
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:
In function `pgdk_event_cast':
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:288:
`s_2button_press' undeclared (first use in this function)
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:291:
`s_3button_press' undeclared (first use in this function)
WARNING: Compiler failure! Trying without optimization!
/Users/hww3/Desktop/Pike/src/smartlink cc -I.
-I/Users/hww3/Desktop/Pike/src/post_modules/GTK
-I/Users/hww3/Desktop/Pike/src/post_modules/GTK/../.. -I../.. -I.
-I/usr/local/include -I/sw/include -I/usr/X11R6/include
-I/Users/hww3/Desktop/Pike/src -I/usr/local/include -I/sw/include
-I/usr/X11R6/include -I/Users/hww3/Desktop/Pike/src -fPIC
-DDYNAMIC_MODULE -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2
-I/sw/lib/glib/include -I/usr/X11R6/include -I/sw/include
-DNEED_GNOMESUPPORT_H -I/sw/lib/gnome-libs/include -I/sw/include/gtk-1.2
-I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include
-I/sw/include/gnome-xml -I/sw/include -I/sw/include/gtk-1.2
-I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include -c
pgtk_1.c -o pgtk_1.o
./gdkeventstrings.h:1: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:1: warning: garbage at end of number
./gdkeventstrings.h:1: illegal external declaration, missing `;' after
`s_2button'
./gdkeventstrings.h:2: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:2: warning: garbage at end of number
./gdkeventstrings.h:2: illegal external declaration, missing `;' after
`s_3button'
./gdkeventstrings.h:1: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:1: warning: garbage at end of number
./gdkeventstrings.h:1: illegal statement, missing `;' after `s_2button'
./gdkeventstrings.h:2: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:2: warning: garbage at end of number
./gdkeventstrings.h:2: illegal statement, missing `;' after `s_3button'
pgtk_1.c:84: warning: nondigits in number and not hexadecimal
pgtk_1.c:84: warning: garbage at end of number
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:84:
syntax error, missing `;' after `s_2button'
pgtk_1.c:86: warning: nondigits in number and not hexadecimal
pgtk_1.c:86: warning: garbage at end of number
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:86:
syntax error, missing `;' after `s_3button'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
In file included from
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:13:
./gdkeventstrings.h:1: parse error before `_press'
./gdkeventstrings.h:1: warning: data definition has no type or storage
class
./gdkeventstrings.h:2: parse error before `_press'
./gdkeventstrings.h:2: warning: data definition has no type or storage
class
In file included from
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:19:
./gdkeventstrings.h: In function `define_gdkeventstrings':
./gdkeventstrings.h:1: `s_2button' undeclared (first use in this
function)
./gdkeventstrings.h:1: (Each undeclared identifier is reported only once
./gdkeventstrings.h:1: for each function it appears in.)
./gdkeventstrings.h:1: parse error before `_press'
./gdkeventstrings.h:2: `s_3button' undeclared (first use in this
function)
./gdkeventstrings.h:2: parse error before `_press'
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:
In function `pgdk_event__index':
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:84:
`s_2button' undeclared (first use in this function)
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:84:
parse error before `_press'
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:86:
`s_3button' undeclared (first use in this function)
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:86:
parse error before `_press'
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:
In function `pgdk_event_cast':
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:288:
`s_2button_press' undeclared (first use in this function)
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:291:
`s_3button_press' undeclared (first use in this function)
make[2]: *** [pgtk_1.o] Error 1
make[1]: *** [compile1] Error 2
make: *** [GTK] Error 1
```
I didn't feel like diving into that mess at the time, so I decided to
ignore it for the time being. Any suggestions that might help figure out
this particular set of errors would be greatly appreciated. I removed
GL, GLUT and GTK from the list of post_modules in
src/post_modules/Makefile, leaving only Unicode.
Having done all of this, pike seems to compile and install properly.
I've posted my diffs for getting Caudium to compile on a the
caudium.general newsgroup.
Best regards,
Bill Welliver
hww3@riverweb.comPike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/2660Varargs doesn't show in backtraces.2009-04-16T14:11:39ZPeter BortasVarargs doesn't show in backtraces.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2660
Reported by Stefan Wallström <stewa@lysator.liu.se>
Varargs doesn't show in backtraces.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2660
Reported by Stefan Wallström <stewa@lysator.liu.se>
Varargs doesn't show in backtraces.Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/2644ws2_32.dll dependency2009-04-16T14:11:39ZPeter Bortasws2_32.dll dependencyImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2644
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
Pike, or at least it's installation, depends on ws2_32.dll, which makes it
impossible to install on Windows...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2644
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
Pike, or at least it's installation, depends on ws2_32.dll, which makes it
impossible to install on Windows 95. Earlier versions, e.g. 0.6.80 can
be installed an run on Windows 95 without problems.Pike 7.6Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/2638"Warning: Redefining inherited variable" when starting Roxen2009-04-16T14:11:39ZPeter Bortas"Warning: Redefining inherited variable" when starting RoxenImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2638
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
The following is printed out when Roxen 2.4 is started
```
/export/d1/nilsson/pike/7.3.13/lib/modules/Cale...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2638
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
The following is printed out when Roxen 2.4 is started
```
/export/d1/nilsson/pike/7.3.13/lib/modules/Calendar.pmod/YMD.pmod:1929:
Warning: Redefining inherited variable 'Day' with different type.
```Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/2634Some refdoc files aren't where export.pike expects them2009-04-16T14:11:39ZPeter BortasSome refdoc files aren't where export.pike expects themImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2634
Reported by Martin Stjernholm <mast@roxen.com>
make export fails when export.pike tries to create the tarball. The errors
from tar are:
tar: Cannot add file Pike-v7...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2634
Reported by Martin Stjernholm <mast@roxen.com>
make export fails when export.pike tries to create the tarball. The errors
from tar are:
tar: Cannot add file Pike-v7.3.13/refdoc/tree-split-style.css: No such file
or directory
tar: Cannot add file Pike-v7.3.13/refdoc/tree-split-template.html: No such
file or directoryPike 7.4https://git.lysator.liu.se/pikelang/pike/-/issues/2625_memory_usage() returns negative num_objects value2009-04-16T14:11:39ZPeter Bortas_memory_usage() returns negative num_objects valueImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2625
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
Pike v7.3 release 12 running Hilfe v2.0 (Incremental Pike Frontend)
> _memory_usage();
Result: ([ /* 18...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2625
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
Pike v7.3 release 12 running Hilfe v2.0 (Incremental Pike Frontend)
> _memory_usage();
Result: ([ /* 18 elements */
"array_bytes":17804,
"callable_bytes":8200,
"callback_bytes":2052,
"frame_bytes":10756,
"mapping_bytes":52295,
"multiset_bytes":304,
"num_arrays":159,
"num_callables":220,
"num_callbacks":2,
"num_frames":9,
"num_mappings":45,
"num_multisets":19,
"num_objects":-56,
"num_programs":104,
"num_strings":2922,
"object_bytes":185076,
"program_bytes":563152,
"string_bytes":109240
])
```Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/2620sprintf("%x") fails on IA642009-04-16T14:11:39ZPeter Bortassprintf("%x") fails on IA64Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2620
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
modules/sprintf/module_testsuite: Test 44 (shift 2) failed.
1: mixed a() { return sprintf("%x", -0x80000...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2620
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
modules/sprintf/module_testsuite: Test 44 (shift 2) failed.
1: mixed a() { return sprintf("%x", -0x80000000) ; }
2: mixed b() { return "-80000000"; }
o->a(): "-ffffffff80000000"
o->b(): "-80000000"Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/2616#pike doesn't work2009-04-16T14:11:39ZPeter Bortas#pike doesn't workImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2616
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
(possibly duplicate of 2458)
The program
```
#pike 7.0
int main() {
mixed b = Simulate;
write(__VERSIO...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2616
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
(possibly duplicate of 2458)
The program
```
#pike 7.0
int main() {
mixed b = Simulate;
write(__VERSION__ + "\n");
}
```
yields
```
Bad argument 1 to sizeof().
/export/d1/nilsson/pike/7.3.12/lib/master.pike:835:
master()->dirnode(0)->create(0,0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:352:
```
master()->compile_file("/export/d1/nilsson/pike/7.3.12/lib/7.0/modules/Simulate.pmod",0,Si
```
mulate,master()->dirnode(0))
/export/d1/nilsson/pike/7.3.12/lib/master.pike:528:
```
master()->low_findprog("/export/d1/nilsson/pike/7.3.12/lib/7.0/modules/Simulate.pmod","",0
```
,1)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:579:
```
master()->findprog("/export/d1/nilsson/pike/7.3.12/lib/7.0/modules/Simulate.pmod",".pmod",
```
0,1)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:610:
```
master()->low_cast_to_program("/export/d1/nilsson/pike/7.3.12/lib/7.0/modules/Simulate","/
```
.",0,1)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:802:
```
master()->low_cast_to_object("/export/d1/nilsson/pike/7.3.12/lib/7.0/modules/Simulate.pmod
```
","/.",0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:1142:
master()->findmodule("/export/d1/nilsson/pike/7.3.12/lib/7.0/modules/Simulate",0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:1311:
CompatResolver(7.0)->resolv_base("Simulate","/home/nilsson/test.pike",0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:1369:
CompatResolver(7.0)->resolv("Simulate","/home/nilsson/test.pike",0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:352:
master()->compile_file("/home/nilsson/test.pike",0,test.pike,0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:528:
master()->low_findprog("/home/nilsson/test",".pike",0,0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:574:
master()->findprog("/home/nilsson/test",".pike",0,0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:610:
```
master()->low_cast_to_program("/home/nilsson/test","/export/d1/nilsson/pike/7.3.12/lib/mas
```
ter.pike",0,0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:640:
```
master()->cast_to_program("/home/nilsson/test.pike","/export/d1/nilsson/pike/7.3.12/lib/ma
```
ster.pike",0)
test.pike:4:Placeholder already has storage!
Pike: Failed to compile script:
Compilation failed.
```
The problem is probably somewhere in compile (program.c).Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/2608Missing GTK Module RH7.1 Running Pike 7.2.239 RH 6.2 Sh Install2009-04-16T14:11:39ZPeter BortasMissing GTK Module RH7.1 Running Pike 7.2.239 RH 6.2 Sh InstallImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2608
Reported by Anthony Dycks, Marconi Services Americas <panfisher@earthlink.net>
I'm encountering the following message running an adaptation of the
GTK Hello World pr...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2608
Reported by Anthony Dycks, Marconi Services Americas <panfisher@earthlink.net>
I'm encountering the following message running an adaptation of the
GTK Hello World program, hellogtk.pike.
Running the following Pike source code ...
```
int main()
{
GTK.setup_gtk();
GTK.Alert("Hello world!") -> signal_connect("destroy", exit, 0);
return -1;
}
```
// >>> End of Program -- hellogtk.pike <<<
I encounter the following error under a Red Hat Linux 7.1
Gnome Workstation Environment ...
```
hellogtk.pike:3:Failed to index module 'GTK' with 'setup_gtk'
(module doesn't exist?)
Pike: Failed to compile script:
Compilation failed.
```
I suspect I'm missing a GTK Version package install or a Pike GTK module.
I used the following downloaded shell file to install Pike 7.2.239 ...
pike-7.2.239-lrh6.2.sh (Accepted all defaults from Shell Script prompts)
Any suggestions on how I might resolve the error?
Thanks & Best Regards,
Panfisher
Some background information regarding my RH Linux V7.2 & Pike V7.2.239
Install...
G-Prefix files in /usr/pike/local/7.2.239/lib/modules Directory ...
Gdbm.so Getopt.pmod Gettext.so GLU.pmod.o Gnome.pmod
GDK.pmod Getopt.pmod.o GLU.pmod Gmp.so Gz.so
Geography.pmod:
Countries.pmod Countries.pmod.o Position.pike Position.pike.o
Graphics.pmod:
Graph.pmod
GTKSupport.pmod:
Alert.pike pCtree.pike SClist.pike
MenuFactory.pmod pDrawingArea.pike Util.pmod
<End of Directory Listing>
RPM Query of G-Prefixed Installed Packages Shows ...
gd-1.8.3-7
...
gd-devel-1.8.3-7
gdk-pixbuf-0.8.0-7
gdk-pixbuf-devel-0.8.0-7
...
glib10-1.0.6-9
glib-1.2.9-1
glibc-2.2.2-10
glibc-common-2.2.2-10
glibc-devel-2.2.2-10
glibc-profile-2.2.2-10
glib-devel-1.2.9-1
glib-gtkbeta-1.3.2-2
...
gnome-applets-1.2.4-3
...
gnome-core-1.2.4-16
gnome-core-devel-1.2.4-16
...
gnome-kerberos-0.2.2-2
gnome-libs-1.2.8-11
gnome-libs-devel-1.2.8-11
...
gnome-objc-1.0.2-11
gnome-objc-devel-1.0.2-11
...
gpm-1.19.3-16
gpm-devel-1.19.3-16
...
gtk+10-1.0.6-9
gtk+-1.2.9-4
gtk+-devel-1.2.9-4
gtk-doc-0.4b1-3
gtk-engines-0.10-12
gtk+-gtkbeta-1.3.2-4
<End Of RPM Installed Packages Clip>Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/2604Calendar.Timezone doesn't compile when starting WebServer2009-04-16T14:11:39ZPeter BortasCalendar.Timezone doesn't compile when starting WebServerImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2604
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod/Timezone.pmod:69:C
an not clone program withou...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2604
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod/Timezone.pmod:69:C
an not clone program without parent context.
/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod/Timezone.pmod:215:
Class definition failed.
/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod/Timezone.pmod:257:
Class definition failed.
/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod/Timezone.pmod:621:
Class definition failed.
/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod/Timezone.pmod:828:
Class definition failed.
/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod/Timezone.pmod:1016
:Class definition failed.
/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod/Timezone.pmod:1054
:Class definition failed.
/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod/Timezone.pmod:1343
:Class definition failed.
/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod/Timezone.pmod:1374
:Class definition failed.
/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod/Timezone.pmod:1390
:Class definition failed.
Compilation failed.
/export/d1/nilsson/pike/7.3.12/lib/master.pike:352:
master()->compile_file("/export/d1/nilss"+[38]+"od/Timezone.pmod",0,0,0)
etc/roxen_master.pike:627:
master()->low_findprog("/export/d1/nilss"+[38]+"od/Timezone.pmod","",0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:579:
master()->findprog("/export/d1/nilss"+[38]+"od/Timezone.pmod",".pmod",0,1)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:610:
master()->low_cast_to_program("/export/d1/nilss"+[33]+"ar.pmod/Timezone","/
.",0,1)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:802:
master()->low_cast_to_object("/export/d1/nilss"+[38]+"od/Timezone.pmod","/.
",0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:1142:
master()->findmodule("/export/d1/nilss"+[33]+"ar.pmod/Timezone",0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:925:
master()->dirnode("/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod
")->ind("/export/d1/nilss"+[33]+"ar.pmod/Timezone")
/export/d1/nilsson/pike/7.3.12/lib/master.pike:953:
master()->dirnode("/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod
")->`[]("Timezone")
/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod/module.pmod:47:
`[]("_module_value")
/export/d1/nilsson/pike/7.3.12/lib/master.pike:852: `!()
/export/d1/nilsson/pike/7.3.12/lib/master.pike:893:
master()->dirnode("/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod
")->ind("Second")
/export/d1/nilsson/pike/7.3.12/lib/master.pike:953:
master()->dirnode("/export/d1/nilsson/pike/7.3.12/lib/modules/Calendar.pmod
")->`[]("Second")
/export/d1/nilsson/pike/7.3.12/lib/master.pike:352:
master()->compile_file("/export/d1/nilss"+[31]+"s.pmod/X509.pmod",0,0,0)
etc/roxen_master.pike:627:
master()->low_findprog("/export/d1/nilss"+[31]+"s.pmod/X509.pmod","",0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:579:
master()->findprog("/export/d1/nilss"+[31]+"s.pmod/X509.pmod",".pmod",0,1)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:610:
master()->low_cast_to_program("/export/d1/nilss"+[26]+"/Tools.pmod/X509","/
.",0,1)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:802:
master()->low_cast_to_object("/export/d1/nilss"+[31]+"s.pmod/X509.pmod","/.
",0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:1142:
master()->findmodule("/export/d1/nilss"+[26]+"/Tools.pmod/X509",0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:925:
master()->dirnode("/export/d1/nilsson/pike/7.3.12/lib/modules/Tools.pmod")-
>ind("/export/d1/nilss"+[26]+"/Tools.pmod/X509")
/export/d1/nilsson/pike/7.3.12/lib/master.pike:953:
master()->dirnode("/export/d1/nilsson/pike/7.3.12/lib/modules/Tools.pmod")-
>`[]("X509")
/export/d1/nilsson/pike/7.3.12/lib/master.pike:352:
master()->compile_file("/export/d1/nilss"+[34]+"d/handshake.pike",0,0,0)
etc/roxen_master.pike:627:
master()->low_findprog("/export/d1/nilss"+[29]+"L.pmod/handshake",".pike",0
)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:574:
master()->findprog("/export/d1/nilss"+[29]+"L.pmod/handshake",".pike",0,0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:610:
master()->low_cast_to_program("/export/d1/nilss"+[29]+"L.pmod/handshake","/
home/nilsson/Ro"+[20]+"oxen_master.pike",0,0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:640:
master()->cast_to_program("/export/d1/nilss"+[34]+"d/handshake.pike","/home
/nilsson/Ro"+[20]+"oxen_master.pike",0)
etc/roxen_master.pike:450:
programof("/export/d1/nilss"+[34]+"d/handshake.pike")
etc/roxen_master.pike:621:
master()->low_findprog("/export/d1/nilss"+[30]+".pmod/connection",".pike",0
)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:580:
master()->findprog("/export/d1/nilss"+[30]+".pmod/connection","",0,0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:620:
master()->low_cast_to_program("connection","/export/d1/nilss"+[32]+"mod/ssl
file.pike",0,0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:640:
master()->cast_to_program("connection","/export/d1/nilss"+[32]+"mod/sslfile
.pike",0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:791:
master()->handle_inherit("connection","/export/d1/nilss"+[32]+"mod/sslfile.
pike",0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:352:
master()->compile_file("/export/d1/nilss"+[32]+"mod/sslfile.pike",0,0,0)
etc/roxen_master.pike:627:
master()->low_findprog("/export/d1/nilss"+[27]+"SSL.pmod/sslfile",".pike",0
)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:580:
master()->findprog("/export/d1/nilss"+[27]+"SSL.pmod/sslfile","",0,0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:610:
master()->low_cast_to_program("/export/d1/nilss"+[27]+"SSL.pmod/sslfile",0,
0,0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:640:
master()->cast_to_program("/export/d1/nilss"+[27]+"SSL.pmod/sslfile",0,0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:930:
master()->dirnode("/export/d1/nilsson/pike/7.3.12/lib/modules/SSL.pmod")->i
nd("/export/d1/nilss"+[27]+"SSL.pmod/sslfile")
/export/d1/nilsson/pike/7.3.12/lib/master.pike:953:
master()->dirnode("/export/d1/nilsson/pike/7.3.12/lib/modules/SSL.pmod")->`
[]("sslfile")
/export/d1/nilsson/pike/7.3.12/lib/master.pike:347:
master()->compile_file("/export/d1/nilss"+[47]+"pmod/module.pmod",0,0,0)
etc/roxen_master.pike:627:
master()->low_findprog("/export/d1/nilss"+[47]+"pmod/module.pmod","",0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:579:
master()->findprog("/export/d1/nilss"+[47]+"pmod/module.pmod",".pmod",0,1)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:610:
master()->low_cast_to_program("/export/d1/nilss"+[42]+"HTTP.pmod/module","/
.",0,1)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:802:
master()->low_cast_to_object("/export/d1/nilss"+[47]+"pmod/module.pmod","/.
",0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:1142:
master()->findmodule("/export/d1/nilss"+[42]+"HTTP.pmod/module",0)
/export/d1/nilsson/pike/7.3.12/lib/master.pike:850: `!()
/export/d1/nilsson/pike/7.3.12/lib/master.pike:893:
master()->dirnode("/export/d1/nilsson/pike/7.3.12/lib/modules/Protocols.pmo
d/HTTP.pmod")->ind("Query")
/export/d1/nilsson/pike/7.3.12/lib/master.pike:953:
master()->dirnode("/export/d1/nilsson/pike/7.3.12/lib/modules/Protocols.pmo
d/HTTP.pmod")->`[]("Query")
/export/d1/nilsson/pike/7.3.12/lib/master.pike:1370:
master()->resolv("Protocols.HTTP.Query",0,0)
base_server/roxenloader.pike:726: nm_resolv("Protocols.HTTP.Query")
base_server/roxenloader.pike:2114: do_main(2,0)
base_server/roxenloader.pike:1190:
do_main_wrapper(2,({"/home/nilsson/Ro"+[27]+"roxenloader.pike","--no-delaye
d-load"}))
```Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/2593Check if the UA32_RELOCATION check is present in Solaris 82009-04-16T14:11:39ZPeter BortasCheck if the UA32_RELOCATION check is present in Solaris 8Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2593
Reported by @zino
The "your gcc generates UA32_RELOCATIONS" configure test is a major
showstopper for Solaris/Sparc users. You have to be very dedicated to
getting a...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2593
Reported by @zino
The "your gcc generates UA32_RELOCATIONS" configure test is a major
showstopper for Solaris/Sparc users. You have to be very dedicated to
getting a Pike to acctually change to source to gcc and recompile it before
continuing. Is this bug still present in Sol8, and if so, how does it
manifest and can it be worked around in some other way?Pike 7.6Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/2581Invalid prototype for initialized variables in inherited classes2009-04-16T14:11:39ZPeter BortasInvalid prototype for initialized variables in inherited classesImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2581
Reported by Martin Stjernholm <mast@roxen.com>
This program:
```
class A (int i) {}
class B (int i, int j) {inherit A;}
class C {inherit B;}
int mai...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2581
Reported by Martin Stjernholm <mast@roxen.com>
This program:
```
class A (int i) {}
class B (int i, int j) {inherit A;}
class C {inherit B;}
int main()
{
C (1,1);
}
```
fails with:
```
foo.pike:6:Too many arguments to C.
foo.pike:6:Expected: function(int : object(is 65602))
foo.pike:6:Got : function(int(1..1), int(1..1) : void | mixed)
```
Problem exists in 7.2 and 7.3.Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/2571Scope pointer bug2009-04-16T14:11:39ZPeter BortasScope pointer bugImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2571
Reported by Martin Stjernholm <mast@roxen.com>
The following program produces a segmentation fault:
```
int main()
{
int var;
void x() {var++;};...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2571
Reported by Martin Stjernholm <mast@roxen.com>
The following program produces a segmentation fault:
```
int main()
{
int var;
void x() {var++;};
lambda () {x();}();
}
```
Cursory investigation indicates that it's some problem with the scope
pointers. It works in 7.2.Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/2564Illegal Instruction: si_code [1]: ILL_ILLOPC [addr: 0xb32ac]2009-04-16T14:11:39ZPeter BortasIllegal Instruction: si_code [1]: ILL_ILLOPC [addr: 0xb32ac]Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2564
Reported by Ian Delahorne, Roxen IS <ian@roxen.com>
Encountered by Peter Ohlerich at University of Bielefeld. Running Pike
7.2.229 from Roxen 2.2.230 on Sol7Sparc.
...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2564
Reported by Ian Delahorne, Roxen IS <ian@roxen.com>
Encountered by Peter Ohlerich at University of Bielefeld. Running Pike
7.2.229 from Roxen 2.2.230 on Sol7Sparc.
Illegal Instruction
si_signo [4]: Illegal Instruction
si_errno [0]: Error 0
si_code [1]: ILL_ILLOPC [addr: 0xb32ac]Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbström