pike issueshttps://git.lysator.liu.se/pikelang/pike/-/issues2009-04-16T14:11:39Zhttps://git.lysator.liu.se/pikelang/pike/-/issues/1437MIME.pmod problems with parsing '\\'2009-04-16T14:11:39ZPeter BortasMIME.pmod problems with parsing '\\'Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1437
Reported by Peter Lundqvist, n/a <peterl@update.uu.se>
The MIME module seems to have problems with parsing '\\' chars.
This is a problem as win-browsers tend to send...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1437
Reported by Peter Lundqvist, n/a <peterl@update.uu.se>
The MIME module seems to have problems with parsing '\\' chars.
This is a problem as win-browsers tend to send filenames as
"N:\\fjuk\\moeg\\junk.txt".
This simple pike-script illustrates the problem:
```
--[fnyk.pike]------------------------------------------
#! /usr/local/bin/pike
void main() {
object msg = MIME.Message(
"MIME-Version: 1.0\r\nContent-type: "
"multipart/form-data;boundary=---------"
"------------------10338236936774\r\n\r\n" +
#"-----------------------------10338236936774
Content-Disposition: form-data; name=\"op\"
ul
-----------------------------10338236936774
Content-Disposition: form-data; name=\"foofile\";
filename=\"N:\\Program\\Fnyk\\index.txt\"
Content-Type: text/plain
```
Det var en kyckling som hette gullefjunk...
-----------------------------10338236936774
Content-Disposition: form-data; name=\"fjuk\"
Upload
-----------------------------10338236936774--
```
-----------------------------10338236936774--");
int parts=sizeof( msg->body_parts );
for( int i=0; i<parts; i++ ) {
object o = msg->body_parts[i];
if( !zero_type( o->disp_params["filename"] ) )
write( o->get_filename()+"\n" );
}
}
```
--[EOF: fnyk.pike]-------------------------------------
```
# ./fnyk.pike
N:ProgramFnykindex.txt
#
```Pike 7.0Marcus ComstedtMarcus Comstedthttps://git.lysator.liu.se/pikelang/pike/-/issues/1426Calling of this_program in __INIT causes C stack overflow.2009-04-16T14:11:39ZPeter BortasCalling of this_program in __INIT causes C stack overflow.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1426
Reported by @grubba
```
From: Alexander Demenshin <aldem-pike@aldem.net>
To: pike-bugs@roxen.com
Date: Tue, 27 Mar 2001 13:29:36 +0200
Subject: Another problem (stac...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1426
Reported by @grubba
```
From: Alexander Demenshin <aldem-pike@aldem.net>
To: pike-bugs@roxen.com
Date: Tue, 27 Mar 2001 13:29:36 +0200
Subject: Another problem (stack overflow etc.: pike -e 'mixed p =
this_program();')
```
Hello,
So, subject says it all :) Problem also exists (though messages are
different) when I try to run:
```
#! /usr/local/bin/pike
mixed p = this_program();
```
int main(int argc, array(string) argv)
{
}
If call to this_program() is from inside of any function everything
is OK, if outside - "C stack overflow".
/AlPike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1425modules\files\efuns.c(505) : error C2065: 's' : undeclared identifier2009-04-16T14:11:39ZPeter Bortasmodules\files\efuns.c(505) : error C2065: 's' : undeclared identifierImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1425
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
```
Compiling
/home/distmaker/Distmaker/2.2/build/pike.nt4sp6/pike/src/modules/files/file.c
Co...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1425
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
```
Compiling
/home/distmaker/Distmaker/2.2/build/pike.nt4sp6/pike/src/modules/files/file.c
Compiling
/home/distmaker/Distmaker/2.2/build/pike.nt4sp6/pike/src/modules/files/efuns.c
\distmaker\Distmaker\2.2\build\pike.nt4sp6\pike\src\modules\files\efuns.c(505)
: error C2065: 's' : undeclared identifier
\distmaker\Distmaker\2.2\build\pike.nt4sp6\pike\src\modules\files\efuns.c(512)
: warning C4047: 'function' : 'const char *' differs in levels of
indirection from 'int '
\distmaker\Distmaker\2.2\build\pike.nt4sp6\pike\src\modules\files\efuns.c(512)
: warning C4024: 'unlink' : different types for formal and actual parameter
1
CL returned error code 2.
WARNING: Compiler failure! Trying without optimization!
echo /home/distmaker/Distmaker/2.2/build/pike.nt4sp6/build/smartlink rntcl
-I.
-I/home/distmaker/Distmaker/2.2/build/pike.nt4sp6/pike/src/modules/files
-I/home/distmaker/Distmaker/2.2/build/pike.nt4sp6/pike/src/modules/files/../..
-I../.. -I. -Dpike_module_init=pike_module_files_init
-Dpike_module_exit=pike_module_files_exit
-I/home/distmaker/Distmaker/2.2/build/pike.nt4sp6/pike/src
-I/home/distmaker/Distmaker/2.2/build/pike.nt4sp6/build -g
-I/home/distmaker/Distmaker/2.2/build/pike.nt4sp6/pike/src
-I/home/distmaker/Distmaker/2.2/build/pike.nt4sp6/build -c
/home/distmaker/Distmaker/2.2/build/pike.nt4sp6/pike/src/modules/files/efuns.c
-o efuns.o
\distmaker\Distmaker\2.2\build\pike.nt4sp6\pike\src\modules\files\efuns.c(505)
: error C2065: 's' : undeclared identifier
\distmaker\Distmaker\2.2\build\pike.nt4sp6\pike\src\modules\files\efuns.c(512)
: warning C4047: 'function' : 'const char *' differs in levels of
indirection from 'int '
\distmaker\Distmaker\2.2\build\pike.nt4sp6\pike\src\modules\files\efuns.c(512)
: warning C4024: 'unlink' : different types for formal and actual parameter
1
CL returned error code 2.
make[3]: *** [efuns.o] Error 2
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1410HSV mode layers do not combine correctly2009-04-16T14:11:39ZPeter BortasHSV mode layers do not combine correctlyImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1410
Reported by @zino
Several layer modes missbehaves. Attaching several example GIFs with
desired look to the left and how Pike handles them to the right.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1410
Reported by @zino
Several layer modes missbehaves. Attaching several example GIFs with
desired look to the left and how Pike handles them to the right.Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1408Forgotten constant definition leads to fatal2009-04-16T14:11:39ZPeter BortasForgotten constant definition leads to fatalImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1408
Reported by Martin Stjernholm <mast@roxen.com>
Tried to compile a module in which I've forgotten to define a constant:
```
Rx.pmod/FSA.pmod:213:'VARIABLE_TESTS' und...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1408
Reported by Martin Stjernholm <mast@roxen.com>
Tried to compile a module in which I've forgotten to define a constant:
```
Rx.pmod/FSA.pmod:213:'VARIABLE_TESTS' undefined.
Rx.pmod/FSA.pmod:1078:Class definition failed.
/home/mast/Pike/devel/src/interpret.c:1314: Fatal error:
Wrong number of arguments or locals in function def.
```
Gdb backtrace below. When I add the constant VARIABLE_TESTS everything
works. Trivial minimized test case didn't show this, but I can try harder
to make one if necessary.
```
(gdb) bt
#0 0x400b2921 in kill () from /lib/libc.so.6
#1 0x4005bef9 in pthread_kill () from /lib/libpthread.so.0
#2 0x4005c375 in raise () from /lib/libpthread.so.0
#3 0x400b3c61 in abort () from /lib/libc.so.6
#4 0x80b4889 in debug_fatal () at /home/mast/Pike/devel/src/error.c:534
#5 0x807ed09 in mega_apply (type=APPLY_LOW, args=168, arg1=0x82cd4a4,
arg2=0x1)
at /home/mast/Pike/devel/src/interpret.c:1314
#6 0x807feaa in apply_lfun (o=0x82cd4a4, fun=1, args=0)
at /home/mast/Pike/devel/src/interpret.c:1594
#7 0x80df971 in call_pike_initializers (o=0x82cd4a4, args=0)
at /home/mast/Pike/devel/src/object.c:255
#8 0x8107134 in compile (prog=0x8353248, handler=0x0, major=-1, minor=-1,
target=0x8346ff0,
placeholder=0x82cd4a4) at /home/mast/Pike/devel/src/program.c:3981
#9 0x813bd07 in f_compile (args=6) at
/home/mast/Pike/devel/src/builtin_functions.c:3282
#10 0x807e2a2 in mega_apply (type=APPLY_SVALUE, args=6, arg1=0x8323120,
arg2=0x0)
at /home/mast/Pike/devel/src/interpret.c:994
#11 0x807d150 in eval_instruction_without_debug (pc=0x83200b6
"\"\001\001]\0176hG")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#12 0x807ed5c in mega_apply (type=APPLY_LOW, args=4, arg1=0x82cd944,
arg2=0xe)
at /home/mast/Pike/devel/src/interpret.c:797
#13 0x807d150 in eval_instruction_without_debug (pc=0x832030d
"i\004}d\nyU")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#14 0x807f2dc in o_catch (pc=0x83202f3 "G\0066I\004\003y\020")
at /home/mast/Pike/devel/src/interpret.c:797
#15 0x8079d81 in eval_instruction_without_debug (pc=0x83202ef "!")
at /home/mast/Pike/devel/src/interpret_functions.h:904
#16 0x807ed5c in mega_apply (type=APPLY_LOW, args=4, arg1=0x82cd944,
arg2=0x1d)
at /home/mast/Pike/devel/src/interpret.c:797
#17 0x807d150 in eval_instruction_without_debug (pc=0x83203d8 "'G")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#18 0x807ed5c in mega_apply (type=APPLY_LOW, args=4, arg1=0x82cd944,
arg2=0x1e)
at /home/mast/Pike/devel/src/interpret.c:797
#19 0x807d150 in eval_instruction_without_debug (pc=0x8320447
"\"S\aH\001\022\017")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#20 0x807ed5c in mega_apply (type=APPLY_LOW, args=4, arg1=0x82cd944,
arg2=0x1f)
at /home/mast/Pike/devel/src/interpret.c:797
#21 0x807d150 in eval_instruction_without_debug (pc=0x83205c0 "d\002z\005")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#22 0x807ed5c in mega_apply (type=APPLY_LOW, args=2, arg1=0x82cd944,
arg2=0x28)
at /home/mast/Pike/devel/src/interpret.c:797
#23 0x807d150 in eval_instruction_without_debug (pc=0x8320657 "d\001y\r")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#24 0x807ed5c in mega_apply (type=APPLY_STACK, args=1, arg1=0x0, arg2=0x0)
at /home/mast/Pike/devel/src/interpret.c:797
#25 0x807d150 in eval_instruction_without_debug (pc=0x82ef5b5
"d\002\022\021")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#26 0x807ed5c in mega_apply (type=APPLY_LOW, args=1, arg1=0x82cd544,
arg2=0x7)
at /home/mast/Pike/devel/src/interpret.c:797
#27 0x807d150 in eval_instruction_without_debug (pc=0x82ef601 "e\"\002")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#28 0x807ed5c in mega_apply (type=APPLY_LOW, args=1, arg1=0x82cd544,
arg2=0x8)
at /home/mast/Pike/devel/src/interpret.c:797
#29 0x807feaa in apply_lfun (o=0x82cd544, fun=20, args=1)
at /home/mast/Pike/devel/src/interpret.c:1594
#30 0x80e1ba9 in object_index_no_free (to=0xbfffc0e4, o=0x82cd544,
index=0x401a9388)
at /home/mast/Pike/devel/src/object.c:907
#31 0x80e3b64 in index_no_free (to=0xbfffc0e4, what=0x401a9380,
ind=0x401a9388)
at /home/mast/Pike/devel/src/opcodes.c:74
#32 0x80e3c7b in o_index () at /home/mast/Pike/devel/src/opcodes.c:129
#33 0x80fd257 in f_index (args=2) at
/home/mast/Pike/devel/src/operators.c:3107
#34 0x8100111 in index_modules (ident=0x830dde4,
module_index_cache=0x832d17c, num_used_modules=2,
modules=0x832d520) at /home/mast/Pike/devel/src/program.c:729
#35 0x81004d4 in find_module_identifier (ident=0x830dde4, see_inherit=1)
at /home/mast/Pike/devel/src/program.c:763
#36 0x80622f9 in yyparse () at language.yacc:3045
#37 0x8106cb8 in compile (prog=0x834f228, handler=0x0, major=-1, minor=-1,
target=0x832b580,
placeholder=0x0) at /home/mast/Pike/devel/src/program.c:3881
#38 0x813bd07 in f_compile (args=6) at
/home/mast/Pike/devel/src/builtin_functions.c:3282
#39 0x807e2a2 in mega_apply (type=APPLY_SVALUE, args=6, arg1=0x8323120,
arg2=0x0)
at /home/mast/Pike/devel/src/interpret.c:994
#40 0x807d150 in eval_instruction_without_debug (pc=0x83200b6
"\"\001\001]\0176hG")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#41 0x807ed5c in mega_apply (type=APPLY_LOW, args=4, arg1=0x82cd944,
arg2=0xe)
at /home/mast/Pike/devel/src/interpret.c:797
#42 0x807d150 in eval_instruction_without_debug (pc=0x832030d
"i\004}d\nyU")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#43 0x807f2dc in o_catch (pc=0x83202f3 "G\0066I\004\003y\020")
at /home/mast/Pike/devel/src/interpret.c:797
#44 0x8079d81 in eval_instruction_without_debug (pc=0x83202ef "!")
at /home/mast/Pike/devel/src/interpret_functions.h:904
#45 0x807ed5c in mega_apply (type=APPLY_LOW, args=4, arg1=0x82cd944,
arg2=0x1d)
at /home/mast/Pike/devel/src/interpret.c:797
#46 0x807d150 in eval_instruction_without_debug (pc=0x83203e2 "'G")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#47 0x807ed5c in mega_apply (type=APPLY_LOW, args=4, arg1=0x82cd944,
arg2=0x1e)
at /home/mast/Pike/devel/src/interpret.c:797
#48 0x807d150 in eval_instruction_without_debug (pc=0x8320447
"\"S\aH\001\022\017")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#49 0x807ed5c in mega_apply (type=APPLY_LOW, args=4, arg1=0x82cd944,
arg2=0x1f)
at /home/mast/Pike/devel/src/interpret.c:797
#50 0x807d150 in eval_instruction_without_debug (pc=0x832049b
"\"\004\0012\f")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#51 0x807ed5c in mega_apply (type=APPLY_STACK, args=3, arg1=0x0, arg2=0x0)
at /home/mast/Pike/devel/src/interpret.c:797
#52 0x807d150 in eval_instruction_without_debug (pc=0x82ef5d1
"d\002'5\"\002\001p\230\003")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#53 0x807ed5c in mega_apply (type=APPLY_LOW, args=1, arg1=0x82cd584,
arg2=0x7)
at /home/mast/Pike/devel/src/interpret.c:797
#54 0x807d150 in eval_instruction_without_debug (pc=0x82ef601 "e\"\002")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#55 0x807ed5c in mega_apply (type=APPLY_LOW, args=1, arg1=0x82cd584,
arg2=0x8)
at /home/mast/Pike/devel/src/interpret.c:797
#56 0x807feaa in apply_lfun (o=0x82cd584, fun=20, args=1)
at /home/mast/Pike/devel/src/interpret.c:1594
#57 0x80e1ba9 in object_index_no_free (to=0xbfffda64, o=0x82cd584,
index=0x401a91e0)
at /home/mast/Pike/devel/src/object.c:907
#58 0x80e3b64 in index_no_free (to=0xbfffda64, what=0x401a91d8,
ind=0x401a91e0)
at /home/mast/Pike/devel/src/opcodes.c:74
#59 0x80e3c7b in o_index () at /home/mast/Pike/devel/src/opcodes.c:129
#60 0x80fd257 in f_index (args=2) at
/home/mast/Pike/devel/src/operators.c:3107
#61 0x81204cf in index_node (n=0x82f12c0, node_name=0x830ed48 "Rx",
id=0x830ed34)
at /home/mast/Pike/devel/src/las.c:1738
#62 0x8061d7b in yyparse () at language.yacc:2954
#63 0x8106cb8 in compile (prog=0x82ff5b0, handler=0x0, major=-1, minor=-1,
target=0x82e3be8,
placeholder=0x0) at /home/mast/Pike/devel/src/program.c:3881
#64 0x813bd07 in f_compile (args=6) at
/home/mast/Pike/devel/src/builtin_functions.c:3282
#65 0x807e2a2 in mega_apply (type=APPLY_SVALUE, args=6, arg1=0x8323120,
arg2=0x0)
at /home/mast/Pike/devel/src/interpret.c:994
#66 0x807d150 in eval_instruction_without_debug (pc=0x83200b6
"\"\001\001]\0176hG")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#67 0x807ed5c in mega_apply (type=APPLY_LOW, args=4, arg1=0x82cd944,
arg2=0xe)
at /home/mast/Pike/devel/src/interpret.c:797
#68 0x807d150 in eval_instruction_without_debug (pc=0x832030d
"i\004}d\nyU")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#69 0x807f2dc in o_catch (pc=0x83202f3 "G\0066I\004\003y\020")
at /home/mast/Pike/devel/src/interpret.c:797
#70 0x8079d81 in eval_instruction_without_debug (pc=0x83202ef "!")
at /home/mast/Pike/devel/src/interpret_functions.h:904
#71 0x807ed5c in mega_apply (type=APPLY_LOW, args=4, arg1=0x82cd944,
arg2=0x1d)
at /home/mast/Pike/devel/src/interpret.c:797
#72 0x807d150 in eval_instruction_without_debug (pc=0x83203c9 "\"M")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#73 0x807ed5c in mega_apply (type=APPLY_LOW, args=4, arg1=0x82cd944,
arg2=0x1e)
at /home/mast/Pike/devel/src/interpret.c:797
#74 0x807d150 in eval_instruction_without_debug (pc=0x8320447
"\"S\aH\001\022\017")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#75 0x807ed5c in mega_apply (type=APPLY_LOW, args=4, arg1=0x82cd944,
arg2=0x1f)
at /home/mast/Pike/devel/src/interpret.c:797
#76 0x807d150 in eval_instruction_without_debug (pc=0x832049b
"\"\004\0012\f")
at /home/mast/Pike/devel/src/interpret_functions.h:1569
#77 0x807ed5c in mega_apply (type=APPLY_LOW, args=3, arg1=0x82cd944,
arg2=0x20)
at /home/mast/Pike/devel/src/interpret.c:797
#78 0x80e49af in o_cast (type=0x82c5b1c, run_time_type=5) at
/home/mast/Pike/devel/src/opcodes.c:445
#79 0x80e6351 in f_cast () at /home/mast/Pike/devel/src/opcodes.c:651
#80 0x807c575 in eval_instruction_without_debug (pc=0x8320caf "i\f}d\ry'")
at /home/mast/Pike/devel/src/interpret_functions.h:1421
#81 0x807f2dc in o_catch (pc=0x8320ca8 "<@H\002 ") at
/home/mast/Pike/devel/src/interpret.c:797
#82 0x8079d81 in eval_instruction_without_debug (pc=0x8320ca4 "\016")
at /home/mast/Pike/devel/src/interpret_functions.h:904
#83 0x807ed5c in mega_apply (type=APPLY_LOW, args=2, arg1=0x82cd944,
arg2=0x4a)
at /home/mast/Pike/devel/src/interpret.c:797
#84 0x807ff10 in apply (o=0x82cd944, fun=0x81b7427 "_main", args=2)
at /home/mast/Pike/devel/src/interpret.c:1606
#85 0x80d71db in main (argc=3, argv=0xbffff764) at
/home/mast/Pike/devel/src/main.c:570
```Pike 7.4https://git.lysator.liu.se/pikelang/pike/-/issues/1407Image.image->copy() might be lacking some boundary checks2009-04-16T14:11:39ZPeter BortasImage.image->copy() might be lacking some boundary checksImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1407
Reported by @zino
This is a "remember to check this on a modern Pike later" ticket.
```
Pike v7.1 release 57 running Hilfe v2.0 (Incremental Pike Frontend)
> objec...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1407
Reported by @zino
This is a "remember to check this on a modern Pike later" ticket.
```
Pike v7.1 release 57 running Hilfe v2.0 (Incremental Pike Frontend)
> object i = Image.Image(20,20)->copy(50,50,100,100);
Result: Image.Image( 51 x 51 /* 7.6Kb */)
> object i = Image.PNG.decode(Stdio.read_bytes("scrn0123.map.png"));
Result: Image.Image( 186 x 188 /* 102.4Kb */)
> object o = i->copy( 611, 49, 796, 236 );
zsh: segmentation fault pike
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1373Casting efuns to object yields coredump.2009-04-16T14:11:39ZPeter BortasCasting efuns to object yields coredump.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1373
Reported by @grubba
```
From: Alexander Demenshin <aldem-pike@aldem.net>
To: pike-bugs@roxen.com
Date: Wed, 21 Mar 2001 01:47:18 +0100
Subject: Another one
```
Hell...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1373
Reported by @grubba
```
From: Alexander Demenshin <aldem-pike@aldem.net>
To: pike-bugs@roxen.com
Date: Wed, 21 Mar 2001 01:47:18 +0100
Subject: Another one
```
Hello again,
So there is another one:
```
aldem@fort:~/cvs$ pike
Pike v7.2 release 12 running Hilfe v2.0 (Incremental Pike Frontend)
> (object)time;
Segmentation fault
aldem@fort:~/cvs$
```
The same when I do pike -e '(string)(object)time;'
Not usual operation (casting to object), but I was reading
tutorial and decided to try :)
/AlPike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1370Bad autodoc dump error message2009-04-16T14:11:39ZPeter BortasBad autodoc dump error messageImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1370
Reported by Johan H Sundström, IDA <jhs@pike.ida.liu.se>
This broken markup:
/*! @decl int exece(string file, array(string) args,
*! mapping(string...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1370
Reported by Johan H Sundström, IDA <jhs@pike.ida.liu.se>
This broken markup:
/*! @decl int exece(string file, array(string) args,
*! mapping(string:string) env)
(a forgotten "@" at the end of the first line) ends up with this fairly
incomprehensible error message:
```
/i/pike/7.3.2/lib/modules/Tools.pmod/AutoDoc.pmod/PikeParser.pike:102:
parseError("Expected type, idents or literal constant")
/i/pike/7.3.2/lib/modules/Tools.pmod/AutoDoc.pmod/PikeParser.pike:428:
parseArgList(1)
/i/pike/7.3.2/lib/modules/Tools.pmod/AutoDoc.pmod/PikeParser.pike:567:
parseDecl(mapping[2])
/i/pike/7.3.2/lib/modules/Tools.pmod/AutoDoc.pmod/DocParser.pmod:706:
getMetaData()
/i/pike/7.3.2/lib/modules/Tools.pmod/AutoDoc.pmod/DocParser.pmod:837:
metadata()
/i/pike/7.3.2/lib/modules/Tools.pmod/AutoDoc.pmod/CExtractor.pmod:79:
parseObject()
/i/pike/7.3.2/lib/modules/Tools.pmod/AutoDoc.pmod/CExtractor.pmod:149:
parseClassBody(,,,0)
/i/pike/7.3.2/lib/modules/Tools.pmod/AutoDoc.pmod/CExtractor.pmod:174:
extract("/*\\\n||| This file a part of Pike, and is copyright by
Fredrik Hubinette\n||| Pike is distributed as GPL (General Public
License)\n||| See the files COPYING "+[29596],"../../.
./../../src/modules/files/efuns.c")
/home/jhs/Pike/7.3/bin/autodoc.pike:30:
main(2,({"/home/jhs/Pike/7.3/bin/autodoc.pike","../../../../../src/modules/files/efuns.c"}))
Lookup on non-string value.
/home/jhs/Pike/7.3/bin/autodoc.pike:11:
main(2,({"/home/jhs/Pike/7.3/bin/autodoc.pike","../../../../../src/modules/files/efuns.c"}))
```Pike 7.6https://git.lysator.liu.se/pikelang/pike/-/issues/1348Image.Colortable loses colors2009-04-16T14:11:39ZPeter BortasImage.Colortable loses colorsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1348
Reported by Henrik Wallin, Roxen <hedda@roxen.com>
The order of elements in an array of colors to Image.Colortable() is
important somehow.
/home/hedda/colortablebug...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1348
Reported by Henrik Wallin, Roxen <hedda@roxen.com>
The order of elements in an array of colors to Image.Colortable() is
important somehow.
/home/hedda/colortablebugg.pike @ Idonex is an exemple program that read
the file k.png and generates one correct file 'rätt.gif' and one errorous
file 'fel.gif'. The only difference is the order of the elements in the
array.Pike 7.4https://git.lysator.liu.se/pikelang/pike/-/issues/1336Segfault in Image.PNM.decode2009-04-16T14:11:39ZPeter BortasSegfault in Image.PNM.decodeImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1336
Reference: http://mc.pp.se/hus.ppm
Reported by @marcus
This PPM picture makes PNM.decode dump core. xv can display it.
```
Pike v7.2 release 10 running Hilfe v2.0...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1336
Reference: http://mc.pp.se/hus.ppm
Reported by @marcus
This PPM picture makes PNM.decode dump core. xv can display it.
```
Pike v7.2 release 10 running Hilfe v2.0 (Incremental Pike Frontend)
> Image.PNM.decode(Stdio.read_file("/home/marcus/mc.pp.se/hus.ppm"));
Segmentation fault (core dumped)
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1330Oracle.pmod should not be dumped2009-04-16T14:11:39ZPeter BortasOracle.pmod should not be dumpedImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1330
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Oracle.pmod should not be dumped. It depends on external factors such
as ORACLE_HOME and LD_LI...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1330
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Oracle.pmod should not be dumped. It depends on external factors such
as ORACLE_HOME and LD_LIBRARY_PATH.
If Oracle.pmod is dumped when these external factors are unavailable,
it is a extremely tricky for our customers/consultants to figure out
that they're supposed to remove the file Oracle.pmod.o to get things
working at all.Pike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/1320RegGetKeyNames[RegOpenKeyEx]: Unknown error 0x0002 (2)2009-04-16T14:11:39ZPeter BortasRegGetKeyNames[RegOpenKeyEx]: Unknown error 0x0002 (2)Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1320
Reported by @grubba
The DNS module fails with:
```
Roxen base directory : D:/Program Files (x86)/Roxen Internet
Software/WebServer/server
Roxen log directory : D:/...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1320
Reported by @grubba
The DNS module fails with:
```
Roxen base directory : D:/Program Files (x86)/Roxen Internet
Software/WebServer/server
Roxen log directory : D:/Program Files (x86)/Roxen Internet
Software/WebServer/logs
Roxen shutdown file : D:/Program Files (x86)/Roxen Internet
Software/WebServer/logs/bbiiierv.run
Roxen arguments : None
This version of Roxen has crypto algorithms available.
16:14:43 : ----------------------------------------------------------
0m 0.0s : Pike v7.2 release 10, Roxen WebServer 2.1.231
: Loading pike modules ... Done [27180.0ms]
: Loading roxen ... ERROR
: RegGetKeyNames[RegOpenKeyEx]: Unknown error 0x0002 (2)
:
D:\Pike\native/pike/7.2.10/lib/modules/Protocols.pmod/DNS.pmod:428:
Stdio.UDP()->get_tcpip_param("Domain","")
16:15:46 :
D:\Pike\native/pike/7.2.10/lib/modules/Protocols.pmod/DNS.pmod:492:
Stdio.UDP()->create(0,0)
1m 3.5s :
D:\Pike\native/pike/7.2.10/lib/modules/Protocols.pmod/DNS.pmod:963:
Stdio.UDP()->create(0,0)
: -: async_client()
: /Program Files (x86)/Roxen Internet
Software/WebServer/server/base_s
erver/hosts.pike:24: roxen->__INIT()
: /Program Files (x86)/Roxen Internet
Software/WebServer/server/base_s
erver/roxen.pike:3860: roxen->__INIT()
: D:/Program Files (x86)/Roxen Internet
Software/WebServer/server/base
_server/roxenloader.pike:843: really_load_roxen()
16:15:46 : D:/Program Files (x86)/Roxen Internet
Software/WebServer/server/base
_server/roxenloader.pike:895: load_roxen()
1m 3.5s : D:/Program Files (x86)/Roxen Internet
Software/WebServer/server/base
_server/roxenloader.pike:1476: do_main(1,0)
: D:/Program Files (x86)/Roxen Internet
Software/WebServer/server/base
_server/roxenloader.pike:1206: do_main_wrapper(1,({"D:/Program Files
(x86)/Roxen
Internet Software/WebServer/server/base_server/roxenloader.pike"}))
: Roxen loader failed:
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1317Array.uniq doesn't call `==2009-04-16T14:11:39ZPeter BortasArray.uniq doesn't call `==Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1317
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
> class A (int x) { int `== (mixed with) { return 1; } }
> A(1) == A(2);
Result: 1
> Array.uniq( ({ A(1...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1317
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
> class A (int x) { int `== (mixed with) { return 1; } }
> A(1) == A(2);
Result: 1
> Array.uniq( ({ A(1), A(2) }) );
Result: ({ /* 2 elements */
object,
object
})
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1309Protocols.SMTP.simple_mail() doesn't quote message body2009-04-16T14:11:39ZPeter BortasProtocols.SMTP.simple_mail() doesn't quote message bodyImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1309
Reported by Jonas Wallden <jonasw@roxen.com>
Sending the body ".\n..\n..." gave an empty mail, while sending the
message ". (one)\n.. (two)\n... (three)" produced "....Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1309
Reported by Jonas Wallden <jonasw@roxen.com>
Sending the body ".\n..\n..." gave an empty mail, while sending the
message ". (one)\n.. (two)\n... (three)" produced ". (one)\n. (two)\n..
(three)".Pike 7.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1304Parser.HTML.quote_tags can dump core2009-04-16T14:11:39ZPeter BortasParser.HTML.quote_tags can dump coreImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1304
Reported by Martin Stjernholm <mast@roxen.com>
```
> Parser.HTML()->add_quote_tag("<!--","","")->quote_tags();
Fatal error at /home/mast/Pike/7.0/src/stralloc.c:1368...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1304
Reported by Martin Stjernholm <mast@roxen.com>
```
> Parser.HTML()->add_quote_tag("<!--","","")->quote_tags();
Fatal error at /home/mast/Pike/7.0/src/stralloc.c:1368
string_slice, start = 0, len = -1, s->len = 1
Attempting to dump backlog (may fail).
Parser.HTML: quote_tags()
-:1: ___Foo4711()
/home/mast/Pike/7.0/lib/modules/Tools.pmod/Hilfe.pmod:91:
do_evaluate("mixed ___Foo4711() { return
(mixed)(Parser.HTML()->add_quote_tag(\"<!--\",\"\",\"\")->quote_tags());
}\n",1)
/home/mast/Pike/7.0/lib/modules/Tools.pmod/Hilfe.pmod:567:
parse_statement("Parser.HTML()->add_quote_tag(\"<!--\",\"\",\"\")->quote_tags();")
/home/mast/Pike/7.0/lib/modules/Tools.pmod/Hilfe.pmod:354: do_parse()
/home/mast/Pike/7.0/lib/modules/Tools.pmod/Hilfe.pmod:213:
add_buffer("Parser.HTML()->add_quote_tag(\"<!--\",\"\",\"\")->quote_tags();\n")
/home/mast/Pike/7.0/lib/modules/Tools.pmod/Hilfe.pmod:587:
add_input_line("Parser.HTML()->add_quote_tag(\"<!--\",\"\",\"\")->quote_tags();\n")
/home/mast/Pike/7.0/lib/modules/Tools.pmod/Hilfe.pmod:667: create()
Hilfe: StdinHilfe()
Abort (core dumped)
```Pike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/1291Error in Parser.HTML comment handling2009-04-16T14:11:39ZPeter BortasError in Parser.HTML comment handlingImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1291
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
Pike v7.2 release 8 running Hilfe v2.0 (Incremental Pike Frontend)
> object x=Parser.HTML()->add_tag("a...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1291
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
Pike v7.2 release 8 running Hilfe v2.0 (Incremental Pike Frontend)
> object x=Parser.HTML()->add_tag("a","b");
Result: object
> x->finish("<!-- <a/> --><a/>")->read();
Result: "<!-- <a/> -->b"
> x->finish("<!-- ' <a/> --><a/>")->read();
Result: "<!-- ' <a/> --><a/>"
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1290String.Buffer broken2009-04-16T14:11:39ZPeter BortasString.Buffer brokenImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1290
Reported by Jonas Wallden <jonasw@roxen.com>
The buffer gets corrupted, apparently shifted four bytes, since both the
start and end is incorrect:
```
Pike v7.2 re...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1290
Reported by Jonas Wallden <jonasw@roxen.com>
The buffer gets corrupted, apparently shifted four bytes, since both the
start and end is incorrect:
```
Pike v7.2 release 12 running Hilfe v2.0 (Incremental Pike Frontend)
> object b = String.Buffer();
Result: Buffer(0 /* 0 */)
> b->add("1234567890");
Result: 34
> for (int i = 0; i < 5; i++) b->add("abcdefg");
Ok.
> b->get();
Result: "\234\214$\b1234567890abcdefgabcdefgabcdefgabcdefgabc"
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1262Compilation of Image/encodings/bmp.c with ecl crashes Windows XP Beta 1 (Buil...2009-04-16T14:11:39ZPeter BortasCompilation of Image/encodings/bmp.c with ecl crashes Windows XP Beta 1 (Build 2296)/IA64Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1262
Reported by @grubba
Compiling
/home/build/autobuild/win64_build/pike7.3-20010228160515.tar/src/modules/Image/encodings/bmp.c
Terminated
WARNING: Compiler failure! Tr...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1262
Reported by @grubba
Compiling
/home/build/autobuild/win64_build/pike7.3-20010228160515.tar/src/modules/Image/encodings/bmp.c
Terminated
WARNING: Compiler failure! Trying without optimization!
echo
/home/build/autobuild/win64_build/pike7.3-20010228160515.tar/build/windows_nt-ia64/smartlink
rntecl -I.
-I/home/build/autobuild/win64_build/pike7.3-20010228160515.tar/src/modules/Image/encodings
-I/home/build/autobuild/win64_build/pike7.3-20010228160515.tar/src/modules/Image/encodings/../../..
-I/home/build/autobuild/win64_build/pike7.3-20010228160515.tar/src/modules/Image/encodings/..
-I../../.. -I.. -I. -I/usr/local/include
-I/home/build/autobuild/win64_build/pike7.3-20010228160515.tar/src
-I/home/build/autobuild/win64_build/pike7.3-20010228160515.tar/build/windows_nt-ia64
-I/usr/local/include
-I/home/build/autobuild/win64_build/pike7.3-20010228160515.tar/src
-I/home/build/autobuild/win64_build/pike7.3-20010228160515.tar/build/windows_nt-ia64
-W3 -c
/home/build/autobuild/win64_build/pike7.3-20010228160515.tar/src/modules/Image/encodings/bmp.c
-o bmp.o
Failed to connect to 194.52.182.153:4711 Connection timed out.
The failures are due to the machine running sprshd crashing.
Will try installing a more recent version of Windows XP.Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1250found image that crashes in Image.load, in tifflib2009-04-16T14:11:39ZPeter Bortasfound image that crashes in Image.load, in tifflibImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1250
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> hexdump( (#string "nemisis.jpg")[..1000] );
49 49 2a 00 08 00 00 00 18 00 fe 00 04 00 01 00 I...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1250
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> hexdump( (#string "nemisis.jpg")[..1000] );
49 49 2a 00 08 00 00 00 18 00 fe 00 04 00 01 00 II*. .... ..þ. ....
00 00 00 00 00 00 00 01 04 00 01 00 00 00 0c 01 .... .... .... ....
00 00 01 01 04 00 01 00 00 00 54 01 00 00 02 01 .... .... ..T. ....
03 00 03 00 00 00 2e 01 00 00 03 01 04 00 01 00 .... .... .... ....
00 00 06 00 00 00 06 01 03 00 01 00 00 00 06 00 .... .... .... ....
00 00 15 01 03 00 01 00 00 00 03 00 00 00 1a 01 .... .... .... ....
05 00 01 00 00 00 4c 01 00 00 1b 01 05 00 01 00 .... ..L. .... ....
00 00 54 01 00 00 1c 01 03 00 01 00 00 00 01 00 ..T. .... .... ....
00 00 28 01 03 00 01 00 00 00 02 00 00 00 42 01 ..(. .... .... ..B.
> Image.load("nemisis.jpg");
zsh: segmentation fault pike
(gdb) bt
#0 0x4047c371 in putcontig8bitYCbCr11tile () from /usr/lib/libtiff.so.3
#1 0x40477f54 in gtTileContig () from /usr/lib/libtiff.so.3
#2 0x40477c69 in TIFFRGBAImageGet () from /usr/lib/libtiff.so.3
#3 0x40477cfd in TIFFReadRGBAImage () from /usr/lib/libtiff.so.3
#4 0x4044dd15 in low_image_tiff_decode ()
at /users/mirar/pike/src/modules/_Image_TIFF/image_tiff.c:219
#5 0x4044e136 in image_tiff__decode (args=1)
at /users/mirar/pike/src/modules/_Image_TIFF/image_tiff.c:669
#6 0x80807d1 in mega_apply (type=APPLY_STACK, args=1, arg1=0x0, arg2=0x0)
at /users/mirar/pike/src/interpret.c:1225
```
not when you call tifflib directly, though:
```
> Image.TIFF.decode(#string "nemisis.jpg");
Failed to 'open' tiff image.
/usr/local/pike/7.3.2/lib/modules/_Image_TIFF.so:
decode("II*\0\b\0\0\ [...]")
-:1: ___Foo4711()
```Pike 7.4https://git.lysator.liu.se/pikelang/pike/-/issues/1246ctime/hilfe type error2009-04-16T14:11:39ZPeter Bortasctime/hilfe type errorImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1246
Reported by Johan Schön <js@roxen.com>
```
Pike v7.3 release 2 running Hilfe v2.0 (Incremental Pike Frontend)
> ctime(983202590);
-:1:Bad argument 1 to ctime.
-:1:Ex...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1246
Reported by Johan Schön <js@roxen.com>
```
Pike v7.3 release 2 running Hilfe v2.0 (Incremental Pike Frontend)
> ctime(983202590);
-:1:Bad argument 1 to ctime.
-:1:Expected: function(int(-536870912..536870911) : string)
-:1:Got : function(int(983202590..983202590) : void | mixed)
> ctime((int)983202590);
Result: "Mon Feb 26 16:49:50 2001\n"
```Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbström