pike issueshttps://git.lysator.liu.se/pikelang/pike/-/issues2020-03-01T15:48:03Zhttps://git.lysator.liu.se/pikelang/pike/-/issues/7630Potential deadlock in Pike 8.0.1432020-03-01T15:48:03ZPeter BortasPotential deadlock in Pike 8.0.143Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7630
Reported by Martin Karlgren <marty@roxen.com>
My Roxen/EP (devel) process locked up. I haven't analysed the backtraces too much, but I'd expect a deadlock. Pike and ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7630
Reported by Martin Karlgren <marty@roxen.com>
My Roxen/EP (devel) process locked up. I haven't analysed the backtraces too much, but I'd expect a deadlock. Pike and C backtraces attached.Pike 8.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/397Prb -lc with pike 7.0.78 on UnixWare 7.X.X and OpenServer 5.0.X2009-04-16T14:11:39ZPeter BortasPrb -lc with pike 7.0.78 on UnixWare 7.X.X and OpenServer 5.0.XImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=397
Reported by @grubba
```
From: Boyd Lynn Gerber <gerberb@zenez.com>
To: pike-bugs@roxen.com
Date: Sat, 23 Sep 2000 12:08:16 -0600 (MDT)
Subject: Prb -lc with pike 7.0....Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=397
Reported by @grubba
```
From: Boyd Lynn Gerber <gerberb@zenez.com>
To: pike-bugs@roxen.com
Date: Sat, 23 Sep 2000 12:08:16 -0600 (MDT)
Subject: Prb -lc with pike 7.0.78 on UnixWare 7.X.X and OpenServer 5.0.X
```
To whom it may concern:
I have found this problem with both SCO OS's. The compilers add the libc
where needed. How do I prevent pike builds using the -lc option.
I have been having some strange behavoir with Roxen and Caudium on
UnixWare 7.X.X and OpenServer. If I run the make check on UnixWare 7.X.X,
I get different things on each build and make check. I can get a core
dump a race condition consuming resources The load jumps to over 30.
I was using gdb tracing things and found shared libs were jumping to
locations that were bogus. It was going to the same place that gmp-3.1
goes when .so are compiled with the -lc option. I have traced it to build
.so files with the -lc option. I then downloaded the latest stable pike
and used the SCO UDK cc compiler instead of gcc. gcc does not give any
warnings about the -lc, although they both automatically link in libc
where needed. I found that pike .so's are all being made with the -lc
option. This warning from the SCO UDK cc should not be over looked.
****
UX:cc: WARNING: Avoid specifying -lc; cc will ensure that libc is linked
in the proper order. Linking libc in the wrong order may cause
incorrect execution behavior. If you do specify -lc, make sure that no
dynamic libraries are specified after it.
I can not find where the -lc is being added. It appears the Makefiles do
not have it, but I see the complaint with the SCO UDK compiler. I am not
sure how to fix it.
Thanks,
--
Boyd Gerber <gerberb@zenez.com>
ZENEZ 3748 Valley Forge Road, Magna Utah 84044
Office 801-250-0795 FAX 801-250-7975Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/4564precompile.sh installed with incorrect permissions2009-04-16T14:11:39ZPeter Bortasprecompile.sh installed with incorrect permissionsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4564
Reported by @zino
precompile.sh is installed without execute permissions in 7.7 which breaks
building of some external modules:
/usr/local/pike/7.7.157/include/pike...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4564
Reported by @zino
precompile.sh is installed without execute permissions in 7.7 which breaks
building of some external modules:
/usr/local/pike/7.7.157/include/pike/precompile.sh --cache precompile.pike
>"upnp.c" "upnp.cmod" || { rm "upnp.c"; exit 1; }
/bin/sh: /usr/local/pike/7.7.157/include/pike/precompile.sh: Permission
deniedPike 7.8Peter BortasPeter Bortashttps://git.lysator.liu.se/pikelang/pike/-/issues/10136Private getter not marked as used.2023-11-16T12:02:24ZHenrik (Grubba) GrubbströmPrivate getter not marked as used.Reported by Pontus Östlund:
```
$ cat bug-private-getter.pike
class Test {
private string `property_accessor() {
return "I'm private";
}
private string `unused_getter() {
return "Unused private getter";
}
public void...Reported by Pontus Östlund:
```
$ cat bug-private-getter.pike
class Test {
private string `property_accessor() {
return "I'm private";
}
private string `unused_getter() {
return "Unused private getter";
}
public void log() {
werror("Log: %s\n", property_accessor);
}
}
int main() {
Test t = Test();
t->log();
}
```
In current Pike 8.0:
```
$ ./pike bug-private-getter.pike
bug-private-getter.pike:2: Warning: Modifier mismatch for variable property_accessor.
bug-private-getter.pike:6: Warning: Modifier mismatch for variable unused_getter.
bug-private-getter.pike:13: Warning: `property_accessor is private but not used anywhere.
bug-private-getter.pike:13: Warning: unused_getter is private but not used anywhere.
bug-private-getter.pike:13: Warning: `unused_getter is private but not used anywhere.
Log: I'm private
```
In current Pike master:
```
$ ./pike bug-private-getter.pike
bug-private-getter.pike:13: Warning: `property_accessor is private but not used anywhere.
bug-private-getter.pike:13: Warning: unused_getter is private but not used anywhere.
bug-private-getter.pike:13: Warning: `unused_getter is private but not used anywhere.
Log: I'm private
```Pike Nexthttps://git.lysator.liu.se/pikelang/pike/-/issues/1559Probable XML parser bug: GC fatal: Thing is getting more internal refs than r...2009-04-16T14:11:39ZPeter BortasProbable XML parser bug: GC fatal: Thing is getting more internal refs than refs.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1559
Reported by @grubba
```
/home/grubba/src/Pike/7.3/src/gc.c:959: GC fatal:
**Thing is getting more internal refs than refs.
**Location: 372b84 Type: mapping Refs: 1...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1559
Reported by @grubba
```
/home/grubba/src/Pike/7.3/src/gc.c:959: GC fatal:
**Thing is getting more internal refs than refs.
**Location: 372b84 Type: mapping Refs: 1
**Got gc marker at 44735c: flags=0x0002, refs=1, weak=0, xrefs=0, saved=1,
frame=0
**Describing mapping:
Refs=1, next=372b70, prev=372bd4, flags=0x0, size=1, hashsize=1
Indices type field = string
Values type field = int
/home/grubba/src/Pike/7.3/src/mapping.c:893: Fatal error:
Pike was in GC stage 100 when this fatal occured:
check_mapping_for_destruct called in invalid pass inside gc.
Attempting to dump backlog (may fail)...
Backtrace at time of fatal:
Tree: parse_xml_callback("<","p",([]),0,mapping[1])
/home/grubba/src/Pike/7.3/build/sol8-no-dmalloc/test-install/pike/7.3.5/lib/modules/spider.so.XML:
parse("<module name=''><module name='MIME'><docgroup
homogen-name='decode_
base64' homogen-type='method'><method
name='decode_base64'>\n<arguments><a
rgument
name='encoded_data'><type>"+[7800],@0,0)
/home/grubba/src/Pike/7.3/build/sol8-no-dmalloc/test-install/pike/7.3.5/lib/modules/Parser.pmod/XML.pmod/Tree.pmod:580:
parse_input("<module name=''><module name='MIME'><docgroup
homogen-name='d
ecode_base64' homogen-type='method'><method
name='decode_base64'>\n<argume
nts><argument
name='encoded_data'><type><string/></type></ar"+[7780],0,0)
/home/grubba/src/Pike/7.3/build/sol8-no-dmalloc/test-install/pike/7.3.5/lib/modules/Parser.pmod/XML.pmod/Tree.pmod:612:
parse_file("MIME/mime.xml")
/home/grubba/src/Pike/7.3/bin/join-autodoc.pike:21:
```
main(123,({"/home/grubba/src/Pike/7.3/bin/join-autodoc.pike","sub_manual.x
ml","CommonLog/clf.xml","FrontBase/frontbase.xml","Gdbm/gdbmmod.xml","Gett
ext/gettext.xml","Gmp/mpz_glue.xml","Gmp/my_mpz_xor.xml",,,114}))Pike 7.4https://git.lysator.liu.se/pikelang/pike/-/issues/1926Problem extracting class documentation.2009-04-16T14:11:39ZPeter BortasProblem extracting class documentation.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1926
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
Both
class Foo
{
//! Documetation of Foo
```
void other_stuff() {};
}
```
and
class Foo
{
//! Do...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1926
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
Both
class Foo
{
//! Documetation of Foo
```
void other_stuff() {};
}
```
and
class Foo
{
//! Documentation of Foo
```
void other_stuff() {};
}
```
generates "documentation comment without destination" error. (See current
XMLRPC.pmod/module.pmod)Pike 7.4https://git.lysator.liu.se/pikelang/pike/-/issues/3624Problem in Parser.HTML() with mixed_mode2009-04-16T14:11:39ZPeter BortasProblem in Parser.HTML() with mixed_modeImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3624
Reported by Marcus Wellhardh <wellhard@roxen.com>
Mixed mode in Parser.HTML() does not work for more then 32 nodes.
```
Reported in RT#4969
```
Test program below:...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3624
Reported by Marcus Wellhardh <wellhard@roxen.com>
Mixed mode in Parser.HTML() does not work for more then 32 nodes.
```
Reported in RT#4969
```
Test program below:
```
Pike v7.2 release 421 running Hilfe v2.0 (Incremental Pike Frontend)
--------------
object p = Parser.HTML();
p->mixed_mode (1);
p->add_container ("land", lambda (object p, mapping args, string content)
{return ({ p->tag_content() }); });
Works
-----
p->feed("\"\\n <land>1</land>\\n <land>2</land>\\n <land>3</land>\\n
<land>4</land>\\n <land>5</land>\\n <land>6</land>\\n <land>7</land>\\n
<land>8</land>\\n <land>9</land>\\n <land>10</land>\\n
<land>11</land>\\n <land>12</land>\\n <land>13</land>\\n
<land>14</land>\\n <land>15</land>")->read();
```
Result: ({ /* 30 elements */
"\"\\n ",
"1",
"\\n ",
"2",
"\\n ",
"3",
"\\n ",
"4",
"\\n ",
"5",
"\\n ",
"6",
"\\n ",
"7",
"\\n ",
"8",
"\\n ",
"9",
"\\n ",
"10",
"\\n ",
"11",
"\\n ",
"12",
"\\n ",
"13",
"\\n ",
"14",
"\\n ",
"15"
})
```
Does not work
-------------
p->feed("\"\\n <land>1</land>\\n <land>2</land>\\n <land>3</land>\\n
<land>4</land>\\n <land>5</land>\\n <land>6</land>\\n <land>7</land>\\n
<land>8</land>\\n <land>9</land>\\n <land>10</land>\\n
<land>11</land>\\n <land>12</land>\\n <land>13</land>\\n
<land>14</land>\\n <land>15</land>\\n <land>16</land>")->read();
```
Result: ({ })Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1145Problem IP numbers on IRIX 6.5 when compiling with gcc2020-02-29T18:00:13ZPeter BortasProblem IP numbers on IRIX 6.5 when compiling with gccImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1145
Reported by Martin Stjernholm <mast@roxen.com>
> From: Johan Hattne <hattne@ibg.uu.se>
> To: <roxen@roxen.com>
> Date: Sun, 4 Feb 2001 21:00:12 +0100
>
> I wrote to ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1145
Reported by Martin Stjernholm <mast@roxen.com>
> From: Johan Hattne <hattne@ibg.uu.se>
> To: <roxen@roxen.com>
> Date: Sun, 4 Feb 2001 21:00:12 +0100
>
> I wrote to this list some months ago complaining about roxen not working
> when compiled with gcc. There is a bug in gcc on IRIX that messes up the
> handling of IP-numbers (inet_ntoa and friends if I am not mistaken) so
all
> requests seem to come from 0.0.0.0 or 255.255.255.255. The source still
> compiles nicely, but it is diffucult (impossible?) to bind the server to
> any very useful address.
>
> So I compiled with cc (license required) and now things work. Problem is
> the IRIX binaries available from the roxen website show the same symptoms
> as my broken server did when compiled with gcc. Either these binaries are
> compiled with a broken gcc or I am doing something else wrong. If anybody
> has downloaded a working IRIX binary I will have to look over my
> configurations.
>
> // JohanPike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/4265Problem listing a large amount of files2009-04-16T14:11:39ZPeter BortasProblem listing a large amount of filesImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4265
Reported by Erik Allemann <erik@roxen.com>
```
Pike v7.4 release 444 running Hilfe v3.5 (Incremental Pike Frontend)
> sizeof(get_dir("diff2"));
Segmentation fault (c...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4265
Reported by Erik Allemann <erik@roxen.com>
```
Pike v7.4 release 444 running Hilfe v3.5 (Incremental Pike Frontend)
> sizeof(get_dir("diff2"));
Segmentation fault (core dumped)
```
The directory contains 107489 files.Pike 7.4Henrik (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/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/4434Problem with map type (?)2020-03-01T15:02:31ZPeter BortasProblem with map type (?)Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4434
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
This code
```
#pragma strict_types
```
string f(int i) { return (string)i; }
```
void main(int n, array(...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4434
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
This code
```
#pragma strict_types
```
string f(int i) { return (string)i; }
```
void main(int n, array(string) args)
{
array(int) a = (array(int))(args[0]);
sprintf("%@s", map(a, f));
}
```
produces the warning
```
/home/nilsson/Pike/7.7/type.pike:9: Warning: Type mismatch in argument 2 to
sprintf.
/home/nilsson/Pike/7.7/type.pike:9: Warning: Expected: array(object | string)
/home/nilsson/Pike/7.7/type.pike:9: Warning: Got : array(string | mixed)
```Pike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/4156problem with redefine "`<<" and "`>>" operation2020-03-01T14:55:29ZPeter Bortasproblem with redefine "`<<" and "`>>" operationImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4156
Reported by Andrew Shirrayev, <andrews@gate.ort.spb.ru>
```
$ pike7.6 -v
Pike v7.6 release 75 Copyright &#9560; 1994-2006 Link&#1046;ping University
Pike comes with ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4156
Reported by Andrew Shirrayev, <andrews@gate.ort.spb.ru>
```
$ pike7.6 -v
Pike v7.6 release 75 Copyright ╘ 1994-2006 LinkЖping University
Pike comes with ABSOLUTELY NO WARRANTY; This is free software and you are
welcome to redistribute it under certain conditions; Read the files
COPYING and COPYRIGHT in the Pike distribution for more details.
```
Code sample with problem.
```
class test {
object(test) `/(string str)
{
write("DIV : "+str+"\n");
return this_object();
};
object(test) `+(string str)
{
write("ADD : "+str+"\n");
return this_object();
};
object(test) `<<(string str)
{
write("LEFT:"+str+"\n");
return this_object();
};
}
int main(int argc, array argv)
{
object(test) foo=(test()/"qqq")+"zzz";
// ^^ line w/o problem
object(test) foo1=(test()/"qqq")<<"zzz";
// bug.pike:25:Bad argument 2 to `<<.
// bug.pike:25:Expected: !function(!object ... : mixed) & (function(mixed,
// object : mixed) | function(object, mixed : mixed)) | function(int, int :
// int)
// bug.pike:25:Got : function(mixed | void, string : void | mixed)
// Pike: Failed to compile script:
// Compilation failed.
}
```Pike 7.6Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/4354Problem with unixODBC on linux2009-04-16T14:11:39ZPeter BortasProblem with unixODBC on linuxImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4354
Reported by Marcus Wellhardh <wellhard@roxen.com>
Got the following error when trying to execute a query to a MSSQL 2000 server:
```
Pike v7.7 release 30 running Hi...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4354
Reported by Marcus Wellhardh <wellhard@roxen.com>
Got the following error when trying to execute a query to a MSSQL 2000 server:
```
Pike v7.7 release 30 running Hilfe v3.5 (Incremental Pike Frontend)
> object db = Sql.Sql("odbc://test:test@burns/");
> db->query("Select * from Region");
odbc->fetch_row(): SQLGetData() failed:
SQLError failed (-1:SQL_NO_DATA_FOUND)
src/modules/Odbc/odbc_result.c:648: Odbc.odbc_result()->fetch_row()
test-install/pike/7.7.30/lib/modules/Sql.pmod/Sql.pike:367:
Sql.Sql()->res_obj_to_array(Odbc.odbc_result())
test-install/pike/7.7.30/lib/modules/Sql.pmod/Sql.pike:495:
Sql.Sql()->query("Select * from Region")
```
The applications tsql (freetds native client) and isql (unuxODBC client)
can execute the query. The query does also work if you disable winde string
support in the pike ODBC module.
Client: leguan.roxen.com
FreeTDS: 0.64
unixODBC: 2.2.11
pike: 7.7.30 and 7.4
~ $ cat .odbc.ini
[burns]
Driver = FreeTDS
Server = burns.roxen.com
Port = 1433
Database = Northwind
~ $ cat /etc/odbcinst.ini
[FreeTDS]
Description = FreeTDS unixODBC Driver
Driver = /usr/local/lib/libtdsodbc.so
UsageCount = 1
```
~ $ cat /usr/local/etc/freetds.conf
[...]
[burns]
host = burns.roxen.com
port = 1433
```Pike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/2519Process creation fails when running with --quiet2009-04-16T14:11:39ZPeter BortasProcess creation fails when running with --quietImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2519
Reported by Jonas Wallden <jonasw@roxen.com>
The replication system creates a sub-process for running a script
periodically, but this fails when the server is run wi...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2519
Reported by Jonas Wallden <jonasw@roxen.com>
The replication system creates a sub-process for running a script
periodically, but this fails when the server is run with the --quiet
option on Win2K.Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/4302program compilation/execution crashes pike2009-04-16T14:11:39ZPeter Bortasprogram compilation/execution crashes pikeImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4302
Reported by erik eriksson, opera software <ee@opera.com>
the following program crashes my pike. tested on various installations
(debian or ubuntu, all running pike v...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4302
Reported by erik eriksson, opera software <ee@opera.com>
the following program crashes my pike. tested on various installations
(debian or ubuntu, all running pike v 7.6.86).
```
ee@sprint:~/tmp$ cat crash.pike
class S {
SSL.context s;
void ss(Parser.XML.NSTree.NSNode sss)
{
Parser.XML.NSTree.NSNode ssss = sss[0];
}
}
void main(){}
ee@sprint:~/tmp$ pike crash.pike
Segmenteringsfel (core dumped)
ee@sprint:~/tmp$ cat nocrash.pike
class S {
void ss(Parser.XML.NSTree.NSNode sss)
{
Parser.XML.NSTree.NSNode ssss = sss[0];
}
SSL.context s;
}
void main(){}
ee@sprint:~/tmp$ pike nocrash.pike
ee@sprint:~/tmp$ pike -v
Pike v7.6 release 86 Copyright � 1994-2006 Link�ping University
Pike comes with ABSOLUTELY NO WARRANTY; This is free software and you are
welcome to redistribute it under certain conditions; Read the files
COPYING and COPYRIGHT in the Pike distribution for more details.
```Pike 7.6Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/3684Program received signal SIGSEGV, pike_types.c:17052009-04-16T14:11:39ZPeter BortasProgram received signal SIGSEGV, pike_types.c:1705Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3684
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
```
9:30:53 : -----------------------------------------------------------------
0m 0.0s : P...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3684
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
```
9:30:53 : -----------------------------------------------------------------
0m 0.0s : Pike version: Pike v7.4 release 78
: Product version: Roxen CMS 4.0.85-beta1
: Operating system: Linux 2.4.21-9.0.1.EL (i686)
: Starting MySQL ... Detaching after fork from child process 8981.
Done 4.0.18-standard [1486.3ms]
:
9:30:55 : mysql: Warning: One can only use the --user switch if running
as roo t
0m 1.5s : mysql: 040519 9:30:55 InnoDB: Started
: mysql: bin/roxen_mysql: ready for connections.
: mysql: Version: '4.0.18-standard' socket:
'/home/noring/rep/red/rox en/configurations/_mysql/socket' port: 0
: Loading Pike modules ... Done [2049.0ms]
: Loading Roxen ...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 8978)]
compile_type_to_runtime_type (t=0x0)
at
/home/distmaker/Distmaker/4.0/build/pike.rhel3/pike/src/pike_types.c:1705
1705
/home/distmaker/Distmaker/4.0/build/pike.rhel3/pike/src/pike_types.c: No
such file or directory.
in /home/distmaker/Distmaker/4.0/build/pike.rhel3/pike/src/pike_types.c
(gdb) bt
#0 compile_type_to_runtime_type (t=0x0)
at
/home/distmaker/Distmaker/4.0/build/pike.rhel3/pike/src/pike_types.c:1705
#1 0x080d5219 in f_cast ()
at /home/distmaker/Distmaker/4.0/build/pike.rhel3/pike/src/opcodes.c:800
#2 0x0896e8cb in ?? ()
#3 0x000000c6 in ?? ()
#4 0x00000004 in ?? ()
#5 0x00000744 in ?? ()
#6 0x088d0005 in ?? ()
#7 0x0885776c in ?? ()
#8 0xbfff5b44 in ?? ()
#9 0x00000001 in ?? ()
#10 0x0866dd04 in ?? ()
#11 0x00000001 in ?? ()
#12 0xbfff5c34 in ?? ()
#13 0x08072026 in o_catch (pc=0x896e7b8 "��2!\b\203@\034\030�\004$�")
at /home/distmaker/Distmaker/4.0/build/pike.rhel3/pike/src/interpret.c:1797
Previous frame identical to this frame (corrupt stack?)
(gdb)
```Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/8163Propagate backend setting for Promises.2020-03-05T17:48:47ZPeter BortasPropagate backend setting for Promises.Imported from https://youtrack.roxen.com/issue/PIKE-163
Reported by @grubbaImported from https://youtrack.roxen.com/issue/PIKE-163
Reported by @grubbahttps://git.lysator.liu.se/pikelang/pike/-/issues/10051Protocols.DNS.async_client does not like when the callback function has been ...2020-08-18T11:50:09ZHenrik (Grubba) GrubbströmProtocols.DNS.async_client does not like when the callback function has been destructed.Seen in the wild (Pike 8.0.354 patched to 5cf5f2a4b8ededbb0bc03f3eabc9bc97a71d61b9 (aka `rxnpatch/2020-03-25T110609`)):
```
Internal server error: Attempt to call the NULL-value
Unknown program: 0("foo.examle.com",0,0,80)
pike/lib/module...Seen in the wild (Pike 8.0.354 patched to 5cf5f2a4b8ededbb0bc03f3eabc9bc97a71d61b9 (aka `rxnpatch/2020-03-25T110609`)):
```
Internal server error: Attempt to call the NULL-value
Unknown program: 0("foo.examle.com",0,0,80)
pike/lib/modules/Protocols.pmod/DNS.pmod:2014: Protocols.DNS.global_async_client
->generic_get("foo.example.com",0,-1,0,1,"a","foo.example.com",0,0,80)
pike/lib/modules/Protocols.pmod/DNS.pmod:1909: Protocols.DNS.global_async_client
->remove(Protocols.DNS.global_async_client->Request())
base_server/roxenloader.pike (53ed4390):269: Protocols.DNS.global_async_client->
remove->`()(@0=Protocols.DNS.global_async_client->Request())
-:1: Pike.Backend(0)->`()(3600.0)
```Pike 8.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/8128Protocols.DNS.client()->gethostbyname("localhost") sometimes lacks IPv4 addre...2018-09-14T10:53:01ZPeter BortasProtocols.DNS.client()->gethostbyname("localhost") sometimes lacks IPv4 addresses.Imported from https://youtrack.roxen.com/issue/PIKE-128
Reported by @grubbaImported from https://youtrack.roxen.com/issue/PIKE-128
Reported by @grubba