pike issueshttps://git.lysator.liu.se/pikelang/pike/-/issues2009-04-16T14:11:39Zhttps://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ömhttps://git.lysator.liu.se/pikelang/pike/-/issues/1637emulate_bindings replaces too much2009-04-16T14:11:39ZPeter Bortasemulate_bindings replaces too muchImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1637
Reported by Dan Nelson <dnelson_1901@yahoo.com>
The documentation reads
```
The raw query can contain some variables (identified by prefixing
a colon to a name or...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1637
Reported by Dan Nelson <dnelson_1901@yahoo.com>
The documentation reads
```
The raw query can contain some variables (identified by prefixing
a colon to a name or a number i.e. :var, :2). They will be
replaced by the corresponding value in the mapping.
```
But the code actually replaces without looking for a leading colon, so given:
```
mapping m=([ "e":"text" ]);
object s=Sql.sql("msql://etc");
s->query("select * from mytable where id = :e", m);
```
It errors out:
mysql->big_query(): Query "s'text'l'text'ct * from mytabl'text'
wh'text'r'text' id = :'text'" failed (You have an error in your SQL syntax
near 's'text'l'text'ct * from mytabl'text' wh'text'r'text' id = :'text'' at
line 1)
Fix:
```
Index: sql_util.pmod
===================================================================
RCS file: /cvs/Pike/7.2/lib/modules/Sql.pmod/sql_util.pmod,v
retrieving revision 1.8
diff -b -u -p -r1.8 sql_util.pmod
--- sql_util.pmod 2001/04/07 00:35:22 1.8
+++ sql_util.pmod 2001/05/07 20:39:49
@@ -61,7 +61,7 @@ string emulate_bindings(string query, ma
return (stringp(m)? "'"+my_quote(m)+"'" : (string)m);
});
k=Array.map(indices(bindings),lambda(string s){
- return (stringp(s)? s : ":"+s);
+ return (":"+s);
});
return replace(query,k,v);
}
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1622mird.h is not found2009-04-16T14:11:39ZPeter Bortasmird.h is not foundImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1622
Reported by Alexander Klimov, WIS <alserkli@inbox.ru>
```
I got error message
build/Pike/7.3/src/modules/Mird/mird_glue.c:25: mird.h: No such file or
directory
```
...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1622
Reported by Alexander Klimov, WIS <alserkli@inbox.ru>
```
I got error message
build/Pike/7.3/src/modules/Mird/mird_glue.c:25: mird.h: No such file or
directory
```
after I update CVS and run
make CONFIGUREARGS="--prefix=/usr/local/gcc" sure
For some reason configure thinks
checking for mird.h... no
checking for mird_sync in -lmird... no
checking if we can build libmird on this system... yes
but I (and gcc) can't find mird.h anywhere.Pike 7.4https://git.lysator.liu.se/pikelang/pike/-/issues/1610write("%*c",10,'*');2009-04-16T14:11:39ZPeter Bortaswrite("%*c",10,'*');Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1610
Reported by Toyotomi Hideyoshi, <roxen@asylos.org>
This happens in Linux too...
```
write("%*c",10,'*');
```
This prints 9 spaces and one '*'
This is from <?pike ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1610
Reported by Toyotomi Hideyoshi, <roxen@asylos.org>
This happens in Linux too...
```
write("%*c",10,'*');
```
This prints 9 spaces and one '*'
This is from <?pike ... ?>
Someone else said it was printing \0 instead of spaces for them in hilfe.
The spaces I am seeing are in a web page so who knows what they actually
are.Pike 7.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1607Poor ODBC hangs Pike/Roxen2014-07-09T15:45:50ZPeter BortasPoor ODBC hangs Pike/RoxenImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1607
Reported by Toyotomi Hideyoshi, <roxen@asylos.org>
I use an ODBC driver in Windows that is not very good.
When you write certain malformed SQL statements, the driver...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1607
Reported by Toyotomi Hideyoshi, <roxen@asylos.org>
I use an ODBC driver in Windows that is not very good.
When you write certain malformed SQL statements, the driver
will not respond.
I am currently running Coldfusion/IIS and Roxen side by side in evaluation.
I am reporting this as a bug, when perhaps it's more of a feature request.
With the above-mentioned ODBC driver web code with certain SQL errors will
result in the page request endlessly waiting. Coldfusion and Roxen both
exhibit this behaviour. It is fully expected.
However, when you stop trying to load the page Coldfusion will be able to
continue processing other pages (or the same page after you fix your SQL
errors). Roxen on the other hand will not respond to any further requests.
It is still tripping on the ODBC driver I assume. Perhaps a threading
issue.Pike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/1594Error in object type check for Filesystem.Tar.2009-04-16T14:11:39ZPeter BortasError in object type check for Filesystem.Tar.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1594
Reported by Martin Stjernholm <mast@roxen.com>
I do not think that the following program contains an error:
```
static Filesystem.Tar tar;
int main()
{
if( catch...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1594
Reported by Martin Stjernholm <mast@roxen.com>
I do not think that the following program contains an error:
```
static Filesystem.Tar tar;
int main()
{
if( catch( tar = Filesystem.Tar("config_interface/docs.tar") ) )
tar = 0;
}
```
But 7.2 thinks there's a type problem in the first assignment:
```
/home/mast/foo.pike:5:Bad type in assignment.
/home/mast/foo.pike:5:Expected: object(implements 65605)
/home/mast/foo.pike:5:Got : object(is 65611)
/home/mast/foo.pike:5:Missing identifier "_Tar".
Pike: Failed to compile script:
Compilation failed.
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1593"Got" type wrong in type check2020-02-29T18:01:04ZPeter Bortas"Got" type wrong in type checkImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1593
Reported by Martin Stjernholm <mast@roxen.com>
When starting a cvs current Roxen 2.2 with Pike 7.2 I get the following
error when Roxen tries to open an ftp port:
`...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1593
Reported by Martin Stjernholm <mast@roxen.com>
When starting a cvs current Roxen 2.2 with Pike 7.2 I get the following
error when Roxen tries to open an ftp port:
```
protocols/ftp.pike:2968:Bad argument 2 to `<.
protocols/ftp.pike:2968:Expected: function(program | type, program | type,
program | type ... : int(0..1)) | function(string ... : int(0..1)) |
function(float | int ... : int(0..1)) | !function(!(mixed | object) ... :
mixed) & function(mixed ... : int(0..1))
protocols/ftp.pike:2968:Got : function(int, function(string ... :
string) | function((0=int | float) ... : 0) | !function(string ... : mixed)
& !function(int | float ... : mixed) & !function(!(object | mixed) ... :
mixed) & function(mixed ... : mixed) : void | mixed)
protocols/ftp.pike:2968:Bad argument 2 to `>.
protocols/ftp.pike:2968:Expected: function(program | type, program | type,
program | type ... : int(0..1)) | function(string ... : int(0..1)) |
function(float | int ... : int(0..1)) | !function(!(mixed | object) ... :
mixed) & function(mixed ... : int(0..1))
protocols/ftp.pike:2968:Got : function(int, function(string ... :
string) | function((0=int | float) ... : 0) | !function(string ... : mixed)
& !function(int | float ... : mixed) & !function(!(object | mixed) ... :
mixed) & function(mixed ... : mixed) : void | mixed)
protocols/ftp.pike:2990:Must return a value for a non-void function.
protocols/ftp.pike:3010:Must return a value for a non-void function.
protocols/ftp.pike:3020:Must return a value for a non-void function.
protocols/ftp.pike:3047:Must return a value for a non-void function.
protocols/ftp.pike:3062:Must return a value for a non-void function.
protocols/ftp.pike:3727:Class definition failed.
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1562The MySQL module could give an access denied error message2016-01-07T16:25:00ZPeter BortasThe MySQL module could give an access denied error messageImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1562
Reported by Mattias Wingstedt, Idonex AB <wing@roxen.com>
If the process user doesn't have permission to access a MySQL database and
no username or password is sent ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1562
Reported by Mattias Wingstedt, Idonex AB <wing@roxen.com>
If the process user doesn't have permission to access a MySQL database and
no username or password is sent to the MySQL module you get a "Couldn't
select database" error instead of an "Access denied" error.
```
Pike v7.0 release 312 running Hilfe v2.0 (Incremental Pike Frontend)
> Sql.sql( "mysql://localhost/roxen" );
Mysql.mysql(): Couldn't select database "roxen"
lib/modules/Sql.pmod/mysql.pike:
create("Mysql.mysql(): Couldn't select database
\"roxen\"\n",({({"/web/pik
```
e/7.0.312/lib/master.pike",1107,/master._main,,,1}),({0,0,Hilfe.StdinHilfe
}),({"/web/pike/7.0.312/lib/modules/Tools.pmod/Hilfe.pmod",667,,,0}),,,7})
```
)
lib/modules/Sql.pmod/sql.pike:215: create("localhost","roxen",0,0)
-:1: ___Foo4711()
> quit
Exiting.
Pike v7.0 release 312 running Hilfe v2.0 (Incremental Pike Frontend)
> Sql.sql( "mysql://foo:bar@localhost/roxen" );
Mysql.mysql(): Couldn't reconnect to SQL-server
Access denied for user: 'foo@localhost' (Using password: YES)
lib/modules/Sql.pmod/mysql.pike:
create("Mysql.mysql(): Couldn't reconnect to SQL-server\nAccess denied
for
user: 'foo@localhost' (Using
p"+[15],({({"/web/pike/7.0.312/lib/master.pi
```
ke",1107,/master._main,({"bin/pike"}),,,0}),({0,0,Hilfe.StdinHilfe}),,,8})
```
)
lib/modules/Sql.pmod/sql.pike:211: create("localhost","roxen","foo","bar")
-:1: ___Foo4711()
```
bash-2.03$ mysql mysql
ERROR 1044: Access denied for user: '@localhost' to database 'mysql'Pike 7.0https://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/1555GLUT doesn't compile (?)2009-04-16T14:11:39ZPeter BortasGLUT doesn't compile (?)Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1555
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
echo /home/mirar/pike/tsunami/smartlink gcc -I.
-I/home/mirar/pike/src/post_modules/GLUT
-I/home/mi...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1555
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
echo /home/mirar/pike/tsunami/smartlink gcc -I.
-I/home/mirar/pike/src/post_modules/GLUT
-I/home/mirar/pike/src/post_modules/GLUT/../.. -I../.. -I. -g -mcpu=i686
-march=i686 -I/usr/X11R6/include -g -mcpu=i686 -march=i686 -g -mcpu=i686
-march=i686 -I/usr/X11R6/include -W -Wall -Wno-unused -Wcomment -Wformat
-Wimplicit-function-declaration -Wmultichar -Wswitch -Wuninitialized
-Wpointer-arith -Wchar-subscripts -Wno-long-long -fPIC -DDYNAMIC_MODULE -g
-mcpu=i686 -march=i686 -I/usr/X11R6/include -g -mcpu=i686 -march=i686 -c
/home/mirar/pike/src/post_modules/GLUT/top.c -o top.o
cc1: warning: -Wuninitialized is not supported without -O
/home/mirar/pike/src/post_modules/GLUT/top.c:24:21: GL/glut.h: No such file
or directory
make[3]: *** [top.o] Error 1
make[3]: Leaving directory `/home/mirar/pike/tsunami/post_modules/GLUT'
make[2]: *** [GLUT] Error 2
make[2]: Leaving directory `/home/mirar/pike/tsunami/post_modules'
make[1]: *** [post_modules] Error 1
make[1]: Leaving directory `/home/mirar/pike/tsunami'
make: *** [all] Error 2
```
There is no GL/glut.h anywhere on my system. Maybe GLUT shouldn't try to
compile at all? Maybe GL shouldn't compile at all?
tsunami% ls /usr/include/GL/
GLwDrawA.h GLwMDrawA.h gl.h glx.h glxtokens.h
GLwDrawAP.h GLwMDrawAP.h glext.h glxint.h osmesa.hPike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1546Fatal when trying to use typedefs2009-04-16T14:11:39ZPeter BortasFatal when trying to use typedefsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1546
Reported by Martin Stjernholm <mast@roxen.com>
Tried to use typedefs in a pike module in Roxen 2.2 with Pike 7.2 but it
doesn't seem to work too well with the progra...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1546
Reported by Martin Stjernholm <mast@roxen.com>
Tried to use typedefs in a pike module in Roxen 2.2 with Pike 7.2 but it
doesn't seem to work too well with the program dumping:
```
/home/mast/Pike/7.2/src/encode.c:274: Fatal error:
error in type string.
```
The part of the backtrace that seems relevant:
```
/.../
#8 0x80b5f43 in debug_fatal () at /home/mast/Pike/7.2/src/error.c:523
#9 0x80a7561 in encode_type (t=0x82dc558 "\a", data=0x80460d0)
at /home/mast/Pike/7.2/src/encode.c:274
#10 0x80a9b76 in encode_value2_ (val=0xdf997120, data=0x80460d0)
at /home/mast/Pike/7.2/src/encode.c:691
#11 0x80aa0c2 in f_encode_value (args=2) at
/home/mast/Pike/7.2/src/encode.c:744
#12 0x808352b in mega_apply (type=APPLY_SVALUE, args=2, arg1=0x8318ca4,
arg2=0x0)
at /home/mast/Pike/7.2/src/interpret.c:995
/.../
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1527TTF library causes core dump on Irix2009-04-16T14:11:39ZPeter BortasTTF library causes core dump on IrixImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1527
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Pike 7.0 compiled by cc on Irix makes the TTF library dump core:
```
$ make run_hilfe
Pik...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1527
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Pike 7.0 compiled by cc on Irix makes the TTF library dump core:
```
$ make run_hilfe
Pike v7.0 release 330 running Hilfe v2.0 (Incremental Pike Frontend)
> indices(_Image_TTF);
make: *** [run_hilfe] Segmentation fault (core dumped)
```
(gcc doesn't work either, see [bug #1145].)Pike 7.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1523SIGFPE in _OtsRemainder64Unsigned () from /usr/shlib/libc.so2020-02-29T18:00:13ZPeter BortasSIGFPE in _OtsRemainder64Unsigned () from /usr/shlib/libc.soImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1523
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Attempting to view index.html in a newly created Demolabs configuration
yields:
: -...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1523
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
Attempting to view index.html in a newly created Demolabs configuration
yields:
: -- Total boot time 113.1 seconds ---------------------------
:
13:01:52 : ** 2001-04-12 13:01 pid: 13507 ppid: 8624 uid: noring
1m53.1s :
```
Program received signal SIGFPE, Arithmetic exception.
0x3ff814b70f0 in _OtsRemainder64Unsigned () from /usr/shlib/libc.so
(gdb) bt
#0 0x3ff814b70f0 in _OtsRemainder64Unsigned () from /usr/shlib/libc.so
#1 0x3ff814a70dc in __divq () from /usr/shlib/libc.so
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x3000280735c
This warning occurs if you are debugging a function without any symbols
(for example, in a stripped executable). In that case, you may wish to
increase the size of the search with the `set heuristic-fence-post'
command.
```
Otherwise, you told GDB there was a function where there isn't one, or
(more likely) you have encountered a bug in GDB.
Running with -t2:
```
- ttf.pike: 56: 140871740->__lambda_66069_0("nfonts/32/lucida/CVS")
- ttf.pike: 47: 14059bd00->r_get_dir("nfonts/32/lucida/CVS")
- roxenloader.pike:1093: 14059bd00->roxen_path("nfonts/32/lucida/CVS")
- roxenloader.pike:1069: 14059bd00->roxen_version()
- Return: "2.1.243"
- roxenloader.pike:1070: 140574280->getenv("LOCALDIR")
- Return: 0
- Return: ({ /* 2 elements */
"$VARDIR/2.1.243",
"../local"
})
- Return: "nfonts/32/lucida/CVS"
- roxenloader.pike:1074: 1406cc280->query("logdirprefix")
- roxenloader.pike:1074: 140842a00->query()
- Return: 1
- roxenloader.pike:1074: 140842a00->default_value()
- Return: "../logs/"
- Return: "nfonts/32/lucida/CVS"
- roxenloader.pike:1078: 140574280->getenv("VARDIR")
- Return: 0
- Return: "nfonts/32/lucida/CVS"
- Return: "nfonts/32/lucida/CVS"
- Return: ({ /* 3 elements */
"Root",
"Repository",
"Entries"
})
- Return: "nfonts/32/lucida/CVS/Root"
- Return: ({ /* 7 elements */
33204,
5,
987067381,
986999928,
987067403,
6549,
6549
})
- Return: "nfonts/32/lucida/CVS/Root"
- ttf.pike: 62: 1405aba40->`()("nfonts/32/lucida/CVS/Root")
- Return: "nfonts/32/lucida/CVS/Repository"
- Return: ({ /* 7 elements */
33204,
39,
987067381,
986999928,
987067403,
6549,
6549
})
- Return: "nfonts/32/lucida/CVS/Repository"
- ttf.pike: 62: 1405aba40->`()("nfonts/32/lucida/CVS/Repository")
- Return: "nfonts/32/lucida/CVS/Entries"
- Return: ({ /* 7 elements */
33204,
142,
987067381,
986999928,
987067403,
6549,
6549
})
- Return: "nfonts/32/lucida/CVS/Entries"
- ttf.pike: 62: 1405aba40->`()("nfonts/32/lucida/CVS/Entries")
- Return: 0
- Return: "nfonts/32/lucida/bi"
- Return: ({ /* 7 elements */
33204,
165488,
987067381,
950194310,
987067403,
6549,
6549
})
- Return: "nfonts/32/lucida/bi"
- ttf.pike: 62: 1405aba40->`()("nfonts/32/lucida/bi")
- Return: "nfonts/32/lucida/bn"
- Return: ({ /* 7 elements */
33204,
142344,
987067381,
950194312,
987067404,
6549,
6549
})
- Return: "nfonts/32/lucida/bn"
- ttf.pike: 62: 1405aba40->`()("nfonts/32/lucida/bn")
- Return: "nfonts/32/lucida/ni"
- Return: ({ /* 7 elements */
33204,
148540,
987067381,
950194313,
987067404,
6549,
6549
})
- Return: "nfonts/32/lucida/ni"
- ttf.pike: 62: 1405aba40->`()("nfonts/32/lucida/ni")
- Return: "nfonts/32/lucida/nn"
- Return: ({ /* 7 elements */
33204,
125284,
987067381,
950194315,
987067404,
6549,
6549
})
- Return: "nfonts/32/lucida/nn"
- ttf.pike: 62: 1405aba40->`()("nfonts/32/lucida/nn")
- Return: 0
- Return: 0
- Return: 0
- Return: ({ /* 2 elements */
0,
0
})
- Return: 0
- Return: ({ /* 1 element */
"nn"
})
- Return: (< /* 1 element */
"nn"
>)
- Return: "nn"
- Return: "quadrangle"
- Return: "quadrangle"
- ttf.pike: 230: 1405aba40->`()("nfonts/Quadrang.ttf")
- Return: object
- ttf.pike: 231: 1410a3600->`()()
- -: 0: 14107af20->create(object)
```
Program received signal SIGFPE, Arithmetic exception.
0x3ff814b70f0 in _OtsRemainder64Unsigned () from /usr/shlib/libc.so
(gdb)Pike 7.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1518close() can cause errors to be thrown in destruct_objects_to_destruct().2009-04-16T14:11:39ZPeter Bortasclose() can cause errors to be thrown in destruct_objects_to_destruct().Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1518
Reported by @grubba
```
NFS write error on host home.roxen.com: 52.
Failed to close file: Missing file or filesystem
module.Fd: close("rw")
module.File: Stdio.File("...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1518
Reported by @grubba
```
NFS write error on host home.roxen.com: 52.
Failed to close file: Missing file or filesystem
module.Fd: close("rw")
module.File: Stdio.File("/home/build/autobuild/flags/aix-0-ia64.active",
"cwt", 777 /* fd=8 */)->close()
/home/build/autobuild/pikes/aix5l_ia64/pike/7.2.30/lib/modules/Stdio.pmod/module.pmod:313303:
Stdio.File("/home/build/autobuild/flags/aix-0-ia64.active", "cwt", 777 /*
fd=8 */)->close(0)
/home/build/autobuild/clients/base.pike:704155: flag_activity("Build
pike7.2-20010411160207.tar")
/home/build/autobuild/clients/base.pike:87:
init_make("pike7.2-20010411160207.tar")
/home/build/autobuild/clients/no_export.pike:5:
make("pike7.2-20010411160207.tar")
/home/build/autobuild/clients/base.pike:1516333:
main(2,({"/home/build/autobuild/clients/no_export.pike","build_dir=/export/autobuild/"}))
Shouldn't get an exception in destruct_objects_to_destruct.
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1505Compilation of language.c in dists will fail if a different version of bison ...2009-04-16T14:11:39ZPeter BortasCompilation of language.c in dists will fail if a different version of bison is installed.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1505
Reported by @grubba
A pregenerated language.c is supplied in Pike dists.
In language.yacc there's a prototype for __yy_memcpy(), which uses a
configured value to get...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1505
Reported by @grubba
A pregenerated language.c is supplied in Pike dists.
In language.yacc there's a prototype for __yy_memcpy(), which uses a
configured value to get the proper type for the last argument.
If bison has ben installed on the target platform this configured type
may be different from the one in language.c. The file will then fail to
compile.
Workaround:
Delete the supplied language.c, and let it be regenerated.Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1503FILE.gets() can get in invalid state2009-04-16T14:11:39ZPeter BortasFILE.gets() can get in invalid stateImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1503
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
Somehow, cached_lines can be something other then ({}),
```
mailing: setik@usinternet.com
Bad argumen...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1503
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
Somehow, cached_lines can be something other then ({}),
```
mailing: setik@usinternet.com
Bad argument 1 to sizeof().
/usr/local/pike/mirar/pike/7.3.2/lib/modules/Stdio.pmod/module.pmod:1051:
gets()
/usr/local/pike/mirar/pike/7.3.2/lib/modules/Protocols.pmod/NNTP.pmod:16:
readreturncode()
/usr/local/pike/mirar/pike/7.3.2/lib/modules/Stdio.pmod/module.pmod:1219:
__INIT()
/usr/local/pike/mirar/pike/7.3.2/lib/modules/Protocols.pmod/NNTP.pmod:75:
__INIT()
/usr/local/pike/mirar/pike/7.3.2/lib/modules/Protocols.pmod/SMTP.pmod:7:
__INIT()
/usr/local/pike/mirar/pike/7.3.2/lib/modules/Protocols.pmod/SMTP.pmod:122:
```
__INIT()
SMTP: client("elfwood.lysator.liu.se")
```
string gets()
{
1051: if( sizeof( cached_lines ) > lp+1 )
{
string r = cached_lines[ lp++ ];
```
I currently do not have more clues.
This bugreport is to remember that the problem exists
(if it repeat itself) or if someone happen to spot the
error.Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1476Undeclared entity error disappears in XML parser2009-04-16T14:11:39ZPeter BortasUndeclared entity error disappears in XML parserImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1476
Reported by @marcus
If an undeclared or external entity reference appears in the default valyue
of an <!ATTLIST> declaration, and the callback does not provide a val...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1476
Reported by @marcus
If an undeclared or external entity reference appears in the default valyue
of an <!ATTLIST> declaration, and the callback does not provide a value for
it, the default value entry is absent from the resulting array, and there
is no error message either.
```
Pike v7.3 release 4 running Hilfe v2.0 (Incremental Pike Frontend)
> Parser.XML.Simple()->parse("<!DOCTYPE x [<!ATTLIST a b CDATA '&c;'>]>",
lambda(mixed ... args){werror("%O", args);});
({ /* 5 elements */
"&",
"c",
([ /* 1 element */
"in_attribute":1
]),
0,
([ /* 1 element */
"location":37
])
})({ /* 5 elements */
"<!ATTLIST",
"a",
([ /* 1 element */
"b":({ /* 2 elements */
({ /* 1 element */
"CDATA"
}),
({ /* 1 element */
""
})
})
]),
0,
([ /* 1 element */
"location":39
])
})({ /* 5 elements */
"<!DOCTYPE",
"x",
([ ]),
({ }),
([ /* 1 element */
"location":41
])
})Result: ({ })
>
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1469parse_dtd function in XML parser loses extra argument2009-04-16T14:11:39ZPeter Bortasparse_dtd function in XML parser loses extra argumentImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1469
Reported by @marcus
If parse_dtd detects a PE reference, and the callback doesn't provide a
value of the PE, the error is deliviered to the callback with incorrect
e...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1469
Reported by @marcus
If parse_dtd detects a PE reference, and the callback doesn't provide a
value of the PE, the error is deliviered to the callback with incorrect
extra arguments (note how the 3 turns into "error"):
```
Pike v7.2 release 26 running Hilfe v2.0 (Incremental Pike Frontend)
> Parser.XML.Simple()->parse_dtd("%hej;\n", lambda(mixed ...
args){werror("%O\n", args);}, 1, 2, 3);
({ /* 8 elements */
"%",
"hej",
([ /* 1 element */
"in_attribute":0
]),
0,
([ /* 1 element */
"location":5
]),
1,
2,
3
})
({ /* 8 elements */
"error",
0,
0,
"No such entity.",
([ /* 1 element */
"location":5
]),
1,
2,
"error"
})
/home/marcus/pike/src/modules/spider/xml.c:2233: Fatal error:
Stack underflow.
Attempting to dump backlog (may fail)...
Backtrace at time of fatal:
/home/marcus/pike/lib/modules/Parser.pmod/XML.pmod/Simple.pike:
parse_dtd("%hej;\n",__lambda_65625_0,1,2,"Backtrace at time of
fatal:\n")
-:1: ___Foo4711()
/home/marcus/pike/lib/modules/Tools.pmod/Hilfe.pmod:103:
do_evaluate("mixed ___Foo4711() { return
(mixed)(Parser.XML.Simple()->pars
e_dtd(\"%hej;\\n\", lambda(mixed ... args){werror(\"%O\\n\", args);},
1, 2
, 3));
}\n",1)
/home/marcus/pike/lib/modules/Tools.pmod/Hilfe.pmod:603:
parse_statement("Parser.XML.Simple()->parse_dtd(\"%hej;\\n\",
lambda(mixed
... args){werror(\"%O\\n\", args);}, 1, 2,
3);")
/home/marcus/pike/lib/modules/Tools.pmod/Hilfe.pmod:381: do_parse()
/home/marcus/pike/lib/modules/Tools.pmod/Hilfe.pmod:224:
add_buffer("Parser.XML.Simple()->parse_dtd(\"%hej;\\n\", lambda(mixed
...
args){werror(\"%O\\n\", args);}, 1, 2,
3);\n")
/home/marcus/pike/lib/modules/Tools.pmod/Hilfe.pmod:623:
add_input_line("Parser.XML.Simple()->parse_dtd(\"%hej;\\n\",
lambda(mixed
... args){werror(\"%O\\n\", args);}, 1, 2,
3);\n")
/home/marcus/pike/lib/modules/Tools.pmod/Hilfe.pmod:703: create()
Hilfe: StdinHilfe()
/home/marcus/pike/bin/hilfe:5: main(1,({"/home/marcus/pike/bin/hilfe"}))
make: *** [run_hilfe] Abort (core dumped)
```Pike 7.2