pike issueshttps://git.lysator.liu.se/pikelang/pike/-/issues2009-04-16T14:11:39Zhttps://git.lysator.liu.se/pikelang/pike/-/issues/946stack_size macro conflicts with system defined macro on MacOSX.2009-04-16T14:11:39ZPeter Bortasstack_size macro conflicts with system defined macro on MacOSX.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=946
Reported by @grubba
```
Compiling /home/grubba/src/Pike7.1/src/interpret.c
/System/Library/Frameworks/System.framework/Headers/mach/shared_memory_server.h:45:
warning...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=946
Reported by @grubba
```
Compiling /home/grubba/src/Pike7.1/src/interpret.c
/System/Library/Frameworks/System.framework/Headers/mach/shared_memory_server.h:45:
warning: could not use precompiled header
'/System/Library/Frameworks/System.framework/Headers/mach/mach.p', because:
/System/Library/Frameworks/System.framework/Headers/mach/shared_memory_server.h:45:
warning: macro 'stack_size' defined by
/home/grubba/src/Pike7.1/src/interpret.h conflicts with precomp
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/944Broken sh-code in GTK module.2009-04-16T14:11:39ZPeter BortasBroken sh-code in GTK module.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=944
Reported by @grubba
```
Making GTK
make[4]: Entering directory
`/tmp/autobuild/pike7.1-20001219170839.tar/build/linux-2.4.0-0.8-ia64/post_modules/GTK'
/tmp/autobuild/...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=944
Reported by @grubba
```
Making GTK
make[4]: Entering directory
`/tmp/autobuild/pike7.1-20001219170839.tar/build/linux-2.4.0-0.8-ia64/post_modules/GTK'
/tmp/autobuild/pike7.1-20001219170839.tar/build/linux-2.4.0-0.8-ia64/pike
-DNOT_INSTALLED
-m/tmp/autobuild/pike7.1-20001219170839.tar/build/linux-2.4.0-0.8-ia64/master.pike
/tmp/autobuild/pike7.1-20001219170839.tar/src/post_modules/GTK/new_build_pgtk.pike
--source='/tmp/autobuild/pike7.1-20001219170839.tar/src/post_modules/GTK/source/'\
/tmp/autobuild/pike7.1-20001219170839.tar/src/post_modules/GTK/output/few.pike
Parsing input files... 7.4s
Checking inherits ...
Outputting result files...
Creating GTK/pgtk_1.c
Creating GTK/pgtk_2.c
Creating GTK/pgtk_3.c
Creating GTK/pgtk_4.c
Creating GTK/pgtk_5.c
Creating GTK/prototypes.h
Creating GTK/time_stamp
Creating GTK/pgtk.c
Total time spent... 12.0s
/bin/sh: -c: line 1: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 2: syntax error: unexpected end of file
make[4]: *** [compile1] Error 2
make[4]: Leaving directory
`/tmp/autobuild/pike7.1-20001219170839.tar/build/linux-2.4.0-0.8-ia64/post_modules/GTK'
make[3]: *** [GTK] Error 1
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/933cc/AIX 5L/IA64 doesn't like pike_search_engine.c lines 71 & 1642009-04-16T14:11:39ZPeter Bortascc/AIX 5L/IA64 doesn't like pike_search_engine.c lines 71 & 164Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=933
Reported by @grubba
WARNING: Compiler failure! Trying without optimization!
echo /home/grubba/src/Pike7.1/build/aix-0-ia64/smartlink cc -I.
-I/home/grubba/src/Pike7.1...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=933
Reported by @grubba
WARNING: Compiler failure! Trying without optimization!
echo /home/grubba/src/Pike7.1/build/aix-0-ia64/smartlink cc -I.
-I/home/grubba/src/Pike7.1/src -I/usr/local/include -I/usr/X11R6/include
-I/home/grubba/src/Pike7.1/src -I/home/grubba/src/Pike7.1/build/aix-0-ia64
-q64 -I/usr/local/include -I/usr/X11R6/include
-I/home/grubba/src/Pike7.1/src
-I/home/grubba/src/Pike7.1/build/aix-0-ia64 -c
/home/grubba/src/Pike7.1/src/pike_search.c -o pike_search.o
"/home/grubba/src/Pike7.1/src/pike_search_engine2.c", line 154.5: 1506-068
(W) Operation between types "unsigned char*" and "signed char*" is not
allowed.
"/home/grubba/src/Pike7.1/src/pike_search_engine.c", line 71.3: 1506-025
(S) Operand must be a modifiable lvalue.
"/home/grubba/src/Pike7.1/src/pike_search_engine.c", line 164.3: 1506-025
(S) Operand must be a modifiable lvalue.
"/home/grubba/src/Pike7.1/src/pike_search_engine2.c", line 154.5: 1506-068
(W) Operation between types "unsigned char*" and "signed char*" is not
allowed.
"/home/grubba/src/Pike7.1/src/pike_search_engine.c", line 71.3: 1506-025
(S) Operand must be a modifiable lvalue.
"/home/grubba/src/Pike7.1/src/pike_search_engine.c", line 164.3: 1506-025
(S) Operand must be a modifiable lvalue.
"/home/grubba/src/Pike7.1/src/pike_search_engine2.c", line 154.5: 1506-068
(W) Operation between types "unsigned char*" and "signed char*" is not
allowed.
"/home/grubba/src/Pike7.1/src/pike_search_engine.c", line 71.3: 1506-025
(S) Operand must be a modifiable lvalue.
"/home/grubba/src/Pike7.1/src/pike_search_engine.c", line 164.3: 1506-025
(S) Operand must be a modifiable lvalue.
"/home/grubba/src/Pike7.1/src/pike_search.c", line 171.25: 1506-280 (W)
Function argument assignment between types "unsigned char*" and "signed
char*" is not allowed.
"/home/grubba/src/Pike7.1/src/pike_search.c", line 172.46: 1506-280 (W)
Function argument assignment between types "unsigned char*" and "signed
char*" is not allowed.
"/home/grubba/src/Pike7.1/src/pike_search.c", line 172.30: 1506-068 (W)
Operation between types "signed char*" and "unsigned char*" is not allowed.
make: The error code from the last command is 1.
Looks like it doesn't like NEEDLE as an lvalue.Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/932PiGTK broken in latest CVS2009-04-16T14:11:39ZPeter BortasPiGTK broken in latest CVSImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=932
Reported by David Hedbor, Idonex / Real Networks <david@hedbor.org>
PiGTK no longer works. First of all it can't find the sources since the
name of the build script h...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=932
Reported by David Hedbor, Idonex / Real Networks <david@hedbor.org>
PiGTK no longer works. First of all it can't find the sources since the
name of the build script has changed. The second issue is that it doesn't
find GTK at all:
checking for GTK - version >= 1.3.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
checking for gtk2-config... (cached) no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
checking for gtk2-config... (cached) no
checking for GTK - version >= 1.1.13... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
```
: 0 neotron@tezcatlipoca gtk-config --version
1.2.8
```
As you can see, it's looking for gtk2-config which I don't have installed.Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/927src/modules/Java/configure.in doesn't work with new autoconf2009-04-16T14:11:39ZPeter Bortassrc/modules/Java/configure.in doesn't work with new autoconfImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=927
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
Running autoheader in ./modules/Java
/usr/local/bin/autoheader: unexpected EOF while looking for `''...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=927
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
Running autoheader in ./modules/Java
/usr/local/bin/autoheader: unexpected EOF while looking for `''
/usr/local/bin/autoheader: /tmp/ah17363/traces.sh: line 4: syntax error
Running autoconf in ./modules/Java
configure.in:81: /usr/bin/m4: Bad regular expression `[\([`""]\)]': Unmatched ) or \)
[configure.in:81[: error: [[[back quotes and double quotes should not be escaped in: [[$as_me:__oline__: checking for JAVA_HOME]]]]]]
][
][
][
][
][
[snip]
][
]configure.in:81: /usr/bin/m4: ERROR: Recursion limit of 250 exceeded, use -L<N> to change it
```
tsunami% autoconf -V
autoconf (GNU autoconf) 2.49bPike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/916Thread.Fifo()->read_array() does not work2009-04-16T14:11:39ZPeter BortasThread.Fifo()->read_array() does not workImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=916
Reported by @marcus
```
Pike v7.1 release 17 running Hilfe v2.0 (Incremental Pike Frontend)
> object f = Thread.Fifo();
Result: Thread.Fifo(0 / 128)
> f->write(17);
R...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=916
Reported by @marcus
```
Pike v7.1 release 17 running Hilfe v2.0 (Incremental Pike Frontend)
> object f = Thread.Fifo();
Result: Thread.Fifo(0 / 128)
> f->write(17);
Result: 0
> f->write(42);
Result: 0
> f->read_array();
Bad argument 1 to sizeof().
/i/pike/7.1.17/lib/modules/Thread.pmod:135:
Thread.Fifo(2 / 128)->read_array()
-:1: ___Foo4711()
>
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/904stealth_check_mapping_for_destruct can fail in the gc2009-04-16T14:11:39ZPeter Bortasstealth_check_mapping_for_destruct can fail in the gcImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=904
Reported by Martin Stjernholm <mast@roxen.com>
The following program causes a fatal in the gc.
```
int main()
{
object o = class {}();
mapping m = ([o: ({17})]);...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=904
Reported by Martin Stjernholm <mast@roxen.com>
The following program causes a fatal in the gc.
```
int main()
{
object o = class {}();
mapping m = ([o: ({17})]);
destruct (o);
gc();
}
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/902spider.XML dumps core2009-04-16T14:11:39ZPeter Bortasspider.XML dumps coreImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=902
Reported by @marcus
The follwing program
```
class P
{
static private inherit spider.XML;
void f()
{
parse(Stdio.read_file("/home/marcus/hack/xml/foo.xml"...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=902
Reported by @marcus
The follwing program
```
class P
{
static private inherit spider.XML;
void f()
{
parse(Stdio.read_file("/home/marcus/hack/xml/foo.xml"),
lambda(mixed ... args) {});
}
}
int main()
{
P()->f();
}
```
produces a core dump. If the "private" modifier is removed, the program
works.Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/885Streaming Gz module gives incorrect results2009-04-16T14:11:39ZPeter BortasStreaming Gz module gives incorrect resultsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=885
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
The following code trigs a bug:
string data0 = ...; // 66560 characters.
string data1 ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=885
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
The following code trigs a bug:
string data0 = ...; // 66560 characters.
string data1 = ...; // 66560 characters.
```
function gzd = Gz.deflate()->deflate;
function gzi = Gz.inflate()->inflate;
int main()
{
string packed = "";
packed += gzd(data0, Gz.NO_FLUSH);
packed += gzd(data1, Gz.NO_FLUSH);
packed += gzd("", Gz.FINISH);
return !(data0 + data1 == gzi(packed));
}
```
The complete source code is available at:
Pike/7.1/src/modules/Gz/flushtest.pikePike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/881_Image_TTF small buglet (7.0 from CVS and 7.1)2009-04-16T14:11:39ZPeter Bortas_Image_TTF small buglet (7.0 from CVS and 7.1)Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=881
Reported by Marek Habersack, Vip-Net s.c. <grendel@vip.net.pl>
The compound if statement starting at line 838 in
src/modules/_Image_TTF/image_ttf.c has an erroneous o...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=881
Reported by Marek Habersack, Vip-Net s.c. <grendel@vip.net.pl>
The compound if statement starting at line 838 in
src/modules/_Image_TTF/image_ttf.c has an erroneous operator - the 'else
if' code won't ever be executed (it should say != 0 instead of == 0). The
same buglet exists in Pike 7.1.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/864mysql-glue is 3.23.x compatible but not with older versions2009-04-16T14:11:39ZPeter Bortasmysql-glue is 3.23.x compatible but not with older versionsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=864
Reported by Sten Eriksson, UDAC AB <sten.eriksson@its.uu.se>
```
From the CVS-browser:
---
revision 1.37
date: 2000/08/13 14:55:14; author: grubba; state: Exp; lin...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=864
Reported by Sten Eriksson, UDAC AB <sten.eriksson@its.uu.se>
```
From the CVS-browser:
---
revision 1.37
date: 2000/08/13 14:55:14; author: grubba; state: Exp; lines: +4 -4
```
Compatibility with 3.23.x.
```
- err = (mysql_field_count(socket) && mysql_error(socket)[0]);
+ err = (mysql_num_fields(socket) && mysql_error(socket)[0]);
---
This breaks with older versions of mysql:
---
$ mysql --version
mysql Ver 9.15 Distrib 3.21.30, for pc-linux-gnu (i586)
$ pike
Pike v7.1 release 13 running Hilfe v2.0 (Incremental Pike Frontend)
> indices(Mysql);
load_module("/usr/local/pike/7.1.13/lib/modules/Mysql.so") failed:
/usr/local/pike/7.1.13/lib/modules/Mysql.so: undefined symbol:
mysql_field_count
/usr/local/pike/7.1.13/lib/master.pike:386:
master()->low_findprog("/usr/local/pike/7.1.13/lib/modules/Mysql",".so",0)
/usr/local/pike/7.1.13/lib/master.pike:411:
master()->findprog("/usr/local/pike/7.1.13/lib/modules/Mysql","",0)
/usr/local/pike/7.1.13/lib/master.pike:583:
master()->low_cast_to_object("/usr/local/pike/7.1.13/lib/modules/Mysql","/.")
/usr/local/pike/7.1.13/lib/master.pike:853:
master()->findmodule("/usr/local/pike/7.1.13/lib/modules/Mysql")
/usr/local/pike/7.1.13/lib/master.pike:961:
master()->resolv_base("Mysql","-")
/usr/local/pike/7.1.13/lib/master.pike:1003: master()->resolv("Mysql","-")
/usr/local/pike/7.1.13/lib/modules/Tools.pmod/Hilfe.pmod:76:
eval("mixed ___Foo4711() { return (mixed)(indices(Mysql)); }\n")
/usr/local/pike/7.1.13/lib/modules/Tools.pmod/Hilfe.pmod:101:
do_evaluate("mixed ___Foo4711() { return (mixed)(indices(Mysql));
}\n",1)
/usr/local/pike/7.1.13/lib/modules/Tools.pmod/Hilfe.pmod:592:
parse_statement("indices(Mysql);")
/usr/local/pike/7.1.13/lib/modules/Tools.pmod/Hilfe.pmod:373: do_parse()
/usr/local/pike/7.1.13/lib/modules/Tools.pmod/Hilfe.pmod:227:
add_buffer("indices(Mysql);\n")
/usr/local/pike/7.1.13/lib/modules/Tools.pmod/Hilfe.pmod:612:
add_input_line("indices(Mysql);\n")
/usr/local/pike/7.1.13/lib/modules/Tools.pmod/Hilfe.pmod:692: create()
Hilfe: StdinHilfe()
-:1:Bad argument 1 to indices(). Expected
string|array|mapping|multiset|object|program|function
---
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/849configure adds warning flags not supported by all versions of gcc when $CC=gcc2009-04-16T14:11:39ZPeter Bortasconfigure adds warning flags not supported by all versions of gcc when $CC=gccImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=849
Reported by @marcus
If configure detects that the C compiler used is gcc, it will add a number
of warning flags. Amongst these are -Wno-long-long and -Wmultichar, wh...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=849
Reported by @marcus
If configure detects that the C compiler used is gcc, it will add a number
of warning flags. Amongst these are -Wno-long-long and -Wmultichar, which
are not supported by gcc 2.7.2.1. configure should test the individual
flags to see which ones are really supported.Pike 7.2Marcus ComstedtMarcus Comstedthttps://git.lysator.liu.se/pikelang/pike/-/issues/844throw in ADT.Table.table triggers error in handle_error2009-04-16T14:11:39ZPeter Bortasthrow in ADT.Table.table triggers error in handle_errorImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=844
Reported by Johan H Sundström, IDA <jhs@pike.ida.liu.se>
(Somewhat silly) test case:
> pike -e 'ADT.Table.table(({({"foo"})}), ({0}));'
Error in handle_error in mast...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=844
Reported by Johan H Sundström, IDA <jhs@pike.ida.liu.se>
(Somewhat silly) test case:
> pike -e 'ADT.Table.table(({({"foo"})}), ({0}));'
Error in handle_error in master object:
object
Original error:
({ /* 2 elements */
"(Table) Field name not string\n",
({ /* 4 elements */
({ /* 5 elements */
"/i/pike/7.1.11/lib/master.pike",
1265,
_main,
({ /* 3 elements */
"pike",
"-e",
"ADT.Table.table(({({\"foo\"})}), ({0}));"
}),
({ /* 32 elements */
"[lots of env vars]"
})
}),
({ /* 3 elements */
"-",
1,
create
}),
({ /* 3 elements */
0,
0,
table
}),
({ /* 6 elements */
"/i/pike/7.1.11/lib/modules/ADT.pmod/Table.pmod",
289,
create,
({ /* 1 element */
({ /* 1 element */
"foo"
})
}),
({ /* 1 element */
0
}),
0
})
})
})Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/838Parser.HTML()->parse_tag_args failed to parse />2009-04-16T14:11:39ZPeter BortasParser.HTML()->parse_tag_args failed to parse />Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=838
Reported by Thomas Bopp, Uni-GH Paderborn <astra@upb.de>
tags like <td width="100"/> are resolved to:
([ width:"100/", ])Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=838
Reported by Thomas Bopp, Uni-GH Paderborn <astra@upb.de>
tags like <td width="100"/> are resolved to:
([ width:"100/", ])Pike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/837Parser.HTML crashes2009-04-16T14:11:39ZPeter BortasParser.HTML crashesImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=837
Reported by Thomas Bopp, Uni-GH Paderborn <astra@upb.de>
When trying to parse my little html file the parser
crashes. The content of the file (index.html) seems
to ca...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=837
Reported by Thomas Bopp, Uni-GH Paderborn <astra@upb.de>
When trying to parse my little html file the parser
crashes. The content of the file (index.html) seems
to cause the problem.
I am attaching the filesPike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/834Looks for mysql.sock only in /tmp2009-04-16T14:11:39ZPeter BortasLooks for mysql.sock only in /tmpImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=834
Reported by Thomas Svenson, Idonex AB / Sales Engineer <thomass@roxen.com>
At least the RPM installations of MySQL places mysql.sock in
/var/lib/mysql. Pike looks onl...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=834
Reported by Thomas Svenson, Idonex AB / Sales Engineer <thomass@roxen.com>
At least the RPM installations of MySQL places mysql.sock in
/var/lib/mysql. Pike looks only in /tmp for it. Only solution is to create
a symlink in /tmp to make mysql work with Roxen.
A check for mysql.sock should also be done in /var/lib/mysql.Pike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/832(mapping)({ ({1,2,3}), ({1,2,3}) }) crashes pike; (mapping)({}) gives type error2009-04-16T14:11:39ZPeter Bortas(mapping)({ ({1,2,3}), ({1,2,3}) }) crashes pike; (mapping)({}) gives type errorImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=832
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> (mapping)({ ({1,2,3}) });
/users/mirar/pike/src/opcodes.c:639: Fatal error:
Internal error: o_cast...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=832
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> (mapping)({ ({1,2,3}) });
/users/mirar/pike/src/opcodes.c:639: Fatal error:
Internal error: o_cast() left droppings on stack.
Attempting to dump backlog (may fail)...
Backtrace at time of fatal:
Optimizer:0: ___Foo4711()
/usr/local/pike/7.1.11/lib/modules/Tools.pmod/Hilfe.pmod:76: eval()
/usr/local/pike/7.1.11/lib/modules/Tools.pmod/Hilfe.pmod:101:
do_evaluate("mixed ___Foo4711() { return (mixed)((mapping)({ ({1,2,3})
}))
;
}\n",1)
/usr/local/pike/7.1.11/lib/modules/Tools.pmod/Hilfe.pmod:585:
parse_statement("(mapping)({ ({1,2,3})
});")
/usr/local/pike/7.1.11/lib/modules/Tools.pmod/Hilfe.pmod:366: do_parse()
/usr/local/pike/7.1.11/lib/modules/Tools.pmod/Hilfe.pmod:225:
add_buffer("(mapping)({ ({1,2,3})
});\n")
/usr/local/pike/7.1.11/lib/modules/Tools.pmod/Hilfe.pmod:605:
add_input_line("(mapping)({ ({1,2,3})
});\n")
/usr/local/pike/7.1.11/lib/modules/Tools.pmod/Hilfe.pmod:685: create()
Hilfe: StdinHilfe()
zsh: abort pike
```
If possible, fix (mapping)({}) at the same time:
```
> array z=({});
Result: ({ })
> (mapping)z;
Bad argument 1 to mkmapping(). Expected array(mixed)
Unknown program: mkmapping("\373","\1\373\373")
-:1: ___Foo4711()
> (mapping)({});
-:1:Bad argument 1 to mkmapping(). Expected array(mixed)
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/831a failing read(4) crashes pike2009-04-16T14:11:39ZPeter Bortasa failing read(4) crashes pikeImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=831
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
After some research, this is the workaround patch (committed):
```
--- file.c 2000/10/08 19:11:03 ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=831
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
After some research, this is the workaround patch (committed):
```
--- file.c 2000/10/08 19:11:03 1.201
+++ file.c 2000/11/29 11:38:29
@@ -376,7 +376,14 @@
{
struct pike_string *str;
- str=begin_shared_string(r);
+
+/* WORKAROUND! FIXME! FIXME!
+ short string threshold is 16
+ /Mirar */
+
+ if (r>16)
+ str=begin_shared_string(r);
+ else
+ str=begin_shared_string(17);
SET_ONERROR(ebuf, call_free, str);
```
since begin_shared_string returns something that can't be freed if the
string is less then SHORT_STRING_THRESHOLD, 16.
/MirarPike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/828<emit source="sql"> behaves weird or crashes Roxen with Oracle DB2009-04-16T14:11:39ZPeter Bortas<emit source="sql"> behaves weird or crashes Roxen with Oracle DBImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=828
Reported by Peter J. Holzer, WSR <hjp@wsr.ac.at>
System:
Redhat Linux 6.0
Oracle 8.1.6
Roxen 2.1.166 (binary dist)
<emit source="sql"> sometimes mixes up the columns...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=828
Reported by Peter J. Holzer, WSR <hjp@wsr.ac.at>
System:
Redhat Linux 6.0
Oracle 8.1.6
Roxen 2.1.166 (binary dist)
<emit source="sql"> sometimes mixes up the columns (e.g., with
query="select * from user_tables" &_.TABLE_NAME contains the name
of the values of the TABLESPACE_NAME column.
For some other queries Roxen crashes with a segmentation fault: For
example, in table pages with
Name Null? Type
-------------------------- -------- --------------
PAGE_ID NOT NULL NUMBER(10)
URL NOT NULL VARCHAR2(500)
and some other columns,
```
<emit source="sql" host="enkur2" query="select page_id from pages where
page_id < 40" >
&_.PAGE_ID;
</emit>
```
gives the expected result, while "select page_id, url ..." causes a
segfault (No core file, unfortunately, but I should be able to get a
backtrace with gdb.Pike 7.0