pike issueshttps://git.lysator.liu.se/pikelang/pike/-/issues2009-04-16T14:11:39Zhttps://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ömhttps://git.lysator.liu.se/pikelang/pike/-/issues/642HTTPLoop/requestobject.c:861: too few arguments to function `__sendfile64'2009-04-16T14:11:39ZPeter BortasHTTPLoop/requestobject.c:861: too few arguments to function `__sendfile64'Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=642
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Compile error on HPUX-11 (Hopper):
```
echo /home/distmaker/Distmaker/2.1/build/pike.hpux11/bu...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=642
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Compile error on HPUX-11 (Hopper):
```
echo /home/distmaker/Distmaker/2.1/build/pike.hpux11/build/smartlink gcc
-I.
-I/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src/modules/HTTPLoop
-I/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src/modules/HTTPLoop/../..
-I../.. -I. -I/usr/local/include
-I/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src
-I/home/distmaker/Distmaker/2.1/build/pike.hpux11/build -DDYNAMIC_MODULE
-I/usr/local/include
-I/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src
-I/home/distmaker/Distmaker/2.1/build/pike.hpux11/build -W -Wall
-Wpointer-arith -Wno-unused -fPIC -c
/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src/modules/HTTPLoop/requestobject.c
-o requestobject.o
/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src/modules/HTTPLoop/requestobject.c:
In function `actually_send':
/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src/modules/HTTPLoop/requestobject.c:861:
warning: passing arg 3 of `__sendfile64' makes integer from pointer without
a cast
/home/distmaker/Distmaker/2.1/build/pike.hpux11/pike/src/modules/HTTPLoop/requestobject.c:861:
too few arguments to function `__sendfile64'
make[2]: *** [requestobject.o] Error 1
```Pike 7.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/29Full gnome support for pigtk2009-04-16T14:11:39ZPeter BortasFull gnome support for pigtkImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=29
Reported by @grubba
```
From: Alan Knowles <alan_k@hklc.com>
To: pike@idonex.se
Date: Wed, 16 Aug 2000 21:32:53 +0800
Subject: build_pgtk.pike diff
```
attached is a ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=29
Reported by @grubba
```
From: Alan Knowles <alan_k@hklc.com>
To: pike@idonex.se
Date: Wed, 16 Aug 2000 21:32:53 +0800
Subject: build_pgtk.pike diff
```
attached is a 'cvs diff' output for build_pgtk.pike that should enable all
gnome functions to work.
diff'ed against Pike/7.1
regards
alan
--
Technical Director
Linux Center (HK) Ltd.
www.hklc.com
```
Index: build_pgtk.pike
===================================================================
RCS file: /cvs/Pike/7.1/src/post_modules/GTK/build_pgtk.pike,v
retrieving revision 1.32
diff -r1.32 build_pgtk.pike
1288c1288,1296
< type_switch += "#ifdef GTK_TYPE_"+flop+"\n"
---
> if (search(upper_case(w), "GNOME") > -1) {
> // comes in as GNOME_XXX_XXX
> // should be GNOME_TYPE_XXX_XXX
> string flop = replace(upper_case(w),"GNOME_", "GNOME_TYPE_");
> type_switch += "#ifdef "+flop+"\n"
> " if(PGTK_CHECK_TYPE(widget, "+flop+")) "
> "return pgtk_"+w+"_program;\n#endif\n";
> } else {
> type_switch += "#ifdef GTK_TYPE_"+flop+"\n"
1290a1299
> }
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/3The image module is compiled with -fpic when it should be compiled with -fPIC...2024-02-17T17:35:37ZPeter BortasThe image module is compiled with -fpic when it should be compiled with -fPIC on Linux RH 6.2/sparc.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3
Reported by @grubba
```
From: Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
Date: Fri, 7 Jul 2000 16:46:15 +0200 (CEST)
Subject: problems for compiling pikev7.0.36 on s...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3
Reported by @grubba
```
From: Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
Date: Fri, 7 Jul 2000 16:46:15 +0200 (CEST)
Subject: problems for compiling pikev7.0.36 on sparc linux redhat 6.2
```
Hello
I'm trying to compile pike v7.0.36 on my sparc linux 6.2 and i got the
following message
```
make[3]: Leaving directory
`/home/glopglop/Pike-v7.0.36/src/modules/Image/encodings'
linking Image
encodings/encodings.a(png.o): In function `img_png_decode':
/home/glopglop/Pike-v7.0.36/src/modules/Image/encodings/png.c:1380:
relocation
truncated to fit: R_SPARC_GOT13 LLC50
encodings/encodings.a(png.o): In function `image_png_encode':
/home/glopglop/Pike-v7.0.36/src/modules/Image/encodings/png.c:1432:
relocation
truncated to fit: R_SPARC_GOT13 LLC51
/home/glopglop/Pike-v7.0.36/src/modules/Image/encodings/png.c:1437:
relocation
truncated to fit: R_SPARC_GOT13 LLC52
/home/glopglop/Pike-v7.0.36/src/modules/Image/encodings/png.c:1440:
relocation
truncated to fit: R_SPARC_GOT13 LLC53
/home/glopglop/Pike-v7.0.36/src/modules/Image/encodings/png.c:1445:
relocation
truncated to fit: R_SPARC_GOT13 LLC54
/home/glopglop/Pike-v7.0.36/src/modules/Image/encodings/png.c:1454:
relocation
truncated to fit: R_SPARC_GOT13 LLC55
/home/glopglop/Pike-v7.0.36/src/modules/Image/encodings/png.c:1460:
relocation
truncated to fit: R_SPARC_GOT13 LLC56
[.....]
lots of similar messages
[...]
/home/glopglop/Pike-v7.0.36/src/modules/Image/encodings/tim.c:339:
relocation
truncated to fit: R_SPARC_GOT13 LLC28
/home/glopglop/Pike-v7.0.36/src/modules/Image/encodings/tim.c:339:
relocation
truncated to fit: R_SPARC_GOT13 image_tim_f_decode_header
collect2: ld returned 1 exit status
Linking failed:
/home/glopglop/Pike-v7.0.36/bin/smartlink
/home/glopglop/Pike-v7.0.36/src/smartlink gcc -shared -o module.so
image_module.o image.o font.o matrix.o blit.o pattern.o dct.o operator.o
colortable.o polyfill.o orient.o colors.o search.o layers.o default_font.o
poly.o encodings/encodings.a -R/usr/local/lib -L/usr/local/lib
-R/usr/X11R6/lib -L/usr/X11R6/lib
/usr/lib/gcc-lib/sparc-redhat-linux/egcs-2.91.66/libgcc.a -lc
/usr/lib/gcc-lib/sparc-redhat-linux/egcs-2.91.66/libgcc.a
cp: module.so: Aucun fichier ou répertoire de ce type
make[2]: *** [dummy] Error 1
make[2]: Leaving directory `/home/glopglop/Pike-v7.0.36/src/modules/Image'
make[1]: *** [Image] Error 1
make[1]: Leaving directory `/home/glopglop/Pike-v7.0.36/src/modules'
make: *** [module_objects] Error 1
```
The compiler i use is egcs 1.1.2
Has someone succeed in compiling this version of pike in a sparc
platform with redhat 6.2
Thanks in advance
--
Eric Doutreleau
I.N.T | Tel : +33 (0) 160764687
9 rue Charles Fourier | Fax : +33 (0) 160764321
91011 Evry France | email : Eric.Doutreleau@int-evry.frPike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/953bad implemented list_fields() for postgress and msql2009-04-16T14:11:39ZPeter Bortasbad implemented list_fields() for postgress and msqlImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=953
Reported by Jordi Murgó, The Apostols Unix Cult <jordi@lleida.com>
while in Sql.pmod/sql.pike you declare list_fields as follows:
```
array(mapping(string:mixed)) li...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=953
Reported by Jordi Murgó, The Apostols Unix Cult <jordi@lleida.com>
while in Sql.pmod/sql.pike you declare list_fields as follows:
```
array(mapping(string:mixed)) list_fields(string table, string|void wild)
{
array(mapping(string:mixed))|object res;
if (functionp(master_sql->list_fields)) {
if (objectp(res = master_sql->list_fields(table))) {
res = res_obj_to_array(res);
}
....
```
on postgres.pike and msql.pike the same funcion are declared as:
mapping(string:array(mixed)) list_fields (string table, void|string wild)
I think it should be rewriten and declared:
array(mapping(string:mixed)) list_fields (string table)
(wild is not really needed)Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://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/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.0