pike issueshttps://git.lysator.liu.se/pikelang/pike/-/issues2015-03-02T12:04:54Zhttps://git.lysator.liu.se/pikelang/pike/-/issues/1769Unknown attribute 'relexpires' in postgres.pike (PostgreSQL v7.x)2015-03-02T12:04:54ZPeter BortasUnknown attribute 'relexpires' in postgres.pike (PostgreSQL v7.x)Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1769
Reported by Karl Stevens, Maxim Internet Services <karl@maxim.ca>
list_fields() in postgres.pike fails with "Error in frontend/backend
communications". This error i...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1769
Reported by Karl Stevens, Maxim Internet Services <karl@maxim.ca>
list_fields() in postgres.pike fails with "Error in frontend/backend
communications". This error is caused by the lookup of an attribute named
"relexpires" which does not exist (perhaps it got removed in v7?)
A dump of pg_class shows that it does not exist:
Table "pg_class"
Attribute | Type | Modifier
--------------+-----------+----------
relname | name |
reltype | oid |
relowner | integer |
relam | oid |
relpages | integer |
reltuples | integer |
rellongrelid | oid |
relhasindex | boolean |
relisshared | boolean |
relkind | char |
relnatts | smallint |
relchecks | smallint |
reltriggers | smallint |
relukeys | smallint |
relfkeys | smallint |
relrefs | smallint |
relhaspkey | boolean |
relhasrules | boolean |
relacl | aclitem[] |
Indices: pg_class_oid_index,
pg_class_relname_indexPike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1746Stdio.pmod/module.pmod:148:Too many arguments to set_nonblocking.2009-04-16T14:11:39ZPeter BortasStdio.pmod/module.pmod:148:Too many arguments to set_nonblocking.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1746
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Pike 7.0 fails to build:
```
make[5]: Leaving directory
`/home/distmaker/Distmaker/2.1/build/...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1746
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Pike 7.0 fails to build:
```
make[5]: Leaving directory
`/home/distmaker/Distmaker/2.1/build/pike.srcbuild'
/home/distmaker/Distmaker/2.1/build/pike.srcbuild/tpike -DNOT_INSTALLED
-m/home/distmaker/Distmaker/2.1/build/pike.srcbuild/master.pike
/home/distmaker/Distmaker/2.1/build/pike/bin/mktreeopt.pike
/home/distmaker/Distmaker/2.1/build/pike.srcbuild/../pike/src/treeopt.in
/home/distmaker/Distmaker/2.1/build/pike/lib/modules/Stdio.pmod/module.pmod:148:Too
many arguments to set_nonblocking.
/home/distmaker/Distmaker/2.1/build/pike/lib/modules/Stdio.pmod/module.pmod:148:Expected:
function(void | mixed, void | mixed, void | mixed : void)
/home/distmaker/Distmaker/2.1/build/pike/lib/modules/Stdio.pmod/module.pmod:148:Got
: function(zero, function(void | mixed : void), function(void | mixed :
void), function(void | mixed : void), zero : void | mixed)
```
It seems that this change made two days ago caused the bug:
```
148c148
< set_nonblocking(0, _async_connected, _async_failed);
---
> set_nonblocking(0, _async_connected, _async_failed, _async_failed,
0);
```Pike 7.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1744Problems with Protocols.HTTP and https requests.2009-04-16T14:11:39ZPeter BortasProblems with Protocols.HTTP and https requests.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1744
Reported by Marcus Wellhardh <wellhard@roxen.com>
I got the following backtrace when I tryed to make a https request to a
roxen 2.2 server. I could not reproduce the...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1744
Reported by Marcus Wellhardh <wellhard@roxen.com>
I got the following backtrace when I tryed to make a https request to a
roxen 2.2 server. I could not reproduce the error.
```
| Indexing the NULL value with "write".
| /home/wellhard/projects/pike-7.2/lib/modules/SSL.pmod/sslfile.pike:267:
write_blocking()
| /home/wellhard/projects/pike-7.2/lib/modules/SSL.pmod/sslfile.pike:237:
get_blocking_to_handshake_finsihed_state()
| /home/wellhard/projects/pike-7.2/lib/modules/SSL.pmod/sslfile.pike:492:
create(Stdio.File("socket", "194.52.182.158:7012", 777 /* fd=-1
*/),/home/wellhard/projects/pike-7.2/lib/modules/SSL.pmod/context.pike(),1,1)
|
/home/wellhard/projects/pike-7.2/lib/modules/Protocols.pmod/HTTP.pmod/Query.pike:254:
Query()->connect("194.52.182.158",7012,1)
|
/home/wellhard/projects/pike-7.2/lib/modules/Protocols.pmod/HTTP.pmod/Query.pike:579:
Query()->sync_request("194.52.182.158",7012,"GET
/_internal/g"+[24]+"d7hyzl9 HTTP/1.0","Connection: Keep"+[290]+" gzip,
deflate\r\n","")
|
/home/wellhard/projects/pike-7.2/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:121:
do_method("GET",URI("https://lime:7012/_internal/graphic_text!0/a6iz46g8$ad7hyzl9"),0,mapping[9],Query(),"")
| /home/wellhard/projects/roxen-bench/modules/replay.pike:156:
do_request(mapping[18],111,"2")
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1743keep-alive in Protocols.HTTP.Query does not work2009-04-16T14:11:39ZPeter Bortaskeep-alive in Protocols.HTTP.Query does not workImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1743
Reported by Marcus Wellhardh <wellhard@roxen.com>
The second do_method does not work in the following testcase:
```
void main()
{
Protocols.HTTP connection ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1743
Reported by Marcus Wellhardh <wellhard@roxen.com>
The second do_method does not work in the following testcase:
```
void main()
{
Protocols.HTTP connection =
Protocols.HTTP.do_method("GET", "http://www.roxen.com/");
werror("Connection: %O\n", connection);
connection =
Protocols.HTTP.do_method("GET", "http://www.roxen.com/company/",
0, 0, connection);
werror("Connection: %O\n", connection);
}
```
Output:
~/bug $ pike http-query.pike
Connection: Query(200 OK)
Connection: Query()
~/bug $Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1739compile_string not thread safe2009-04-16T14:11:39ZPeter Bortascompile_string not thread safeImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1739
Reported by Marcus Wellhardh <wellhard@roxen.com>
The following testcase gives some backtraces telling that 'foo' is
undefined even if a resolver is used when compil...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1739
Reported by Marcus Wellhardh <wellhard@roxen.com>
The following testcase gives some backtraces telling that 'foo' is
undefined even if a resolver is used when compiling the string. If
the mutex in the code is uncommented no backtrace is returned.
```
Thread.Mutex m = Thread.Mutex();
int threads = 0;
class Compile
{
void go(string txt)
{
threads++;
if (mixed err = catch {
for(int i; i < 1000; i++)
{
program res;
// Thread.MutexKey l = m->lock();
res = compile_string (
txt, 0,
class (object master) {
mixed resolv (string id, void|string file)
{
return "bar";
}
} (master()));
// l = 0;
}
})
werror (describe_backtrace (err));
if (!--threads) exit (0);
}
}
int main()
{
for(int t = 0; t < 10; t++)
{
Compile compile = Compile();
thread_create(compile->go, "string f1() { return foo; }");
}
return -17;
}
Output:
| -:1:'foo' undefined.
| Compilation failed.
| /home/wellhard/projects/pike-7.2/build/sunos-5.8-i86pc/master.pike:172:
| master()->compile_string("string f1() { return foo;
}",0,gc.pike.Compile.__class_65595_0())
| gc.pike:23: go("string f1() { return foo; }")
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1735([]) & 0 produces a core dump2009-04-16T14:11:39ZPeter Bortas([]) & 0 produces a core dumpImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1735
Reported by Martin Stjernholm <mast@roxen.com>Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1735
Reported by Martin Stjernholm <mast@roxen.com>Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1728Weak empty multisets contaminate other empty multisets2009-04-16T14:11:39ZPeter BortasWeak empty multisets contaminate other empty multisetsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1728
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
```
> multiset a = (< >);
Result: (< >)
> multiset b = set_weak_flag( (< >), 1);
Result: (< >)...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1728
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
```
> multiset a = (< >);
Result: (< >)
> multiset b = set_weak_flag( (< >), 1);
Result: (< >)
> get_weak_flag(a);
Result: 1
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1719_Image_FreeType/freetype.c:22: parse error before `library'2009-04-16T14:11:39ZPeter Bortas_Image_FreeType/freetype.c:22: parse error before `library'Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1719
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Compiling on Soyokaze:
```
WARNING: Compiler failure! Trying without optimization!
echo /home...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1719
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Compiling on Soyokaze:
```
WARNING: Compiler failure! Trying without optimization!
echo /home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/build/smartlink
gcc -I.
-I/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType
-I/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/../..
-I../.. -I. -I/home/distmaker/Distmaker/2.2/link/lrh7.0_ia64/include
-I/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src
-I/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/build
-I/usr/include/freetype2
-I/home/distmaker/Distmaker/2.2/link/lrh7.0_ia64/include
-I/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src
-I/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/build -W -Wall
-Wno-unused -Wcomment -Wformat -Wimplicit-function-declaration -Wmultichar
-Wswitch -Wuninitialized -Wpointer-arith -Wchar-subscripts -Wno-long-long
-fPIC -DDYNAMIC_MODULE -c
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c
-o freetype.o
cc1: warning: -Wuninitialized is not supported without -O
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:22:
parse error before `library'
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:22:
warning: type defaults to `int' in declaration of `library'
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:22:
warning: data definition has no type or storage class
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:32:
parse error before `FT_Face'
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:32:
warning: no semicolon at end of struct or union
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:
In function `image_ft_face_free':
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:40:
warning: implicit declaration of function `FT_Done_Face'
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:40:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:
In function `image_ft_face_write_char':
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:45:
`FT_GlyphSlot' undeclared (first use in this function)
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:45:
(Each undeclared identifier is reported only once
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:45:
for each function it appears in.)
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:45:
parse error before `slot'
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:56:
warning: implicit declaration of function `FT_Load_Char'
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:56:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:56:
`FT_LOAD_RENDER' undeclared (first use in this function)
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:59:
`slot' undeclared (first use in this function)
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:64:
`ft_pixel_mode_grays' undeclared (first use in this function)
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:86:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:87:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:88:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:
In function `image_ft_face_get_kerning':
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:97:
`FT_Vector' undeclared (first use in this function)
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:97:
parse error before `kern'
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:99:
warning: implicit declaration of function `FT_Get_Char_Index'
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:99:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:100:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:101:
warning: implicit declaration of function `FT_Get_Kerning'
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:101:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:101:
`ft_kerning_default' undeclared (first use in this function)
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:101:
`kern' undeclared (first use in this function)
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:
In function `image_ft_face_attach_file':
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:111:
warning: implicit declaration of function `FT_Attach_File'
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:111:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:
In function `image_ft_face_set_size':
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:126:
warning: implicit declaration of function `FT_Set_Pixel_Sizes'
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:126:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:
In function `image_ft_face_info':
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:135:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:136:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:140:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:141:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:144:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:145:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:
In function `image_ft_face_create':
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:154:
warning: implicit declaration of function `FT_New_Face'
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:154:
dereferencing pointer to incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:155:
`FT_Err_Unknown_File_Format' undeclared (first use in this function)
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:
In function `pike_module_init':
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:172:
warning: implicit declaration of function `FT_Init_FreeType'
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:188:
sizeof applied to an incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:188:
field `fooo_' has incomplete type
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:188:
Tree check: expected class 't', have 'x' (error_mark)
/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/pike/src/modules/_Image_FreeType/freetype.c:188:
Internal compiler error in `place_field', at stor-layout.c:741
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [freetype.o] Error 1
make[2]: Leaving directory
`/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/build/modules/_Image_FreeType'
make[1]: *** [_Image_FreeType] Error 1
make[1]: Leaving directory
`/home/distmaker/Distmaker/2.2/build/pike.lrh7.0_ia64/build/modules'
make: *** [module_objects] Error 1
```
*** pike.lrh7.0_ia64 FAILED ***Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/665Line numbers wrong due to shared nodes.2009-04-16T14:11:39ZPeter BortasLine numbers wrong due to shared nodes.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=665
Reported by Martin Stjernholm <mast@roxen.com>
In a certain situation in Roxen I encountered a place where the line number
info gets very wrong. To reproduce:
1. Ge...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=665
Reported by Martin Stjernholm <mast@roxen.com>
In a certain situation in Roxen I encountered a place where the line number
info gets very wrong. To reproduce:
1. Get a Roxen 2.2 from about 21:00 November 6.
2. Apply the attached patch to server/etc/modules/RXML.pmod/module.pmod.
3. Create a normal server with a filesystem and an rxml parser.
4. Create a file containing "&form.var;" and request it.
This will produce a Pike backtrace where the line number in the top entry
is 374, which is way outside the offending function rxml_index.
The line number gets correct if the freeze_node function in las.c is
defeated.Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1714fdlib.c(67) : error C2065: 'fd_mutex' : undeclared identifier2009-04-16T14:11:39ZPeter Bortasfdlib.c(67) : error C2065: 'fd_mutex' : undeclared identifierImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1714
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
```
make post_modules
make[2]: Entering directory
`/home/distmaker/Distmaker/2.2/build/pike....Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1714
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
```
make post_modules
make[2]: Entering directory
`/home/distmaker/Distmaker/2.2/build/pike.wxp_ia64/build'
Compiling
/home/distmaker/Distmaker/2.2/build/pike.wxp_ia64/pike/src/fdlib.c
\distmaker\Distmaker\2.2\build\pike.wxp_ia64\pike\src\fdlib.c(67) : error
C2065: 'fd_mutex' : undeclared identifier
\distmaker\Distmaker\2.2\build\pike.wxp_ia64\pike\src\fdlib.c(318) :
warning C4133: 'function' : incompatible types - from 'size_t *' to 'int *'
\distmaker\Distmaker\2.2\build\pike.wxp_ia64\pike\src\fdlib.c(384) :
warning C4133: 'function' : incompatible types - from 'size_t *' to 'int *'
\distmaker\Distmaker\2.2\build\pike.wxp_ia64\pike\src\fdlib.c(387) :
warning C4133: 'function' : incompatible types - from 'size_t *' to 'int *'
\distmaker\Distmaker\2.2\build\pike.wxp_ia64\pike\src\fdlib.c(388) :
warning C4133: 'function' : incompatible types - from 'size_t *' to 'int *'
\distmaker\Distmaker\2.2\build\pike.wxp_ia64\pike\src\fdlib.c(389) :
warning C4133: 'function' : incompatible types - from 'size_t *' to 'int *'
CL returned error code 2.
WARNING: Compiler failure! Trying without optimization!
echo /home/distmaker/Distmaker/2.2/build/pike.wxp_ia64/build/smartlink
rntcl64 -I. -I/home/distmaker/Distmaker/2.2/build/pike.wxp_ia64/pike/src
-I/home/distmaker/Distmaker/2.2/build/pike.wxp_ia64/pike/src
-I/home/distmaker/Distmaker/2.2/build/pike.wxp_ia64/build
-I/home/distmaker/Distmaker/2.2/build/pike.wxp_ia64/pike/src
-I/home/distmaker/Distmaker/2.2/build/pike.wxp_ia64/build -c
/home/distmaker/Distmaker/2.2/build/pike.wxp_ia64/pike/src/fdlib.c -o
fdlib.o
\distmaker\Distmaker\2.2\build\pike.wxp_ia64\pike\src\fdlib.c(67) : error
C2065: 'fd_mutex' : undeclared identifier
\distmaker\Distmaker\2.2\build\pike.wxp_ia64\pike\src\fdlib.c(318) :
warning C4133: 'function' : incompatible types - from 'size_t *' to 'int *'
\distmaker\Distmaker\2.2\build\pike.wxp_ia64\pike\src\fdlib.c(384) :
warning C4133: 'function' : incompatible types - from 'size_t *' to 'int *'
\distmaker\Distmaker\2.2\build\pike.wxp_ia64\pike\src\fdlib.c(387) :
warning C4133: 'function' : incompatible types - from 'size_t *' to 'int *'
\distmaker\Distmaker\2.2\build\pike.wxp_ia64\pike\src\fdlib.c(388) :
warning C4133: 'function' : incompatible types - from 'size_t *' to 'int *'
\distmaker\Distmaker\2.2\build\pike.wxp_ia64\pike\src\fdlib.c(389) :
warning C4133: 'function' : incompatible types - from 'size_t *' to 'int *'
CL returned error code 2.
make[2]: *** [fdlib.o] Error 2
make[2]: Leaving directory
`/home/distmaker/Distmaker/2.2/build/pike.wxp_ia64/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/distmaker/Distmaker/2.2/build/pike.wxp_ia64/build'
```
*** pike.wxp_ia64 FAILED ***Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1711replace has side effects2009-04-16T14:11:39ZPeter Bortasreplace has side effectsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1711
Reported by Stefan Wallström <stewa@lysator.liu.se>
replace(array,... ) has side effects.
Add OPT_SIDE_EFFECT or change semantics.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1711
Reported by Stefan Wallström <stewa@lysator.liu.se>
replace(array,... ) has side effects.
Add OPT_SIDE_EFFECT or change semantics.Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1705Oracle: Throws errors for warnings.2009-04-16T14:11:39ZPeter BortasOracle: Throws errors for warnings.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1705
Reported by Stefan Wallström <stewa@lysator.liu.se>
OCI_SUCCESS_WITH_INFO should be treated like OCI_SUCCESS. Although it would
be nice if there was a way to get the...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1705
Reported by Stefan Wallström <stewa@lysator.liu.se>
OCI_SUCCESS_WITH_INFO should be treated like OCI_SUCCESS. Although it would
be nice if there was a way to get the warning.Pike 7.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1689Problem with building modules requiring Gmp (Gmp, _Image_XFace)2009-04-16T14:11:39ZPeter BortasProblem with building modules requiring Gmp (Gmp, _Image_XFace)Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1689
Reported by Daved Daly, Lightwave Networking <daved@lightwave.net>
When trying to build the latest Pike 7.2 grabbed from CVS i'm having
problems with autoheader/auto...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1689
Reported by Daved Daly, Lightwave Networking <daved@lightwave.net>
When trying to build the latest Pike 7.2 grabbed from CVS i'm having
problems with autoheader/autoconf in the Gmp, and _Image_XFace module
directories.
```
Running autoconf in ./modules/Gmp
configure.in:177: error: undefine: undefined: pike_cv_gmp2___MPN_prefix
acheaders.m4:73: AC_CHECK_HEADER is expanded from...
acheaders.m4:95: AC_CHECK_HEADERS is expanded from...
```
I'm assuming that's coming from line 62 of ./modules/Gmp/configure.in
(or line 57 of ./modules/_Image_XFace/configure.in)
Fwiw. I dont have gmp2 installed on this machine, just gmp-3.1.1.
This being build on an IRIX64 6.5 IP27 machine, with gmp-3.1.1 installed,
and using SGI's MIPSPro 7.3.1.2m C and C++ compilers.
```
This seems similar to bug #150 tho that was for pike 7.0
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1686Postgres/generic SQL2015-02-27T16:54:24ZPeter BortasPostgres/generic SQLImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1686
Reported by Gabor Medve, home <macigabi@yahoo.com>
The same problem as in the bug no. 1310 on another platform/OS. I've tried
it with PostgreSQL 7.0.2 and 7.1.0. I'v...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1686
Reported by Gabor Medve, home <macigabi@yahoo.com>
The same problem as in the bug no. 1310 on another platform/OS. I've tried
it with PostgreSQL 7.0.2 and 7.1.0. I've tried to use Sql(), Sql.sql(),
Sql.postgres() and Postgres.postgres() to connect to the database but I
couldn't. The error msg was the same as in the bug no. 1310 exept when I
tried the other methods I got an error msg of big_query(). Sorry for
disturbing in the case you know already this problem.Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1679String.Buffer problem with mixed-width strings2009-04-16T14:11:39ZPeter BortasString.Buffer problem with mixed-width stringsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1679
Reported by Jonas Wallden <jonasw@roxen.com>
```
lister:jonasw $ ./pike-sås/7.2/bin/pike
Pike v7.2 release 37 running Hilfe v2.0 (Incremental Pike Frontend)
> object...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1679
Reported by Jonas Wallden <jonasw@roxen.com>
```
lister:jonasw $ ./pike-sås/7.2/bin/pike
Pike v7.2 release 37 running Hilfe v2.0 (Incremental Pike Frontend)
> object b = String.Buffer();
Result: Buffer(0 /* 0 */)
> b->add("a");
Result: 21
> b->add("\1234");
Result: 24
> b->add("b");
Result: 26
> b->add("\2345");
Result: 28
> b->add("c");
Result: 30
> b->get();
Result: "\1234ab\2345c"
```
The first addition of a wide string is incorrectly put at the beginning of
the buffer. Later additions appear to work better.Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1676Compilation error leads to "strange instruction" fatal2009-04-16T14:11:39ZPeter BortasCompilation error leads to "strange instruction" fatalImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1676
Reported by Martin Stjernholm <mast@roxen.com>
Quite often when I have some kind of compilation error in a pike module,
Pike dumps core after compiling the file. So ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1676
Reported by Martin Stjernholm <mast@roxen.com>
Quite often when I have some kind of compilation error in a pike module,
Pike dumps core after compiling the file. So far I haven't been able to
minimize a test case for it.
An example:
```
Rx.pmod/FSA.pmod:1953:Bad argument 1 to shift_shear.
Rx.pmod/FSA.pmod:1953:Expected: function(int, int : void)
Rx.pmod/FSA.pmod:1953:Got : function(function({ Arc = int } : { Node =
int }), int : void | mixed)
Rx.pmod/FSA.pmod:2001:Class definition failed.
/home/mast/Pike/devel/src/interpreter.h:222: Fatal error:
Strange instruction 249
Attempting to dump backlog (may fail)...
Backtrace at time of fatal:
Line not found:0:
create(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
/home/mast/Pike/devel/build/linux-2.2.14-i686/master.pike:210:master()->compile_file("/.qt3/home/mast/exjobb/rx/Rx.pmod/FSA.pmod",0,FSA,FSA())
/home/mast/Pike/devel/build/linux-2.2.14-i686/master.pike:448:master()->low_findprog("/.qt3/home/mast/exjobb/rx/Rx.pmod/FSA.pmod","",0,1)
/home/mast/Pike/devel/build/linux-2.2.14-i686/master.pike:493:master()->findprog("/.qt3/home/mast/exjobb/rx/Rx.pmod/FSA.pmod",".pmod",0,1)
/.../
```
Gdb backtrace:
```
#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 0x80b6b39 in debug_fatal () at /home/mast/Pike/devel/src/error.c:535
#5 0x807e67e in eval_instruction_without_debug (pc=0x83526dd "\a")
at /home/mast/Pike/devel/src/interpreter.h:222
#6 0x808058d in mega_apply (type=APPLY_LOW, args=0, arg1=0x833a9f4,
arg2=0x2)
at /home/mast/Pike/devel/src/interpret.c:797
#7 0x808130a in apply_lfun (o=0x833a9f4, fun=1, args=0)
at /home/mast/Pike/devel/src/interpret.c:1642
#8 0x80e3aa1 in call_pike_initializers (o=0x833a9f4, args=0)
at /home/mast/Pike/devel/src/object.c:257
#9 0x810b974 in compile (prog=0x83bff88, handler=0x0, major=-1, minor=-1,
target=0x8333260,
placeholder=0x833a9f4) at /home/mast/Pike/devel/src/program.c:4104
#10 0x814e707 in f_compile (args=6) at
/home/mast/Pike/devel/src/builtin_functions.c:3337
#11 0x807ef32 in low_mega_apply (type=APPLY_SVALUE, args=6, arg1=0x839e608,
arg2=0x0)
at /home/mast/Pike/devel/src/interpret.c:979
/.../
```Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1670Line numbers wrong due to shared nodes2009-04-16T14:11:39ZPeter BortasLine numbers wrong due to shared nodesImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1670
Reported by Martin Stjernholm <mast@roxen.com>
The following program:
```
array a = ({});
int main() {
int i = 0;
if (a[i]) i++;
}
```
give...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1670
Reported by Martin Stjernholm <mast@roxen.com>
The following program:
```
array a = ({});
int main() {
int i = 0;
if (a[i]) i++;
}
```
gives this output:
```
Attempt to index the empty array with 0.
foo.pike:1: main()
```
Note the line number. The problem disappears if the node sharing is
defeated (directly in the hash function; --without-shared-nodes doesn't
work anymore in 7.3).
This problem exists both in 7.2 and 7.3.Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1648sscanf with %[^...] fails on wide strings2009-04-16T14:11:39ZPeter Bortassscanf with %[^...] fails on wide stringsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1648
Reported by Jonas Wallden <jonasw@roxen.com>
```
lister:server $ ./bin/pike
Pike v7.2 release 37 running Hilfe v2.0 (Incremental Pike Frontend)
> string s;
> sscanf(...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1648
Reported by Jonas Wallden <jonasw@roxen.com>
```
lister:server $ ./bin/pike
Pike v7.2 release 37 running Hilfe v2.0 (Incremental Pike Frontend)
> string s;
> sscanf("foo bar <fie>", "%[^<]", s) && s;
Result: "foo bar "
> sscanf("foo \12345 bar <fie>", "%[^<]", s) && s;
Result: "foo "
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1645Validating parser backtraces2009-04-16T14:11:39ZPeter BortasValidating parser backtracesImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1645
Reported by Jonas Wallden <jonasw@roxen.com>
Test program:
```
string xml =
#"<?xml version='1.0'?>
<!DOCTYPE doc [
<!ELEMENT doc ((x|y)+,x,z)>
<!ELEMENT x EMPT...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1645
Reported by Jonas Wallden <jonasw@roxen.com>
Test program:
```
string xml =
#"<?xml version='1.0'?>
<!DOCTYPE doc [
<!ELEMENT doc ((x|y)+,x,z)>
<!ELEMENT x EMPTY>
<!ELEMENT y EMPTY>
<!ELEMENT z EMPTY>
]>
<doc>
<y/>
<x/>
<z/>
</doc>";
int main()
{
object p = Parser.XML.Validating();
p->parse(xml, lambda(mixed ...args) {
werror("args: %O\n", args);
return 0;
});
return 0;
}
```
Backtrace:
```
Attempt to call the string "+"
/home/jonasw/pike-sås/7.2/lib/modules/Parser.pmod/XML.pmod/Validating.pike:182:
__lambda_65591_1("")
/home/jonasw/pike-sås/7.2/lib/modules/Parser.pmod/XML.pmod/Validating.pike:79:
Element("doc")->accept_element("")
/home/jonasw/pike-sås/7.2/lib/modules/Parser.pmod/XML.pmod/Validating.pike:324:
validate("",0,0,"\n
",mapping[1],@0=__lambda_65585_0,@1=({}))
/home/jonasw/pike-sås/7.2/lib/modules/Parser.pmod/XML.pmod/Validating.pike:
parse("<?xml version='1.0'?>\n<!DOCTYPE doc [\n <!ELEMENT doc
((x|y)+,x,z)>\n <!ELEMENT x EMPTY>\n <!ELEMENT y EM
PTY>\n <!ELEMENT z EMPTY>\n]>\n<doc>\n <y/>\n <x/>\n
<z/>\n</doc>",@2=validate,@0,@1)
/home/jonasw/pike-sås/7.2/lib/modules/Parser.pmod/XML.pmod/Validating.pike:375:
parse("<?xml version='1.0'?>\n<!DOCTYPE doc [\n <!ELEMENT doc
((x|y)+,x,z)>\n <!ELEMENT x EMPTY>\n <!ELEMENT y EM
PTY>\n <!ELEMENT z EMPTY>\n]>\n<doc>\n <y/>\n <x/>\n
<z/>\n</doc>",@0)
validate-test.pike:22: main()
```Pike 7.2Marcus ComstedtMarcus Comstedthttps://git.lysator.liu.se/pikelang/pike/-/issues/1642The Locale module in 2.2 does not work without threads2009-04-16T14:11:39ZPeter BortasThe Locale module in 2.2 does not work without threadsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1642
Reported by @zino
The Locale module in 7.2 does not work without threads. This
get_object-snippet in Roxen 2.2:language.pike returns 0:
```
object language_low(stri...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1642
Reported by @zino
The Locale module in 7.2 does not work without threads. This
get_object-snippet in Roxen 2.2:language.pike returns 0:
```
object language_low(string lang) {
return [object]Locale.get_object( PROJECT,
verify_locale(lang) )->functions;
}
```
Backtrace lost.Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbström