pike issueshttps://git.lysator.liu.se/pikelang/pike/-/issues2009-04-16T14:11:39Zhttps://git.lysator.liu.se/pikelang/pike/-/issues/1117\f does not render a form feed character2009-04-16T14:11:39ZPeter Bortas\f does not render a form feed characterImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1117
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
'\f' returns 102, not 12 (or whatever form feed might be).Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1117
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
'\f' returns 102, not 12 (or whatever form feed might be).Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1100Roxen loader failed: Wrong type of object, cannot convert to mpz.2020-02-29T17:53:00ZPeter BortasRoxen loader failed: Wrong type of object, cannot convert to mpz.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1100
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
This is a bug trigged using NFS (e.i. using /home and not /tmp) on Wings
workstation Holt whic...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1100
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
This is a bug trigged using NFS (e.i. using /home and not /tmp) on Wings
workstation Holt which is a Solaris 7 Sparc. The bug persists despite Holt
was patched today.
```
22:18:27 : ----------------------------------------------------------
0m 0.0s : Pike v7.0 release 302, Roxen WebServer 2.1.216
: Loading pike modules ... Roxen loader failed:
: Wrong type of object, cannot convert to mpz.
: Unknown program: `|(object)
: base_server/roxenloader.pike:1473: do_main(1,0)
22:18:29 : base_server/roxenloader.pike:1206:
do_main_wrapper(1,({"/home/noring/tmp/roxen/server/base_server/roxenloader.pike"}))
0m 1.1s :
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1086Purge directory doesn't update view.2009-04-16T14:11:39ZPeter BortasPurge directory doesn't update view.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1086
Reported by Joachim Nyman Silverstig, Idonex AB <jocke@roxen.com>
I delete a directory. I change to Undelete View, zoom in to the dir and
Purge it. Now, the view are...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1086
Reported by Joachim Nyman Silverstig, Idonex AB <jocke@roxen.com>
I delete a directory. I change to Undelete View, zoom in to the dir and
Purge it. Now, the view area are not updated and the dir can still be
seen. I thought that the dir wasn't purged, so i mayed another purge on the
same directory. Now this happens, which crashes my whole site, so I can't
view it anymore at all:
Roxen version: Roxen/2.1.199 NT
Pike version: Pike v7.0 release 288
Requested URL: /edit/!!!!files!N!!!!980156687/
```
Error: Failed to start process (267).
__builtin.create_process: create(({"C:/Program
Files"+[57]+"lder/bin/cvs.exe","-!","-q","-d:local:C:/Prog"+[46]+"_demo.sb/
cvsroot","update","__info"}),mapping[5])
__builtin: create_process()
modules/sitebuilder/pike-modules/VC.pmod/CVS.pmod/CVS.pike:138: command(0)
modules/sitebuilder/pike-modules/VC.pmod/CVS.pmod/file.pike (version
1.72):436: update(0)
modules/sitebuilder/pike-modules/Sitebuilder.pmod/VCDir.pike (version
1.111):314: update_state(0,0)
modules/sitebuilder/pike-modules/Sitebuilder.pmod/VCDir.pike (version
1.111):294: update_state(0,0)
modules/sitebuilder/pike-modules/Sitebuilder.pmod/VCDir.pike (version
1.111):791: exists(RequestID(),0,0)
modules/sitebuilder/tabs/files/index.pike:996:
filelisting_dir(VCDir(E:2::/),mapping[5],RequestID(),0,0,(<>),"ct",0,0)
modules/sitebuilder/tabs/files/index.pike:1698:
tag_filelisting("sb-internal-filelisting",mapping[5],RequestID())
base_server/roxenloader.pike.ParseHtmlCompat: finish("<!DOCTYPE HTML
P"+[5233]+"ble>\r\n\n\n</body>\n")
base_server/roxenloader.pike (version 1.204):953: parse_html("<!DOCTYPE
HTML P"+[5233]+"ble>\r\n\n\n</body>\n",mapping[24],mapping[8])
modules/sitebuilder/modules/manager/content_editor.pike (version
1.180):640:
show(RequestID(),"",({modules/sitebuilder/modules/manager/content_editor.pi
ke.Tab(),modules/sitebuilder/modules/manager/content_editor.pike.Tab(),modu
les/sitebuilder/modules/manager/content_editor.pike.Tab(),modules/sitebuild
er/modules/manager/content_editor.pike.Tab(),modules/sitebuilder/modules/ma
nager/content_editor.pike.Tab()}),mapping[8],RoxenModule(ny
demo/content_editor#0))
modules/sitebuilder/modules/manager/content_editor.pike (version
1.180):1380: find_file("!!!!files!N!!!!980156687/",RequestID())
/Program Files/Roxen Internet
Software/WebServer/server/base_server/configuration.pike (version
1.384):1154: low_get_file(RequestID(),0)
/Program Files/Roxen Internet
Software/WebServer/server/base_server/configuration.pike (version
1.384):1344: get_file(RequestID(),0,0)
/Program Files/Roxen Internet
Software/WebServer/server/base_server/configuration.pike (version
1.384):1319: handle_request(RequestID())
/Program Files/Roxen Internet Software/WebServer/server/protocols/http.pike
(version 1.284):1955: handle_request()
/Program Files/Roxen Internet Software/WebServer/server/protocols/http.pike
(version 1.284):2179: got_data(0,"GET
/edit/!!!!fi"+[304]+"d3d3Ond3dw==\r\n\r\n")
pike/lib/pike/modules/Stdio.pmod/module.pmod (version 1.84):308:
__stdio_read_callback()
Request data:
GET /edit/!!!!files!N!!!!980156687/ HTTP/1.0
Connection: Keep-Alive
User-Agent: Mozilla/4.76 [en] (Windows NT 5.0; U)
Host: holly:8896
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: sv,en
Accept-Charset: iso-8859-1,*,utf-8
Authorization: ################ (censored)
```Pike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/1076Rotation of an image of size 0 causes segfault.2009-04-16T14:11:39ZPeter BortasRotation of an image of size 0 causes segfault.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1076
Reported by Anders Johansson <anders@roxen.com>
```
Pike v7.0 release 141 running Hilfe v2.0 (Incremental Pike Frontend)
> Image.Image(17,0)->rotate(17);
zsh: 32118 ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1076
Reported by Anders Johansson <anders@roxen.com>
```
Pike v7.0 release 141 running Hilfe v2.0 (Incremental Pike Frontend)
> Image.Image(17,0)->rotate(17);
zsh: 32118 segmentation fault (core dumped) pike
```Pike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/1057Source code distribution seems to require pike2009-04-16T14:11:39ZPeter BortasSource code distribution seems to require pikeImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1057
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Making Pike 7.1.48 source distribution yields:
```
...
gmake pike
gmake[1]: Entering direct...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1057
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Making Pike 7.1.48 source distribution yields:
```
...
gmake pike
gmake[1]: Entering directory
`/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build'
touch modules/modlist_headers.h
Compiling
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/module.c
./precompile.sh precompile.pike
"/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.c"
"/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.cmod"
precompile: /home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/pike
-DNOT_INSTALLED
-m/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/master.pike
./precompile.pike
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.cmod
>/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.c
(method=Q)
./precompile.sh:
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/pike: not found
precompile: /home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/tpike
-DNOT_INSTALLED
-m/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/master.pike
./precompile.pike
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.cmod
>/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.c
(method=QQ)
./precompile.sh:
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/tpike: not found
precompile:
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/test-pike
./precompile.pike
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.cmod
>/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.c
(method=QQQ)
./precompile.sh:
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/test-pike: not found
precompile: pike -DOLD ./precompile.pike
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.cmod
>/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.c
(method=QQQQQ)
pike: not found
precompile: /home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/pike
-DNOT_INSTALLED
-m/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/master.pike
./precompile.pike
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.cmod
>/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.c
(method=Q)
./precompile.sh:
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/pike: not found
precompile: /home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/tpike
-DNOT_INSTALLED
-m/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/master.pike
./precompile.pike
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.cmod
>/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.c
(method=QQ)
./precompile.sh:
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/tpike: not found
precompile:
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/test-pike
./precompile.pike
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.cmod
>/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.c
(method=QQQ)
./precompile.sh:
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build/test-pike: not found
precompile: pike -DOLD ./precompile.pike
/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.cmod
>/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.c
(method=QQQQQ)
pike: not found
gmake[1]: ***
[/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/pike/src/builtin.c] Error
1
gmake[1]: Leaving directory
`/home/distmaker/Distmaker/2.2/build/pike.fbsd4.0/build'
gmake: *** [all] Error 2
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1053Error in internal buffering in trace output2009-04-16T14:11:39ZPeter BortasError in internal buffering in trace outputImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1053
Reported by @marcus
Running the following program in pike7.1.45
---8<---
```
mapping x = ([]);
class y { int `==(object z) { return 0; } };
```
void use(mixed _) ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1053
Reported by @marcus
Running the following program in pike7.1.45
---8<---
```
mapping x = ([]);
class y { int `==(object z) { return 0; } };
```
void use(mixed _) { }
```
void main()
{
x[y()] = 1;
trace(2);
x[y()] = 1;
use(x);
}
```
---8<---
gives a fatal error:
```
- Return: 0
- tracekrash.pike: 9: 8314d74->y()
- Return: object
- tracekrash.pike: 12: 8314d54->`==(object)
- Return: 0
/home/marcus/pike/src/dynamic_buffer.c:55: Fatal error:
Error in internal buffering.
Attempting to dump backlog (may fail)...
Backtrace at time of fatal:
tracekrash.pike:12: main()
Abort (core dumped)
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1045etc/env.d/fonts.pike:7:Garbage characters in constant()2009-04-16T14:11:39ZPeter Bortasetc/env.d/fonts.pike:7:Garbage characters in constant()Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1045
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Installing Roxen 2.2.9 gives:
Installing packages, please wait...
Packages installatio...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1045
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Installing Roxen 2.2.9 gives:
Installing packages, please wait...
Packages installation completed
successfully.
Installing Pike in /tmp/roxen/server/pike, please wait...
Pike installation completed successfully.
```
Setting up environment in /tmp/roxen/local.
etc/env.d/fonts.pike:7:Garbage characters in constant()
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1031Parser.HTML crashes on feed(0)2014-07-24T14:49:14ZPeter BortasParser.HTML crashes on feed(0)Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1031
Reported by Thomas Bopp, Uni-GH Paderborn <astra@upb.de>
I tried just p->feed(0) in a testprogram and it did not crash, on
my large project I got the following:
```...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1031
Reported by Thomas Bopp, Uni-GH Paderborn <astra@upb.de>
I tried just p->feed(0) in a testprogram and it did not crash, on
my large project I got the following:
```
Fatal error
at /home/peter/hack/newdeal/build/pike.sol2.5.1/build/../pike/src/modules/P
arser/html.c:1332
internal error: tail not found in feed (put_out_feed_range)
Attempting to dump backlog (may fail).
Parser.HTML: feed(0)
server/server.pike:116: read_configs()
```
It happens with my source xml file and there is no newline in the
last line of source.Pike 7.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1027Stdio.FILE.ungets has stopped working (?) as well as read/gets pairing2009-04-16T14:11:39ZPeter BortasStdio.FILE.ungets has stopped working (?) as well as read/gets pairingImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1027
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
From: Robert.Budzynski@fuw.edu.pl (Robert J. Budzynski)
To: pike@roxen.com
Subject: is Stdio.FILE.u...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1027
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
From: Robert.Budzynski@fuw.edu.pl (Robert J. Budzynski)
To: pike@roxen.com
Subject: is Stdio.FILE.ungets() broken?
Date: 15 Jan 2001 00:14:26 +0100
rjb@buddy:~/src/Pike/7.1$ pike
Pike v7.1 release 33 running Hilfe v2.0 (Incremental Pike Frontend)
> object f=Stdio.FILE("README");
Result: Stdio.FILE("README", 0, 777 /* fd=10 */)
> string s=f->gets();
Result: "Pike by Fredrik H\374binette 1994-2001"
> f->ungets(s);
Result: 0
> f->gets();
Result: 0
> f->tell();
Result: 1
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1017make full_export: Subtract on different types.2009-04-16T14:11:39ZPeter Bortasmake full_export: Subtract on different types.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1017
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
make full_export gives:
```
Creating tag v7_1_34 in the background.
vpath = Pike-v7.1.34 pwd...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1017
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
make full_export gives:
```
Creating tag v7_1_34 in the background.
vpath = Pike-v7.1.34 pwd = /home/distmaker/Distmaker/2.2/build
Subtract on different types.
Unknown program: `-(0,({"CVS","RCS",".cvsignore"}))
pike-cvs/bin/export.pike:26: get_files("Pike-v7.1.34/src")
pike-cvs/bin/export.pike:201:
main(2,({"/home/distmaker/Distmaker/2.2/build/pike-cvs/bin/export.pike"}))
make[2]: *** [full_export] Error 10
make[2]: Leaving directory
`/home/distmaker/Distmaker/2.2/build/pike.srcbuild'
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1003Line-number information is wrong in error-messages from Tools.AutoDoc.CExtrac...2009-04-16T14:11:39ZPeter BortasLine-number information is wrong in error-messages from Tools.AutoDoc.CExtractor.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1003
Reported by @grubba
```
$ make builtin_functions.xml
Extracting from "/home/grubba/src/Pike7.1/src/builtin_functions.c"...
parseError!
/home/grubba/src/Pike7.1/src/b...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1003
Reported by @grubba
```
$ make builtin_functions.xml
Extracting from "/home/grubba/src/Pike7.1/src/builtin_functions.c"...
parseError!
/home/grubba/src/Pike7.1/src/builtin_functions.c:1: Pike parser error:
expected ")", got "0"
```
The line number above ought to have been 85.Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/996Line numbers get wrong2020-02-29T18:04:27ZPeter BortasLine numbers get wrongImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=996
Reported by Martin Stjernholm <mast@roxen.com>
The backtrace produced by the following program complains on line 6, while
in reality the error gets thrown from line 9...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=996
Reported by Martin Stjernholm <mast@roxen.com>
The backtrace produced by the following program complains on line 6, while
in reality the error gets thrown from line 9. Altering the text in the
argument to either macro, e.g. by inserting a space, makes the backtrace
report the correct line.
```
#define ASSERT(foo) if (!(foo)) error ("Assertion failed: " # foo "\n")
```
int main()
{
if (0) {
ASSERT (0 == 1); // Line 6
}
else {
ASSERT (0 == 1); // Line 9
}
}Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/984Image.Color and Colors.parse_color parses HSV differently2009-04-16T14:11:39ZPeter BortasImage.Color and Colors.parse_color parses HSV differentlyImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=984
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
> Colors.parse_color("@128,50,50");
Result: ({ /* 3 elements */
49,
79,
...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=984
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
> Colors.parse_color("@128,50,50");
Result: ({ /* 3 elements */
49,
79,
253
})
> Image.Color("@128,50,50")->rgb();
Result: ({ /* 3 elements */
63,
127,
72
})
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/982Image.Color may dump core on "grey"-input2009-04-16T14:11:39ZPeter BortasImage.Color may dump core on "grey"-inputImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=982
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
Pike v7.1 release 21 running Hilfe v2.0 (Incremental Pike Frontend)
> Image.Color("grey00");
Result: "û"...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=982
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
Pike v7.1 release 21 running Hilfe v2.0 (Incremental Pike Frontend)
> Image.Color("grey00");
Result: "û"
> Image.Color("grey99");
/home/nilsson/Pike/7.1/src/pike_types.c:153: Fatal error:
Error in type string 32.
Attempting to dump backlog (may fail)...
Backtrace at time of fatal:
-:1: ___Foo4711()
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:103:
do_evaluate("mixed ___Foo4711() { return
(mixed)(Image.Color(\"grey99\"));
}\n",1)
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:603:
parse_statement("Image.Color(\"grey99\");")
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:381:
do_parse()
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:224:
add_buffer("Image.Color(\"grey99\");\n")
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:623:
add_input_line("Image.Color(\"grey99\");\n")
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:703:
create()
Hilfe: StdinHilfe()
Abort (core dumped)
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/973Query doesn't handle %d2009-04-16T14:11:39ZPeter BortasQuery doesn't handle %dImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=973
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
Pike v7.1 release 11 running Hilfe v2.0 (Incremental Pike Frontend)
> object db = Sql.sql("mysql://local...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=973
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
Pike v7.1 release 11 running Hilfe v2.0 (Incremental Pike Frontend)
> object db = Sql.sql("mysql://localhost/nilsson");
Result: object
> db->query("select * from test where foo='xo'");
Result: ({ /* 1 element */
([ /* 6 elements */
"bar":"48",
"foo":"xo",
"id":"1",
"test.bar":"48",
"test.foo":"xo",
"test.id":"1"
])
})
> db->query("select * from test where foo='%s'", "xo");
Result: ({ /* 1 element */
([ /* 6 elements */
"bar":"48",
"foo":"xo",
"id":"1",
"test.bar":"48",
"test.foo":"xo",
"test.id":"1"
])
})
> db->query("select * from test where bar=48");
Result: ({ /* 1 element */
([ /* 6 elements */
"bar":"48",
"foo":"xo",
"id":"1",
"test.bar":"48",
"test.foo":"xo",
"test.id":"1"
])
})
> db->query("select * from test where bar=%d", 48);
Sprintf: Wrong type for argument 2: expected integer, got string.
/i/pike/7.1.11/lib/modules/Sql.pmod/sql.pike:363: query("select * from test
where bar=%d")
-:1: ___Foo4711()
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/958found a file that causes segmentation fault in Image.load2009-04-16T14:11:39ZPeter Bortasfound a file that causes segmentation fault in Image.loadImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=958
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> Image.load("breaks_tifflib.jpg");
zsh: segmentation fault pike
```Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=958
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> Image.load("breaks_tifflib.jpg");
zsh: segmentation fault pike
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/955"checking if the JVM really works..." hangs2009-04-16T14:11:39ZPeter Bortas"checking if the JVM really works..." hangsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=955
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
The "checking if the JVM really works..." configure test hangs and never
finishes. ^C doesn't work - ^Z ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=955
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
The "checking if the JVM really works..." configure test hangs and never
finishes. ^C doesn't work - ^Z does.
configuring in Java
running /bin/sh
/export/scsi/home/home/mirar/pike/src/modules/Java/configure
--prefix=/home/mirar/pike-bin --with-double-precision --without-debug
--without-perl --cache-file=../.././config.cache
--srcdir=/export/scsi/home/home/mirar/pike/src/modules/Java
loading cache ../.././config.cache
checking for gcc... (cached)
/export/scsi/home/home/mirar/pike/elfwood/smartlink gcc
checking whether the C compiler
(/export/scsi/home/home/mirar/pike/elfwood/smartlink gcc -R/usr/local/lib
-L/usr/local/lib -R/usr/X11R6/lib -L/usr/X11R6/lib) works... (cached) yes
checking whether we are using GNU C... (cached) yes
checking whether /export/scsi/home/home/mirar/pike/elfwood/smartlink gcc
accepts -g... (cached) yes
checking if we are using TCC... (cached) no
checking for the Pike module base directory... found
checking which operating system we're using... linux
checking which architecture we're using...
/export/scsi/home/home/mirar/pike/src/modules/Java/configure:
/usr/bin/uname: No such file or directory
i386
checking what kind of threads to use... native_threads
checking for JAVA_HOME... /usr/local/jdk1.2.2/jre
checking for Java libraries...
/usr/local/jdk1.2.2/jre/lib/i386/native_threads
/usr/local/jdk1.2.2/jre/lib/i386/classic /usr/local/jdk1.2.2/jre/lib/i386
Adding /usr/local/jdk1.2.2/jre/lib/i386/native_threads
/usr/local/jdk1.2.2/jre/lib/i386/classic /usr/local/jdk1.2.2/jre/lib/i386
to the library search path.
checking for the Java include directory...
/usr/local/jdk1.2.2/jre/../include
Adding /usr/local/jdk1.2.2/jre/../include to the include search path.
Adding /usr/local/jdk1.2.2/jre/../include/linux to the include search path.
checking for JavaVM (MacOS X)... no
checking how to run the C preprocessor... (cached) gcc -E
checking for jni.h... yes
checking for winbase.h... (cached) no
checking for setjmp.h... (cached) yes
checking for sysOpen in -lhpi... yes
checking for JNI_CreateJavaVM in -ljvm... yes
checking for Java_java_lang_Class_isInstance in -ljava... yes
checking for Java_java_util_zip_Inflater_inflateBytes in -lzip... yes
checking for thr_create in -lthread... no
checking if the JVM really works...
[1]+ Stopped ../src/configure
--prefix=/home/mirar/pike-bin --with-double-precision --without-debug
```
[mirar@elfwood Java]$ grep '$Id' *
Makefile.in:# $Id: Makefile.in,v 1.4 1999/11/18 07:59:37 hubbe Exp $
acconfig.h: * $Id: acconfig.h,v 1.2 2000/10/20 00:14:10 marcus Exp $
config.h.in: * $Id: acconfig.h,v 1.2 2000/10/20 00:14:10 marcus Exp $
configure:# $Id: aclocal.m4,v 1.22 2000/08/21 13:04:13 grubba Exp $
jvm.c: * $Id: jvm.c,v 1.31 2000/12/05 21:08:28 per Exp $
jvm.c:RCSID("$Id: jvm.c,v 1.31 2000/12/05 21:08:28 per Exp $");
testsuite.in:// $Id: testsuite.in,v 1.3 2000/07/08 01:36:04 marcus Exp $
[mirar@elfwood Java]$ head /usr/local/jdk1.2.2/CHANGES
CHANGES
```
Java(TM) 2 SDK, Standard Edition
Java(TM) 2 Runtime Environment, Standard Edition,
v 1.2.2 for Linux
1/21/00
This file summarizes differences in the 1.2.2 Linux port
of the Java 2 SDK as compared with the original Java 2 SDK
[mirar@elfwood Java]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
[mirar@elfwood Java]$Pike 7.2Marcus ComstedtMarcus Comstedthttps://git.lysator.liu.se/pikelang/pike/-/issues/257GTK gives problems.2009-04-16T14:11:39ZPeter BortasGTK gives problems.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=257
Reported by Fred van Dijk <f.vandijk@scintilla.utwente.nl>
GTK gives some major problems in 7.0 lately. 7.0.55 works fine, 7.0.167 and
later doesn't.
System is RH 6....Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=257
Reported by Fred van Dijk <f.vandijk@scintilla.utwente.nl>
GTK gives some major problems in 7.0 lately. 7.0.55 works fine, 7.0.167 and
later doesn't.
System is RH 6.2 x86 with helix-gnome installed. Can anybody confirm this?
the log below shows up in the debug-logs when Roxen 2.1.105 starts. I
suspect helix-gnome though, I'll try to compile it on a 'clean' RH6.2.
```
---------------------------------------------------
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:145:Index
'Menu' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:153:Index
'Menu_bar' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:153:Index
'Menu_bar' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:154:Index
'AccelGroup' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:154:Index
'AccelGroup' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:157:Index
'RadioMenuItem' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:168:Index
'Menu_item' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:168:Index
'Menu_item' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:169:Index
'Menu' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:179:Index
'Item' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/MenuFactory.pmod:186:Index
'MenuItem' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod.MenuFactory.pmod:-:
Warning: Compilation failed:
Compilation failed.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Alert.pike:1:Index
'Dialog' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Alert.pike:1:Illegal
program pointer.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Alert.pike:10:Index
'Button' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Alert.pike:18:Index
'Label' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Alert.pike:20:Index
'JUSTIFY_LEFT' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Alert.pike:24:Index
'Button' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod.Alert.pike:-:
Warning: Compilation failed:
Compilation failed.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pDrawingArea.pike:1:Index
'DrawingArea' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pDrawingArea.pike:1:Illegal
program pointer.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pDrawingArea.pike:62:Must
return a value for a non-void function.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pDrawingArea.pike:68:Index
'flush' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod.pDrawingArea.pike:-:
Warning: Compilation failed:
Compilation failed.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/SClist.pike:1:Index
'ScrolledWindow' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/SClist.pike:1:Illegal
program pointer.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/SClist.pike:3:Index
'Clist' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/SClist.pike:7:Index
'Clist' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod.SClist.pike:-:
Warning: Compilation failed:
Compilation failed.
usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Util.pmod:28:Index
'Bitmap' not present in module 'GDK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Util.pmod:29:Index
'Pixmap' not present in module 'GDK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Util.pmod:39:Index
'Bitmap' not present in module 'GDK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Util.pmod:40:Index
'Pixmap' not present in module 'GDK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Util.pmod:105:Must
return a value for a non-void function.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Util.pmod:116:Class
definition failed.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/Util.pmod:151:Class
definition failed.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod.Util.pmod:-:
Warning: Compilation failed:
Compilation failed.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:1:Index
'Ctree' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:1:Illegal
program pointer.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:8:Index
'CTreeNode' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:15:Index
'CTreeNode' not present in module 'GTK'.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:22:Undefined
identifier ctree::collapse
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:27:Undefined
identifier ctree::collapse_recursive
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:32:Undefined
identifier ctree::collapse_to_depth
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:37:Undefined
identifier ctree::expand
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:42:Undefined
identifier ctree::expand_recursive
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:47:Undefined
identifier ctree::expand_to_depth
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:54:Undefined
identifier ctree::insert_node
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:314:Class
definition failed.
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod/pCtree.pike:320:Undefined
identifier ctree::node_nth
/usr/local/roxen21/pike/7.0.208/lib/modules/GTKSupport.pmod.pCtree.pike:-:
Warning: Compilation failed:
Compilation failed.
```Pike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/865Buffer malfunction in Stdio.FILE2009-04-16T14:11:39ZPeter BortasBuffer malfunction in Stdio.FILEImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=865
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
The following program trigs a bug in Stdio.FILE
```
int verify(string filename, int blocksi...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=865
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
The following program trigs a bug in Stdio.FILE
```
int verify(string filename, int blocksize, string data)
{
Stdio.File file = Stdio.FILE(filename, "r");
string block, verify = "";
while((block = file->read(blocksize)) != "")
verify += block;
return data == verify;
}
void main()
{
string data = (array(string))enumerate(10)*"\n"+"\n";
Stdio.File("data", "wct")->write(data);
for(int blocksize = 1; blocksize < 20; blocksize++)
write("Verify blocksize %d: %s\n", blocksize,
verify("data", blocksize, data) ? "ok" : "FAIL");
}
```
with the following output
Verify blocksize 1: FAIL
Verify blocksize 2: FAIL
Verify blocksize 3: ok
Verify blocksize 4: FAIL
Verify blocksize 5: FAIL
Verify blocksize 6: ok
Verify blocksize 7: ok
Verify blocksize 8: ok
Verify blocksize 9: ok
Verify blocksize 10: FAIL
Verify blocksize 11: ok
Verify blocksize 12: ok
Verify blocksize 13: ok
Verify blocksize 14: ok
Verify blocksize 15: ok
Verify blocksize 16: ok
Verify blocksize 17: ok
Verify blocksize 18: ok
Verify blocksize 19: okPike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/678sscanf problem2009-04-16T14:11:39ZPeter Bortassscanf problemImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=678
Reported by Thomas Bopp, Uni-GH Paderborn <astra@upb.de>
I cannot reproduce this bug in a simple case. sscanf is not
The code is:
```
private static array(object)
ge...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=678
Reported by Thomas Bopp, Uni-GH Paderborn <astra@upb.de>
I cannot reproduce this bug in a simple case. sscanf is not
The code is:
```
private static array(object)
get_sanction_new(string str, mapping vars)
{
array(object) sanctions = ({ });
string ustr;
object obj;
int oid;
if ( stringp(ustr=copy_value(vars["sanction_new_"+str])) ) {
int res;
LOG("Initial String is: " + ustr);
while ( (res = sscanf(ustr, "user_%d%s", oid, ustr)) > 0 ) {
LOG("Found " + oid + " new: " + ustr + " Result:"+res);
obj = find_object(oid);
if ( objectp(obj) )
sanctions += ({ obj });
}
LOG("Last Result was: " + res + " on " + ustr + " str="+str);
}
return sanctions;
}
and the output:
Initial String is: user_235user_239user_240
Found 235 new: user_239user_240 Result:2
Last Result was: 0 on user_239user_240 str=user
```
When I write a simple pike program with only a main function this
works fine. I also played around with a mapping, etc. The copy_value
was also just to check what happens. Also tried to have another
string in the sscanf, like sscanf(ustr...,s) and ustr = s; in the
body of the loop.
---Thomas
PS: Roxen seems to concat values of a variable if the same variable is
placed more often in the call (like test?type=1&type=2 id->vars["type"]
=="12"). Wouldnt it be better to have type = { "1","2" } ?
This happens when I have a <select multiple>Pike 7.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbström