pike issueshttps://git.lysator.liu.se/pikelang/pike/-/issues2015-03-31T15:55:44Zhttps://git.lysator.liu.se/pikelang/pike/-/issues/3084Encode and decode with TIFF not identity operation on 64 bit machines2015-03-31T15:55:44ZPeter BortasEncode and decode with TIFF not identity operation on 64 bit machinesImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3084
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
testsuite.in.in:717: Test 60 (shift 2) (CRNL) failed.
1: mixed a(){
2: # 1 "-"
3:
4:
5: #718 ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3084
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
testsuite.in.in:717: Test 60 (shift 2) (CRNL) failed.
1: mixed a(){
2: # 1 "-"
3:
4:
5: #718 "testsuite.in.in"
6: #if constant(Image.TIFF.encode)
7: object img=Image.Image(100,100)->test(43);
8: if (Image.TIFF.decode(Image.TIFF.encode(img))!=img) do {
werror("failure; Image.Image/encoding/decoding/Image.TIFF.encode/decode :
"+( "differ" )+"\n"); return 0; } while (0);
9: #else
10: werror(" (Image.TIFF not available) ");
11: #endif
12: return 1;
13:
14: }
15: mixed b() { return 1; }
o->a(): 0
o->b(): 1
```Pike 7.4https://git.lysator.liu.se/pikelang/pike/-/issues/2776Error: Indexing the NULL value with "type".2015-03-31T15:42:55ZPeter BortasError: Indexing the NULL value with "type".Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2776
Reported by @grubba
```
From: Olaf van Zandwijk <olaf@scintilla.utwente.nl>
To: "roxen@roxen.com" <roxen@roxen.com>
Date: Sun, 17 Feb 2002 16:03:56 +0100
Subject: Er...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2776
Reported by @grubba
```
From: Olaf van Zandwijk <olaf@scintilla.utwente.nl>
To: "roxen@roxen.com" <roxen@roxen.com>
Date: Sun, 17 Feb 2002 16:03:56 +0100
Subject: Error: Indexing the NULL value with "type".
```
Hello,
I've got an error in a rxml page, and I can't figure out why.
I request a page "bewoner.rxml?room=106". This gives me the backtrace
below.
When I don't give the 'room' argument, the RXML backtrace is '<else>'
instead
of '<if variable="form.room">'
What is the possible cause of a 'Indexing the NULL value with "type".'
error?
\Olaf
== Backtrace ==
Roxen version: Roxen/2.2.252
Pike version: Pike v7.2 release 259
Requested URL: /bewoner.rxml?room=106
```
Error: Indexing the NULL value with "type".
RXML frame backtrace:
| <if variable="form.room">
modules/database/sqltag.pike (version 1.96):264: __lambda_66537_0(0)
modules/database/sqltag.pike (version 1.96):270: really_get_row()
base_server/emit_object.pike:61: get_row()
modules/tags/rxmltags.pike (version 1.336):3613:
RXML.Frame(emit)->object_iterate(@0=RequestID())
etc/modules/RXML.pmod/module.pmod (version 1.259):3794:
RXML.Frame(emit)->_eval(@1=RXML.Context,@2=RXML.PXml(RXML.t_html(xml),RXML.TagSe
t(Marsupilami,rxml_tag_set)),@3=RXML.t_html(xml))
etc/modules/RXML.pmod/module.pmod (version 1.259):476:
RXML.Tag(emit)->_p_xml_handle_tag(@2,mapping[3],"\n\n<h4>&sql.voorn"+[3769]+"</t
r>\n</table>\n\n")
etc/modules/RXML.pmod/PXml.pike:
RXML.PXml(RXML.t_html(xml),RXML.TagSet(Marsupilami,rxml_tag_set))->finish("\n<em
it source=\"s"+[4004]+"table>\n\n</emit>\n")
etc/modules/RXML.pmod/PXml.pike (version 1.62):380:
RXML.PXml(RXML.t_html(xml),RXML.TagSet(Marsupilami,rxml_tag_set))->finish("\n<em
it source=\"s"+[4004]+"table>\n\n</emit>\n")
etc/modules/RXML.pmod/module.pmod (version 1.259):3862:
RXML.Frame(if)->_eval(@1,@4=RXML.PXml(RXML.t_html(xml),RXML.TagSet(Marsupilami,r
xml_tag_set)),@3)
etc/modules/RXML.pmod/module.pmod (version 1.259):476:
RXML.Tag(emit)->_p_xml_handle_tag(@2,mapping[3],"\n\n<h4>&sql.voorn"+[3769]+"</t
r>\n</table>\n\n")
etc/modules/RXML.pmod/PXml.pike:
RXML.PXml(RXML.t_html(xml),RXML.TagSet(Marsupilami,rxml_tag_set))->finish("<!DOC
TYPE HTML P"+[5495]+"</body>\n</html>\n")
etc/modules/RXML.pmod/PXml.pike (version 1.62):380:
RXML.PXml(RXML.t_html(xml),RXML.TagSet(Marsupilami,rxml_tag_set))->finish("<!DOC
TYPE HTML P"+[5495]+"</body>\n</html>\n")
etc/modules/RXML.pmod/module.pmod (version 1.259):4576:
RXML.PXml(RXML.t_html(xml),RXML.TagSet(Marsupilami,rxml_tag_set))->write_end("<!
DOCTYPE HTML P"+[5495]+"</body>\n</html>\n")
modules/tags/rxmlparse.pike (version 1.68):170:
RoxenModule(Marsupilami/rxmlparse#0)->handle_file_extension(Stdio.File("/www/htm
l/marsupilami/bewoner.rxml", "r", 666 /* fd=23 */),"rxml",@0)
base_server/configuration.pike (version 1.495):1606:
Configuration(Marsupilami)->low_get_file(@0,0)
base_server/configuration.pike (version 1.495):1707:
Configuration(Marsupilami)->get_file(@0,0,0)
base_server/configuration.pike (version 1.495):1675:
Configuration(Marsupilami)->handle_request(@0)
protocols/http.pike (version 1.349):1907: RequestID()->handle_request()
protocols/http.pike (version 1.349):2222: RequestID()->got_data(0,"GET
/bewoner.rxm"+[486]+"mi/menu.rxml\r\n\r\n")
pike/lib/pike/modules/Stdio.pmod/module.pmod (version 1.114):683:
Stdio.File("socket", "192.168.1.5 3721", 777 /* fd=35
*/)->__stdio_read_callback()
Request data:
GET /bewoner.rxml?room=106 HTTP/1.1
Host: marsupilami
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4)
Gecko/20011128 Netscape6/6.2.1
Accept: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9,
image/png, image/jpeg, image/gif;q=0.2, text/plain;q=0.8, text/css,
*/*;q=0.1
Accept-Language: en-us
Accept-Encoding: gzip, deflate, compress;q=0.9
Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66
Keep-Alive: 300
Connection: keep-alive
Referer: http://marsupilami/menu.rxml
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/6285DNS.async_client fails on windows2015-03-31T14:51:20ZPeter BortasDNS.async_client fails on windowsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=6285
Reported by Martin Stjernholm <mast@roxen.com>
Seen during site creation:
```
: Internal server error: Cannot call functions in destructed objects.
Unknow...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=6285
Reported by Martin Stjernholm <mast@roxen.com>
Seen during site creation:
```
: Internal server error: Cannot call functions in destructed objects.
Unknown program: destructed object->function()
C:/Program Files (x86)/Roxen Internet Software/Roxen CMS/server-5.2.187/pike/lib/modules/Protocols.pmod/HTTP.pmod/Query.pike (4893bd35):334: unknown function(0,80)
C:/Program Files (x86)/Roxen Internet Software/Roxen CMS/server-5.2.187/pike/lib/modules/Protocols.pmod/HTTP.pmod/Query.pike (4893bd35):461: unknown function("www.roxen.com",0,function)
C:/Program Files (x86)/Roxen Internet Software/Roxen CMS/server-5.2.187/pike/lib/modules/Protocols.pmod/DNS.pmod (9a6231d3):1541: Protocols.DNS.async_client()->generic_get("www.roxen.com",0,-1,0,1,"a","www.roxen.com",function,function,80)
C:/Program Files (x86)/Roxen Internet Software/Roxen CMS/server-5.2.187/pike/lib/modules/Protocols.pmod/DNS.pmod (9a6231d3):1454: Protocols.DNS.async_client()->remove(Protocols.DNS.async_client()->Request())
C:/Program Files (x86)/Roxen Internet Software/Roxen CMS/server-5.2.187/pike/lib/modules/Protocols.pmod/DNS.pmod (9a6231d3):1620: Protocols.DNS.async_client()->close()
C:/Program Files (x86)/Roxen Internet Software/Roxen CMS/server-5.2.187/pike/lib/modules/Protocols.pmod/HTTP.pmod/Query.pike (4893bd35):447: unknown function()
C:/Program Files (x86)/Roxen Internet Software/Roxen CMS/server-5.2.187/base_server/roxenloader.pike (rev 1.475):246: 0->`()()
-:1: Pike.Backend(0)->`()(3600.0)
Internal server error: UDP: not open
-:1: Protocols.DNS.async_client()->send("127.0.0.1",53,"º\1\0\0\1\0\0\0\0\0\0\3www\5roxen\3com\0\0\1\0\1")
C:/Program Files (x86)/Roxen Internet Software/Roxen CMS/server-5.2.187/pike/lib/modules/Protocols.pmod/DNS.pmod (9a6231d3):1471: Protocols.DNS.async_client()->retry(Protocols.DNS.async_client()->Request(),0)
C:/Program Files (x86)/Roxen Internet Software/Roxen CMS/server-5.2.187/base_server/roxenloader.pike (rev 1.475):246: Protocols.DNS.async_client()->retry->`()(@0=Protocols.DNS.async_client()->Request(),1)
-:1: Pike.Backend(0)->`()(3600.0)
```Pike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/6601JPEG module assumes markers are unique2015-03-31T12:04:20ZPeter BortasJPEG module assumes markers are uniqueImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=6601
Reported by Jonas Wallden <jonasw@roxen.com>
API calls involving JPEG markers assume that a marker can only occur once per image. This assumption is incorrect and le...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=6601
Reported by Jonas Wallden <jonasw@roxen.com>
API calls involving JPEG markers assume that a marker can only occur once per image. This assumption is incorrect and leads to random hiding of valuable data, e.g. XMP metadata which is tagged with the same APP1 tag as Exif.
A slightly patched image_jpeg.c logs the following marker sequence for a sample image:
```
> Image.JPEG.decode_header(Stdio.read_bytes("/home/jonasw/Desktop/xmp-ok.jpg"));
MARKER: 226
MARKER: 254
MARKER: 254
MARKER: 237
MARKER: 225
MARKER: 225
MARKER: 238
```Pike 8.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/4868Sporadic crashes in opcode_F_ARROW2015-03-30T18:01:32ZPeter BortasSporadic crashes in opcode_F_ARROWImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4868
Reported by Jonas Wallden <jonasw@roxen.com>
This is a Pike on OS X/PPC problem that's been observed repeatedly over a long period of time in 7.8. It's happening dur...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4868
Reported by Jonas Wallden <jonasw@roxen.com>
This is a Pike on OS X/PPC problem that's been observed repeatedly over a long period of time in 7.8. It's happening during startup of Roxen CMS and normally disappears on next restart.
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x0000001e
```
Thread 0 Crashed:
0 <<00000000>> 0x03000df8 0 + 50335224
1 roxen 0x0001c5dc mega_apply + 192 (interpret.c:2218)
2 roxen 0x000dd05c object_index_no_free + 320 (object.c:1374)
3 roxen 0x00016368 opcode_F_ARROW + 104 (interpret_functions.h:1842)
4 <<00000000>> 0x03001a30 0 + 50338352
5 roxen 0x0001f860 apply_low_safe_and_stupid + 820 (interpret.c:2404)
6 roxen 0x0014e19c eval_low + 256 (las.c:5270)
7 roxen 0x00157fd8 optimize + 1956 (las.c:1988)
8 roxen 0x0015ed6c dooptcode + 132 (las.c:5196)
9 roxen 0x00005f6c yyparse + 9396 (language.yacc:1087)
10 roxen 0x001047dc run_pass2 + 736 (program.c:3628)
11 roxen 0x00106490 f_compilation_compile + 824 (program.c:8563)
12 roxen 0x0001b2f8 low_mega_apply + 2244 (apply_low.h:388)
13 roxen 0x0001c5c4 mega_apply + 168 (interpret.c:2211)
14 roxen 0x000eff2c f_compilation_env_compile + 124 (program.c:7677)
15 roxen 0x0001b2f8 low_mega_apply + 2244 (apply_low.h:388)
16 roxen 0x0001c5c4 mega_apply + 168 (interpret.c:2211)
17 <<00000000>> 0x01297c2c 0 + 19495980
18 roxen 0x000186f0 catching_eval_instruction + 160 (interpret.c:2246)
19 roxen 0x0001fb5c jump_opcode_F_CATCH + 412 (interpret_functions.h:1287)
20 <<00000000>> 0x007fe6bc 0 + 8382140
21 roxen 0x0001c5dc mega_apply + 192 (interpret.c:2218)
22 roxen 0x0014743c svalue_is_true + 308 (svalue.c:550)
23 roxen 0x00013c50 test_opcode_F_BRANCH_WHEN_ZERO + 96 (interpret_functions.h:1118)
24 <<00000000>> 0x010ea894 0 + 17737876
25 roxen 0x0001c5dc mega_apply + 192 (interpret.c:2218)
26 roxen 0x000dd05c object_index_no_free + 320 (object.c:1374)
27 <<00000000>> 0x010ed240 0 + 17748544
28 roxen 0x0001c5dc mega_apply + 192 (interpret.c:2218)
29 roxen 0x000dd05c object_index_no_free + 320 (object.c:1374)
30 roxen 0x000ebdf4 f_index + 132 (operators.c:181)
31 roxen 0x00154628 index_node + 1204 (las.c:1672)
32 roxen 0x0000c548 yyparse + 35472 (language.yacc:3897)
33 roxen 0x00105e84 run_pass1 + 912 (program.c:8030)
34 roxen 0x00106404 f_compilation_compile + 684 (program.c:8542)
35 roxen 0x0001b2f8 low_mega_apply + 2244 (apply_low.h:388)
36 roxen 0x0001c5c4 mega_apply + 168 (interpret.c:2211)
37 roxen 0x000eff2c f_compilation_env_compile + 124 (program.c:7677)
38 roxen 0x0001b2f8 low_mega_apply + 2244 (apply_low.h:388)
39 roxen 0x0001c5c4 mega_apply + 168 (interpret.c:2211)
40 <<00000000>> 0x01299658 0 + 19502680
41 roxen 0x000186f0 catching_eval_instruction + 160 (interpret.c:2246)
42 roxen 0x0001fb5c jump_opcode_F_CATCH + 412 (interpret_functions.h:1287)
43 <<00000000>> 0x021d7f00 0 + 35487488
44 roxen 0x0001c5dc mega_apply + 192 (interpret.c:2218)
45 roxen 0x000e6f90 o_cast + 2148 (operators.c:687)
46 roxen 0x000e7ac4 f_cast + 72 (operators.c:913)
47 <<00000000>> 0x02a39628 0 + 44275240
48 roxen 0x000186f0 catching_eval_instruction + 160 (interpret.c:2246)
49 roxen 0x0001fb5c jump_opcode_F_CATCH + 412 (interpret_functions.h:1287)
50 <<00000000>> 0x021bd72c 0 + 35378988
51 roxen 0x0001c5dc mega_apply + 192 (interpret.c:2218)
52 roxen 0x00053e8c backend_do_call_outs + 1024 (backend.cmod:876)
53 roxen 0x00055ee0 f_PollDeviceBackend_cq__backtick_28_29 + 1780 (backend.cmod:3406)
54 roxen 0x0001b2f8 low_mega_apply + 2244 (apply_low.h:388)
55 roxen 0x0001edb4 jump_opcode_F_CALL_FUNCTION_AND_POP + 100 (interpret_functions.h:2068)
56 <<00000000>> 0x012ab138 0 + 19575096
57 roxen 0x000186f0 catching_eval_instruction + 160 (interpret.c:2246)
58 roxen 0x0001fb5c jump_opcode_F_CATCH + 412 (interpret_functions.h:1287)
59 <<00000000>> 0x012a9d90 0 + 19570064
60 roxen 0x0001c5dc mega_apply + 192 (interpret.c:2218)
61 roxen 0x00002d04 main + 3096 (main.c:621)
62 roxen 0x00001d0c _start + 760
63 roxen 0x00001a10 start + 48
```
Thread 0 crashed with PPC Thread State 64:
srr0: 0x0000000003000df8 srr1: 0x100000000200f030 vrsave: 0x0000000000000000
cr: 0x42008444 xer: 0x0000000000000000 lr: 0x000000000000f3d0 ctr: 0x0000000003000df4
r0: 0x000000000001c5dc r1: 0x00000000bfff6df0 r2: 0x0000000000294660 r3: 0x0000000003000df4
r4: 0x00000000000000dc r5: 0x00000000000186a0 r6: 0x0000000000000006 r7: 0x0000000000000000
r8: 0x0000000000294660 r9: 0x0000000000294660 r10: 0x0000000000000013 r11: 0x000000000000000a
r12: 0x0000000000000012 r13: 0x000000000000011a r14: 0x0000000000000000 r15: 0x0000000000294660
r16: 0x00000000002ace14 r17: 0x0000000000000018 r18: 0x00000000ffffffff r19: 0x0000000001817ed0
r20: 0x0000000000000000 r21: 0x0000000000000000 r22: 0x0000000000000449 r23: 0x0000000001e0add8
r24: 0x0000000000000008 r25: 0x0000000000000000 r26: 0x0000000000000016 r27: 0x0000000001d8c9d8
r28: 0x00000000bfff6f50 r29: 0x0000000000294660 r30: 0x0000000003000df4 r31: 0x000000000000f3d0
The corresponding startup log for Roxen says:
Enabling all modules for Test Platform...
Start script terminating.
For historical reference, this is the crash I caught back in Sept 2008 (from InfoKOM 629415). The topmost stack frames are a bit different but opcode_F_ARROW and below is more or less identical:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000048bbc606
Crashed Thread: 0
```
Thread 0 Crashed:
0 ??? 0x023fb9d8 0 + 37730776
1 pike 0x00016a6c opcode_F_ARROW + 100 (interpret_functions.h:1843)
2 pike 0x0001f8f4 apply_low_safe_and_stupid + 816 (interpret.c:2391)
3 pike 0x0014ac54 eval_low + 252 (las.c:5270)
4 pike 0x00154ac0 optimize + 1976 (las.c:1989)
5 pike 0x0015b84c dooptcode + 128 (las.c:5196)
6 pike 0x000068e8 yyparse + 9408 (language.yacc:1080)
7 pike 0x00101a40 run_pass2 + 732 (program.c:8011)
8 pike 0x001036f4 f_compilation_compile + 820 (program.c:8474)
9 pike 0x0001b494 low_mega_apply + 2104 (apply_low.h:225)
10 pike 0x0001c67c mega_apply + 164 (interpret.c:2201)
11 pike 0x000ed3d8 f_compilation_env_compile + 120 (program.c:7589)
12 pike 0x0001b494 low_mega_apply + 2104 (apply_low.h:225)
13 pike 0x0001c67c mega_apply + 164 (interpret.c:2201)
14 ??? 0x0067cc28 0 + 6802472
15 pike 0x00018a20 catching_eval_instruction + 96 (interpret.c:2233)
16 pike 0x0001fc20 jump_opcode_F_CATCH + 456 (interpret_functions.h:1287)
[...]
```Pike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/7427Address Sanitizer, Undefined Behaviour Sanitizer report2015-03-30T17:53:44ZPeter BortasAddress Sanitizer, Undefined Behaviour Sanitizer reportImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7427
Reported by <t@sharklasers.com>
Compiling the source of the 7.8.886 release with gcc's
-fsanitize=address -fsanitize=leak -fsanitize=undefined
and running the ver...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7427
Reported by <t@sharklasers.com>
Compiling the source of the 7.8.886 release with gcc's
-fsanitize=address -fsanitize=leak -fsanitize=undefined
and running the verbose_verify target has reported a possible address error and various possible signed integer overflow errors.
A cleaned up version of the report is attached. Duplicates have not been removed, as frequency of occurrence might be of interest.Pike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/3917FreeBSD 5.X and threads2015-03-27T17:59:04ZPeter BortasFreeBSD 5.X and threadsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3917
Reported by Xavier Beaudouin, Xavier Beaudouin <kiwi@oav.net>
Test 1379 on dan.emsphone.com is show this bug.
Sometimes on some programs (eg for example Caudium) thi...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3917
Reported by Xavier Beaudouin, Xavier Beaudouin <kiwi@oav.net>
Test 1379 on dan.emsphone.com is show this bug.
Sometimes on some programs (eg for example Caudium) this bugs appears and is killing pike.
This bug has been on Pike since pike 7.4 and should be fixed to get pike working on FreeBSD 5.x
branch.
1300: ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++
1350: ++++++++++ ++++++++++ +++++++++Wait thread: waitpid returned error: 0
+ ++++++++++ ++++++++++
All threaded software run smothly on FreeBSD 5.3 with KSE without any pain. Pike is is only one that
have this bug.Pike 7.6Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/3676Deadly lock2015-03-27T17:57:28ZPeter BortasDeadly lockImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3676
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
```
(gdb) info threads
20 Thread 11 0xff3581ac in cond_wait () from /usr/lib/libthr...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3676
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
```
(gdb) info threads
20 Thread 11 0xff3581ac in cond_wait () from /usr/lib/libthread.so.1
19 Thread 10 0xff3581ac in cond_wait () from /usr/lib/libthread.so.1
18 Thread 9 0xff19f428 in _lwp_sema_wait () from /usr/lib/libc.so.1
17 Thread 8 (LWP 6) 0xff19e838 in _read () from /usr/lib/libc.so.1
16 Thread 6 0xff19f428 in _lwp_sema_wait () from /usr/lib/libc.so.1
15 Thread 5 (LWP 3) 0xff19d5b4 in _poll () from /usr/lib/libc.so.1
14 Thread 4 0xff3581ac in cond_wait () from /usr/lib/libthread.so.1
13 Thread 3 0xff35d9b8 in _reap_wait () from /usr/lib/libthread.so.1
12 Thread 2 (LWP 2) 0xff19ed78 in _signotifywait () from /usr/lib/libc.so.1
11 Thread 1 (LWP 4) 0xff19d5b4 in _poll () from /usr/lib/libc.so.1
10 LWP 2 0xff19ed78 in _signotifywait () from /usr/lib/libc.so.1
9 LWP 3 0xff19d5b4 in _poll () from /usr/lib/libc.so.1
8 LWP 4 0xff19d5b4 in _poll () from /usr/lib/libc.so.1
7 LWP 5 0xff19f428 in _lwp_sema_wait () from /usr/lib/libc.so.1
6 LWP 6 0xff19e838 in _read () from /usr/lib/libc.so.1
5 LWP 7 0xff19f428 in _lwp_sema_wait () from /usr/lib/libc.so.1
4 LWP 8 0xff3691fc in private___lwp_cond_wait ()
from /usr/lib/libthread.so.1
3 LWP 9 0xff19c91c in door_restart () from /usr/lib/libc.so.1
* 2 Thread 7 (LWP 1) 0xff19d5b4 in _poll () from /usr/lib/libc.so.1
1 LWP 1 0xff19d5b4 in _poll () from /usr/lib/libc.so.1
(gdb) thread 20
[Switching to thread 20 (Thread 11 )]#0 0xff3581ac in cond_wait ()
from /usr/lib/libthread.so.1
(gdb) bt
#0 0xff3581ac in cond_wait () from /usr/lib/libthread.so.1
#1 0xff358078 in pthread_cond_wait () from /usr/lib/libthread.so.1
#2 0x000dca78 in farm (_a=0x165ce30)
at /home/distmaker/Distmaker/4.0/build/pike.sol8/pike/src/threads.c:1837
#3 0xff36b024 in _thread_start () from /usr/lib/libthread.so.1
#4 0xff36b024 in _thread_start () from /usr/lib/libthread.so.1
Previous frame identical to this frame (corrupt stack?)
(gdb) thread 19
[Switching to thread 19 (Thread 10 )]#0 0xff3581ac in cond_wait ()
from /usr/lib/libthread.so.1
(gdb) bt
#0 0xff3581ac in cond_wait () from /usr/lib/libthread.so.1
#1 0xff358078 in pthread_cond_wait () from /usr/lib/libthread.so.1
#2 0x000db99c in f_cond_wait (args=1)
at /home/distmaker/Distmaker/4.0/build/pike.sol8/pike/src/threads.c:1425
#3 0x0003c610 in low_mega_apply (type=APPLY_LOW, args=1, arg1=0x282c00,
arg2=0x1)
at /home/distmaker/Distmaker/4.0/build/pike.sol8/pike/src/apply_low.h:195
#4 0x0003968c in opcode_F_CALL_LFUN_AND_POP (arg1=8)
at
/home/distmaker/tmp/build/pike.srcbuild/../pike-cvs/src/interpret_functions.h:1854
#5 0x0073f760 in ?? ()
Previous frame identical to this frame (corrupt stack?)
(gdb) thread 18
[Switching to thread 18 (Thread 9 )]#0 0xff19f428 in _lwp_sema_wait ()
from /usr/lib/libc.so.1
(gdb) bt
#0 0xff19f428 in _lwp_sema_wait () from /usr/lib/libc.so.1
#1 0xff3596e4 in _park () from /usr/lib/libthread.so.1
#2 0xff3593ac in _swtch () from /usr/lib/libthread.so.1
#3 0xff3581b4 in cond_wait () from /usr/lib/libthread.so.1
#4 0xff358078 in pthread_cond_wait () from /usr/lib/libthread.so.1
#5 0x000db99c in f_cond_wait (args=1)
at /home/distmaker/Distmaker/4.0/build/pike.sol8/pike/src/threads.c:1425
#6 0x0003c610 in low_mega_apply (type=APPLY_LOW, args=1, arg1=0x282c00,
arg2=0x1)
at /home/distmaker/Distmaker/4.0/build/pike.sol8/pike/src/apply_low.h:195
#7 0x0003968c in opcode_F_CALL_LFUN_AND_POP (arg1=8)
at
/home/distmaker/tmp/build/pike.srcbuild/../pike-cvs/src/interpret_functions.h:1854
#8 0x0073f760 in ?? ()
Previous frame identical to this frame (corrupt stack?)
(gdb) thread 17
[Switching to thread 17 (Thread 8 (LWP 6))]#0 0xff19e838 in _read ()
from /usr/lib/libc.so.1
(gdb) bt
#0 0xff19e838 in _read () from /usr/lib/libc.so.1
#1 0xff369fb0 in read () from /usr/lib/libthread.so.1
#2 0xff369fb0 in read () from /usr/lib/libthread.so.1
Previous frame identical to this frame (corrupt stack?)
(gdb) thread 16
[Switching to thread 16 (Thread 6 )]#0 0xff19f428 in _lwp_sema_wait ()
from /usr/lib/libc.so.1
(gdb) bt
#0 0xff19f428 in _lwp_sema_wait () from /usr/lib/libc.so.1
#1 0xff3596e4 in _park () from /usr/lib/libthread.so.1
#2 0xff3593ac in _swtch () from /usr/lib/libthread.so.1
#3 0xff3581b4 in cond_wait () from /usr/lib/libthread.so.1
#4 0xff358078 in pthread_cond_wait () from /usr/lib/libthread.so.1
#5 0x000db99c in f_cond_wait (args=1)
at /home/distmaker/Distmaker/4.0/build/pike.sol8/pike/src/threads.c:1425
#6 0x0003c610 in low_mega_apply (type=APPLY_LOW, args=1, arg1=0x282c00,
arg2=0x1)
at /home/distmaker/Distmaker/4.0/build/pike.sol8/pike/src/apply_low.h:195
#7 0x0003968c in opcode_F_CALL_LFUN_AND_POP (arg1=8)
at
/home/distmaker/tmp/build/pike.srcbuild/../pike-cvs/src/interpret_functions.h:1854
#8 0x0073f760 in ?? ()
Previous frame identical to this frame (corrupt stack?)
(gdb) thread 15
[Switching to thread 15 (Thread 5 (LWP 3))]#0 0xff19d5b4 in _poll ()
from /usr/lib/libc.so.1
(gdb) bt
#0 0xff19d5b4 in _poll () from /usr/lib/libc.so.1
#1 0xff36a7e4 in poll () from /usr/lib/libthread.so.1
#2 0xff36a7e4 in poll () from /usr/lib/libthread.so.1
Previous frame identical to this frame (corrupt stack?)
(gdb) thread 14
[Switching to thread 14 (Thread 4 )]#0 0xff3581ac in cond_wait ()
from /usr/lib/libthread.so.1
(gdb) bt
#0 0xff3581ac in cond_wait () from /usr/lib/libthread.so.1
#1 0xff358078 in pthread_cond_wait () from /usr/lib/libthread.so.1
#2 0x00089904 in wait_thread (data=0x0)
at
/home/distmaker/Distmaker/4.0/build/pike.sol8/pike/src/signal_handler.c:1135
#3 0xff36b024 in _thread_start () from /usr/lib/libthread.so.1
#4 0xff36b024 in _thread_start () from /usr/lib/libthread.so.1
Previous frame identical to this frame (corrupt stack?)
(gdb) thread 13
[Switching to thread 13 (Thread 3 )]#0 0xff35d9b8 in _reap_wait ()
from /usr/lib/libthread.so.1
(gdb) bt
#0 0xff35d9b8 in _reap_wait () from /usr/lib/libthread.so.1
#1 0xff35d718 in _reaper () from /usr/lib/libthread.so.1
#2 0xff36b024 in _thread_start () from /usr/lib/libthread.so.1
#3 0xff36b024 in _thread_start () from /usr/lib/libthread.so.1
Previous frame identical to this frame (corrupt stack?)
(gdb) thread 12
[Switching to thread 12 (Thread 2 (LWP 2))]#0 0xff19ed78 in _signotifywait ()
from /usr/lib/libc.so.1
(gdb) bt
#0 0xff19ed78 in _signotifywait () from /usr/lib/libc.so.1
#1 0xff35e958 in _dynamiclwps () from /usr/lib/libthread.so.1
#2 0xff361c34 in thr_yield () from /usr/lib/libthread.so.1
(gdb) thread 11
[Switching to thread 11 (Thread 1 (LWP 4))]#0 0xff19d5b4 in _poll ()
from /usr/lib/libc.so.1
(gdb) bt
#0 0xff19d5b4 in _poll () from /usr/lib/libc.so.1
#1 0xff36a7e4 in poll () from /usr/lib/libthread.so.1
#2 0xff36a7e4 in poll () from /usr/lib/libthread.so.1
Previous frame identical to this frame (corrupt stack?)
(gdb) thread 2
[Switching to thread 2 (Thread 7 (LWP 1))]#0 0xff19d5b4 in _poll ()
from /usr/lib/libc.so.1
(gdb) bt
#0 0xff19d5b4 in _poll () from /usr/lib/libc.so.1
#1 0xff36a7e4 in poll () from /usr/lib/libthread.so.1
#2 0xff36a7e4 in poll () from /usr/lib/libthread.so.1
Previous frame identical to this frame (corrupt stack?)
(gdb) call gdb_backtraces()
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 4)]
0x000348d0 in opcode_F_ASSIGN_LOCAL (arg1=8)
at
/home/distmaker/tmp/build/pike.srcbuild/../pike-cvs/src/interpret_functions.h:880
880 OPCODE1(F_ASSIGN_LOCAL, "assign local", 0, {
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (gdb_backtraces) will
be abandoned.
(gdb)
```Pike 7.4https://git.lysator.liu.se/pikelang/pike/-/issues/3631Server hang2015-03-27T17:56:50ZPeter BortasServer hangImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3631
Reported by Marcus Wellhardh <wellhard@roxen.com>
The server hanged when I was trying to install an IntraWise site.
```
Host: king.roxen.com
Running without setting...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3631
Reported by Marcus Wellhardh <wellhard@roxen.com>
The server hanged when I was trying to install an IntraWise site.
```
Host: king.roxen.com
Running without setting LD_ASSUME_KERNEL.
```
Pike version: Pike v7.4 release 47
Product version: Roxen CMS 4.0.25-cvs
Operating system: Linux 2.4.21-9.0.1.EL (i686)
Starting MySQL ... Done 4.0.13-standard [522.5ms]
kill -QUIT gives:
```
: ### Describing all Pike threads:
16:57:01 :
31m53.7s : ### Thread -1249035344:
: _static_modules.Builtin()->mutex:
_static_modules.Builtin()->mutex()->lock(2)
: modules/sitebuilder/pike-modules/Sitebuilder.pmod/Workarea.pike
(version 1.231):771:
Workarea(,Site(Basic:/home/wellhard/projects/roxen-4.0/Basic.sb/))->_sbobj(0,"roxen-files",0,0)
: modules/sitebuilder/pike-modules/Sitebuilder.pmod/Workarea.pike
(version 1.231):1090:
Workarea(,Site(Basic:/home/wellhard/projects/roxen-4.0/Basic.sb/))->get_fs_roots_in(0,"")
:
modules/sitebuilder/pike-modules/Sitebuilder.pmod/FS.pmod/VCDir.pike
(version 1.192):418: VCDir(E:0:[Basic]::/)->get_contents()
16:57:01 :
modules/sitebuilder/pike-modules/Sitebuilder.pmod/FS.pmod/VCDir.pike
(version 1.192):1116:
VCDir(E:0:[Basic]::/)->list(0,0,1,Workarea(,Site(Basic:/home/wellhard/projects/roxen-4.0/Basic.sb/))->CacheEntry(),0)
31m53.8s : modules/sitebuilder/pike-modules/Sitebuilder.pmod/Workarea.pike
(version 1.231):2846:
Workarea(,Site(Basic:/home/wellhard/projects/roxen-4.0/Basic.sb/))->build_entries(0,"sitebuilder/xsl-template",RequestID(/))
: modules/sitebuilder/pike-modules/Sitebuilder.pmod/Workarea.pike
(version 1.231):2937:
Workarea(,Site(Basic:/home/wellhard/projects/roxen-4.0/Basic.sb/))->locate_file("cms-common.xsl",VCDir(E:0:[Basic]::/),"sitebuilder/xsl-template",RequestID(/))
: modules/sitebuilder/modules/xsltransform/xsltransform.pike
(version 1.97):1575:
RoxenModule(Basic/xsltransform#0)->get_xsl_path("cms-common.xsl",0,0,RequestID(/))
: modules/sitebuilder/modules/xsltransform/xsltransform.pike
(version 1.97):1604:
RoxenModule(Basic/xsltransform#0)->do_xsltransform("xsltransform",mapping[2],0,RequestID(/),mapping[1],editor/handler()->__class_67190_0_line_25(),([]))
: modules/sitebuilder/handlers/xml/common.pike (version
1.72):379:
editor/handler()->view_xml_or_html(MDFile("/home/wellhard/projects/roxen-4.0/Basic.sb/wa/view/index.xml",rML),mapping[1],RequestID(/))
16:57:01 : modules/sitebuilder/handlers/xml/handler.pike (version
1.27):22:
editor/handler()->view(MDFile("/home/wellhard/projects/roxen-4.0/Basic.sb/wa/view/index.xml",rML),mapping[1],RequestID(/))
31m53.8s : modules/sitebuilder/pike-modules/Sitebuilder.pmod/module.pmod
(version 1.197):658:
Sitebuilder->sb_http_file_answer(MDFile("/home/wellhard/projects/roxen-4.0/Basic.sb/wa/view/index.xml",rML),RequestID(/),0)
: modules/sitebuilder/pike-modules/Sitebuilder.pmod/Workarea.pike
(version 1.231):2440:
Workarea(,Site(Basic:/home/wellhard/projects/roxen-4.0/Basic.sb/))->wa_find_file_low("index.xml",0,1,RoxenModule(Basic/insite_editor#0),RequestID(/))
: modules/sitebuilder/pike-modules/Sitebuilder.pmod/Workarea.pike
(version 1.231):2721:
Workarea(,Site(Basic:/home/wellhard/projects/roxen-4.0/Basic.sb/))->wa_find_file("index.xml",0,1,RoxenModule(Basic/insite_editor#0),RequestID(/))
: modules/sitebuilder/modules/manager/workarea.pike (version
1.182):804:
RoxenModule(Basic/insite_editor#0)->find_file("index.xml",RequestID(/))
: modules/sitebuilder/modules/manager/insite_editor.pike (version
1.100):1066:
RoxenModule(Basic/insite_editor#0)->find_file("index.xml",RequestID(/))
16:57:01 : base_server/configuration.pike (version 1.551):1564:
Configuration(Basic)->low_get_file(RequestID(/),0)
31m53.8s : base_server/configuration.pike (version 1.551):1793:
Configuration(Basic)->get_file(RequestID(/),0,0)
: base_server/configuration.pike (version 1.551):1757:
Configuration(Basic)->handle_request(RequestID(/))
: modules/directories/indexfiles.pike (version 1.22):59:
RoxenModule(Basic/indexfiles#0)->parse_directory(RequestID(/))
: base_server/configuration.pike (version 1.551):1643:
Configuration(Basic)->low_get_file(RequestID(/),0)
: base_server/configuration.pike (version 1.551):1793:
Configuration(Basic)->get_file(RequestID(/),0,0)
16:57:01 : base_server/configuration.pike (version 1.551):1757:
Configuration(Basic)->handle_request(RequestID(/))
31m53.8s : protocols/http.pike (version 1.424):1912:
RequestID(/)->handle_request()
: base_server/roxen.pike (version 1.866):639:
roxen->handler_thread(4)
:
: ### Thread -1248769104:
: _static_modules.Builtin()->mutex:
_static_modules.Builtin()->mutex()->lock()
16:57:01 : modules/scripting/pikescript.pike (version 1.72):118:
RoxenModule(Administration
Interface/pikescript#0)->call_script(/home/wellhard/projects/roxen-4.0/server/config_interface/sites/create_site_with_template()->parse,RequestID(/sites/create_site_with_template.pike?name=73,110,116,114,97,87,105,115,101),,,0)
31m53.8s : modules/scripting/pikescript.pike (version 1.72):253:
RoxenModule(Administration
Interface/pikescript#0)->handle_file_extension(Stdio.File("config_interface/sites/create_site_with_template.pike",
"r", 777 /* fd=38
*/),"pike",RequestID(/sites/create_site_with_template.pike?name=73,110,116,114,97,87,105,115,101))
: base_server/configuration.pike (version 1.551):1688:
Configuration(Administration
Interface)->low_get_file(RequestID(/sites/create_site_with_template.pike?name=73,110,116,114,97,87,105,115,101),0)
: base_server/configuration.pike (version 1.551):1793:
Configuration(Administration
Interface)->get_file(RequestID(/sites/create_site_with_template.pike?name=73,110,116,114,97,87,105,115,101),0,0)
: base_server/configuration.pike (version 1.551):1757:
Configuration(Administration
Interface)->handle_request(RequestID(/sites/create_site_with_template.pike?name=73,110,116,114,97,87,105,115,101))
: protocols/http.pike (version 1.424):1912:
RequestID(/sites/create_site_with_template.pike?name=73,110,116,114,97,87,105,115,101)->handle_request()
16:57:01 : base_server/roxen.pike (version 1.866):639:
roxen->handler_thread(3)
31m53.8s :
: ### Thread -1248502864:
: _static_modules.Builtin()->mutex:
_static_modules.Builtin()->mutex()->lock()
: modules/scripting/pikescript.pike (version 1.72):118:
RoxenModule(Administration
Interface/pikescript#0)->call_script(/home/wellhard/projects/roxen-4.0/server/config_interface/sites/create_site_with_template()->parse,RequestID(/sites/create_site_with_template.pike?name=73,110,116,114,97,87,105,115,101),,,0)
: modules/scripting/pikescript.pike (version 1.72):253:
RoxenModule(Administration
Interface/pikescript#0)->handle_file_extension(Stdio.File("config_interface/sites/create_site_with_template.pike",
"r", 777 /* fd=39
*/),"pike",RequestID(/sites/create_site_with_template.pike?name=73,110,116,114,97,87,105,115,101))
16:57:01 : base_server/configuration.pike (version 1.551):1688:
Configuration(Administration
Interface)->low_get_file(RequestID(/sites/create_site_with_template.pike?name=73,110,116,114,97,87,105,115,101),0)
31m53.8s : base_server/configuration.pike (version 1.551):1793:
Configuration(Administration
Interface)->get_file(RequestID(/sites/create_site_with_template.pike?name=73,110,116,114,97,87,105,115,101),0,0)
: base_server/configuration.pike (version 1.551):1757:
Configuration(Administration
Interface)->handle_request(RequestID(/sites/create_site_with_template.pike?name=73,110,116,114,97,87,105,115,101))
: protocols/http.pike (version 1.424):1912:
RequestID(/sites/create_site_with_template.pike?name=73,110,116,114,97,87,105,115,101)->handle_request()
: base_server/roxen.pike (version 1.866):639:
roxen->handler_thread(2)
:
16:57:01 : ### Thread -1248236624:
31m53.9s : _static_modules.Builtin()->create_process:
_static_modules.Builtin()->create_process()->wait()
: modules/sitebuilder/pike-modules/VC.pmod/CVS.pmod/CVS.pike
(version 1.43):148:
VC.CVS.CVS()->command(0,"/home/wellhard/projects/roxen-4.0/server/modules/sitebuilder/bin/cvs","-!","-q","-d:local:/home/wellhard/projects/roxen-4.0/server","--version")
: modules/sitebuilder/pike-modules/Sitebuilder.pmod/Site.pike
(version 1.327):3720:
Site(IntraWise:/home/wellhard/projects/roxen-4.0/intrawise.iw/default/storage.sb/)->initialize(RoxenModule(IntraWise/sitebuilder#0)->get_mac,"../intrawise.iw/default/storage.sb",1,DefaultSite("/home/wellhard/projects/roxen-4.0/server/modules/intrawise/default_site"),mapping[4],mapping[6])
: modules/sitebuilder/modules/manager/sitebuilder.pike (version
1.113):565: RoxenModule(IntraWise/sitebuilder#0)->initialize(1)
: modules/sitebuilder/modules/manager/sitebuilder.pike (version
1.113):614:
RoxenModule(IntraWise/sitebuilder#0)->start(2,Configuration(IntraWise))
16:57:01 : base_server/configuration.pike (version 1.551):2607:
Configuration(IntraWise)->save(0)
31m53.9s : modules/intrawise/modules/intrawise.pike (version 1.188):579:
RoxenModule(IntraWise/intrawise#0)->start(0,Configuration(IntraWise))
: base_server/configuration.pike (version 1.551):3084:
Configuration(IntraWise)->call_high_start_callbacks(RoxenModule(IntraWise/intrawise#0),ModuleInfo(intrawise))
: base_server/configuration.pike (version 1.551):2966:
Configuration(IntraWise)->call_start_callbacks(RoxenModule(IntraWise/intrawise#0),ModuleInfo(intrawise),ModuleCopies(1))
: site_templates/common.pike:153:
/home/wellhard/projects/roxen-4.0/server/site_templates/intrawise()->parse(RequestID(/sites/create_site_with_template.pike),0)
: site_templates/intrawise.pike (version 1.21):160:
/home/wellhard/projects/roxen-4.0/server/site_templates/intrawise()->parse(RequestID(/sites/create_site_with_template.pike))
16:57:01 : config_interface/sites/create_site_with_template.pike:90:
/home/wellhard/projects/roxen-4.0/server/config_interface/sites/create_site_with_template()->parse(RequestID(/sites/create_site_with_template.pike))
31m53.9s : modules/scripting/pikescript.pike (version 1.72):133:
RoxenModule(Administration
Interface/pikescript#0)->call_script(/home/wellhard/projects/roxen-4.0/server/config_interface/sites/create_site_with_template()->parse,RequestID(/sites/create_site_with_template.pike),,,0)
: modules/scripting/pikescript.pike (version 1.72):253:
RoxenModule(Administration
Interface/pikescript#0)->handle_file_extension(Stdio.File("config_interface/sites/create_site_with_template.pike",
"r", 777 /* fd=24 */),"pike",RequestID(/sites/create_site_with_template.pike))
: base_server/configuration.pike (version 1.551):1688:
Configuration(Administration
Interface)->low_get_file(RequestID(/sites/create_site_with_template.pike),0)
: base_server/configuration.pike (version 1.551):1793:
Configuration(Administration
Interface)->get_file(RequestID(/sites/create_site_with_template.pike),0,0)
: base_server/configuration.pike (version 1.551):1757:
Configuration(Administration
Interface)->handle_request(RequestID(/sites/create_site_with_template.pike))
16:57:01 : protocols/http.pike (version 1.424):1912:
RequestID(/sites/create_site_with_template.pike)->handle_request()
31m53.9s : base_server/roxen.pike (version 1.866):639:
roxen->handler_thread(1)
:
: ### Thread -1246766160:
: _static_modules.Builtin()->create_process:
_static_modules.Builtin()->create_process()->wait()
: modules/sitebuilder/pike-modules/VC.pmod/CVS.pmod/CVS.pike
(version 1.43):148:
VC.CVS.CVS()->command(0,"/home/wellhard/projects/roxen-4.0/server/modules/sitebuilder/bin/cvs","-!","-q","-d:local:/home/wellhard/projects/roxen-4.0/Basic.sb/cvsroot","-n","status","-v","__info")
16:57:01 : modules/sitebuilder/pike-modules/VC.pmod/CVS.pmod/file.pike
(version 1.87):382: VC.CVS.file()->status(1)
31m53.9s :
modules/sitebuilder/pike-modules/Sitebuilder.pmod/FS.pmod/VCDir.pike
(version 1.192):299:
VCDir(0:0:[Basic]::/intranet/PSO/Projects/Norrk_ping_SOW_2002-36_Upphandlingsenheten/Norrk_ping_SOW_2002-36_(Upphandlingsenheten))->update_state(0,0,1)
:
modules/sitebuilder/pike-modules/Sitebuilder.pmod/FS.pmod/VCDir.pike
(version 1.192):125:
VCDir(0:0:[Basic]::/intranet/PSO/Projects/Norrk_ping_SOW_2002-36_Upphandlingsenheten/Norrk_ping_SOW_2002-36_(Upphandlingsenheten))->create(Workarea(,Site(Basic:/home/wellhard/projects/roxen-4.0/Basic.sb/)),({"intranet","PSO","Projects","Norrk_ping_SOW_2002-36_Upphandlingsenheten"}),0,VC.CVS.dir(),0)
: modules/sitebuilder/pike-modules/Sitebuilder.pmod/Workarea.pike
(version 1.231):724:
Workarea(,Site(Basic:/home/wellhard/projects/roxen-4.0/Basic.sb/))->_make_vadir("intranet/PSO/Projects/Norrk_ping_SOW_2002-36_Upphandlingsenheten/Norrk_ping_SOW_2002-36_(Upphandlingsenheten)",,,0)
: modules/sitebuilder/pike-modules/Sitebuilder.pmod/Workarea.pike
(version 1.231):818:
Workarea(,Site(Basic:/home/wellhard/projects/roxen-4.0/Basic.sb/))->_sbobj(0,"intranet/PSO/Projects/Norrk_ping_SOW_2002-36_Upphandlingsenheten/Norrk_ping_SOW_2002-36_(Upphandlingsenheten)",0,0)
: modules/sitebuilder/pike-modules/Sitebuilder.pmod/Workarea.pike
(version 1.231):1130:
Workarea(,Site(Basic:/home/wellhard/projects/roxen-4.0/Basic.sb/))->prefetch_va(({VCDir(E:0:[Basic]::/intranet/PSO/Projects/Nexor/Customer_Deliverables),VCDir(E:0:[Basic]::/intranet/PSO/Projects/Nexor/Meeting_Minutes),,,244}))
16:57:01 : base_server/roxen.pike (version 1.866):994:
roxen->bg_process_queue()
31m53.9s : base_server/roxen.pike (version 1.866):639:
roxen->handler_thread(0)
:
: ### Thread -1220463968 (backend thread):
: _static_modules.Builtin()->thread_id:
Thread.Thread(-1220463968)->backtrace()
: base_server/roxen.pike (version 1.866):4362:
roxen->describe_all_threads()
16:57:01 : _static_modules.Builtin()->Backend:
_static_modules.Builtin()->__backend->`()(3600.000000)
31m53.9s :
: ### Total 6 Pike threads
```Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/4851utime on a directory fails2015-03-27T17:43:33ZPeter Bortasutime on a directory failsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4851
Reported by Tor Edvardsson <tor@roxen.com>
On Windows, utime on a directory gives the following
```
Pike v7.8 release 286 running Hilfe v3.5 (Incremental Pike Fron...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4851
Reported by Tor Edvardsson <tor@roxen.com>
On Windows, utime on a directory gives the following
```
Pike v7.8 release 286 running Hilfe v3.5 (Incremental Pike Frontend)
> object o = file_stat("test");
> utime("test", o->atime, o->mtime);
Compiler Warning: 1: Returning a void expression. Converted to zero.
utime(): Failed: Access denied
HilfeInput:1: HilfeInput()->___HilfeWrapper()
```
on a normal file this works
```
Pike v7.8 release 286 running Hilfe v3.5 (Incremental Pike Frontend)
> object o = file_stat("test.txt");
> utime("test.txt", o->atime, o->mtime);
Compiler Warning: 1: Returning a void expression. Converted to zero.
(1) Result: 0
```Pike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/4049Mutex error2015-03-27T17:42:03ZPeter BortasMutex errorImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4049
Reported by Jonas Wallden <jonasw@roxen.com>
Loading of a Roxen CMS AC dump file triggers the following backtrace (generated with version
4.0.425-release5) where a m...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4049
Reported by Jonas Wallden <jonasw@roxen.com>
Loading of a Roxen CMS AC dump file triggers the following backtrace (generated with version
4.0.425-release5) where a mutex ends up in an odd internal state. The mutex problem occurrs
in the destroy() method in class AC_DB_old::lock in AC.pmod (also in CMS). Grubba made a wild
guess that the destruction of objects instantiated from nested classes may be involved.
The data file that reproduces the error is available upon request since it contains customer data.
```
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912496220160 (LWP 32410)]
exit_mutex_key_obj (o=Variable "o" is not available.
) at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/threads.c:1344
1344 /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/threads.c: No such file or
directory.
in /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/threads.c
(gdb) bt
#0 exit_mutex_key_obj (o=Variable "o" is not available.
) at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/threads.c:1344
#1 0x00000000004932bf in destruct (o=0x10159f0)
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/object.c:728
#2 0x00000000004934e8 in schedule_really_free_object (o=0x10159f0)
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/object.c:873
#3 0x00000000004d2690 in assign_to_short_svalue (u=0x21b8a20, type=3 '\003',
s=0x2aaaaab05360)
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/svalue.c:410
#4 0x000000000042c5bc in eval_instruction (pc=0xf42b2f "K")
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/interpret_functions.h:943
#5 0x000000000042fa78 in mega_apply (type=Variable "type" is not available.
)
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/interpret.c:1774
#6 0x000000000043055f in safe_apply_low2 (o=0x10148e8, fun=3, args=0, handle_errors=1)
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/interpret.c:1939
#7 0x00000000004930f9 in call_destroy (o=0x10148e8, foo=0)
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/object.c:652
#8 0x000000000049319a in destruct (o=0x10148e8)
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/object.c:696
#9 0x0000000000494e39 in low_destruct_objects_to_destruct ()
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/object.c:831
#10 0x0000000000427118 in eval_instruction (pc=0x1fb7949 "|k\005")
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/interpret_functions.h:1414
#11 0x0000000000430242 in o_catch (pc=0x10a49be "&")
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/interpret.c:1818
#12 0x0000000000427f53 in eval_instruction (pc=0x10a49b9 "j\016")
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/interpret_functions.h:1195
#13 0x000000000042fa78 in mega_apply (type=Variable "type" is not available.
)
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/interpret.c:1774
#14 0x000000000045598a in backend_do_call_outs (me=0x821710)
at /home/dist/tmp/build/pike.srcbuild/../pike-cvs/src/backend.cmod:1946
#15 0x0000000000456003 in low_backend_once (me=0x821710, timeout=0x7fffffcfe720)
at /home/dist/tmp/build/pike.srcbuild/../pike-cvs/src/backend.cmod:1434
#16 0x00000000004563d0 in f_Backend_cq__backtick_28_29 (args=-1431285136)
at /home/dist/tmp/build/pike.srcbuild/../pike-cvs/src/backend.cmod:1473
#17 0x0000000000424de3 in low_mega_apply (type=APPLY_SVALUE, args=Variable "args" is not
available.
)
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/apply_low.h:195
#18 0x000000000042b425 in eval_instruction (pc=0x8a46db "µ.P\030Lµ.WõÿÿÿI%NÀM'%
¾¸jöÿÿÿP\030Lµ.P\030Lµ.WØÿÿÿ»")
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/interpret_functions.h:1878
#19 0x0000000000430242 in o_catch (pc=0x8a46d8 "P\030Lµ.P\030Lµ.WõÿÿÿI%NÀM'%
¾¸jöÿÿÿP\030Lµ.P\030Lµ.WØÿÿÿ»")
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/interpret.c:1818
#20 0x0000000000427f53 in eval_instruction (pc=0x8a46d3 "j\023")
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/interpret_functions.h:1195
#21 0x000000000042fa78 in mega_apply (type=Variable "type" is not available.
)
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/interpret.c:1774
#22 0x0000000000489976 in main (argc=11, argv=0x7fffffcfedd8)
at /home/dist/build/4.0/build/pike.fc4_x86_64/pike/src/main.c:756
```Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/6941Type system resolves 0 into string.2015-03-27T17:39:40ZPeter BortasType system resolves 0 into string.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=6941
Reported by Martin Nilsson <nilsson@opera.com>
Type system issue:
```
Pike v7.9 release 11 running Hilfe v3.5 (Incremental Pike Frontend)
> typeof(max(0,0));
(1) Re...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=6941
Reported by Martin Nilsson <nilsson@opera.com>
Type system issue:
```
Pike v7.9 release 11 running Hilfe v3.5 (Incremental Pike Frontend)
> typeof(max(0,0));
(1) Result: string
```Pike 8.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://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/1310SQL module/Postgres error2015-02-27T16:54:25ZPeter BortasSQL module/Postgres errorImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1310
Reported by Tomas Berndtsson, NoCrew/Wercon <tomas@nocrew.org>
Pike 7.2.12 from the CVS.
There seems to be a mismatch in function types between the SQL module and
t...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1310
Reported by Tomas Berndtsson, NoCrew/Wercon <tomas@nocrew.org>
Pike 7.2.12 from the CVS.
There seems to be a mismatch in function types between the SQL module and
the PostgreSQL module. Trying to access a database gives this error:
```
/usr/local/pike/7.2.12/lib/modules/Sql.pmod/postgres.pike:129:Too many
arguments to big_query.
/usr/local/pike/7.2.12/lib/modules/Sql.pmod/postgres.pike:129:Expected:
function(string : int | object)
/usr/local/pike/7.2.12/lib/modules/Sql.pmod/postgres.pike:129:Got :
function(string, object(implements 66456) : void | mixed)
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://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/3107Postgresql-module doesn't return error2015-02-27T16:51:22ZPeter BortasPostgresql-module doesn't return errorImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3107
Reported by Petter Larsson <petterl@home.se>
When you get an error in a Postgresql big_query(), the only error returned
is:
Error in frontend-backkend communication...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3107
Reported by Petter Larsson <petterl@home.se>
When you get an error in a Postgresql big_query(), the only error returned
is:
Error in frontend-backkend communications and a backtrace.
It would be more interesting to get the error from Postgresql, which will
tell you what went wrong.
A patch like below should fix that:
```
Index: postgres.c
===================================================================
RCS file: /cvs/Pike/7.3/src/modules/Postgres/postgres.c,v
retrieving revision 1.25
diff -r1.25 postgres.c
431a432,433
> char *err;
>
500a503
> err = PQresultErrorMessage(res);
502c505
< Pike_error ("Error in frontend-backend
communications.\n");
---
> Pike_error ("Postgresql error: %s",err);
```Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/7426foreach/array indexing bug2015-02-19T13:45:59ZPeter Bortasforeach/array indexing bugImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7426
Reported by Martin Karlgren <marty@roxen.com>
$ pike -e 'foreach (({})[1..], mixed e) werror ("e: %O\n", e);'
e: 0.0
Segmentation fault: 11
Tested with Pike 8.0.36 ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7426
Reported by Martin Karlgren <marty@roxen.com>
$ pike -e 'foreach (({})[1..], mixed e) werror ("e: %O\n", e);'
e: 0.0
Segmentation fault: 11
Tested with Pike 8.0.36 on Mac OS X (x86_64) and 8.0.25 on Linux (x86_64).Pike 8.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/7406Protocols.LDAP: Lock on AD-server (DNS round robin) until failover needed to ...2015-01-16T13:51:34ZPeter BortasProtocols.LDAP: Lock on AD-server (DNS round robin) until failover needed to avoid flip-flop.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7406
Reported by @grubba
```
[roxen.com #23861], [roxen.com #20751]:
```
If AD import is configured to an URL that resolves to several ip numbers the
user import may fai...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7406
Reported by @grubba
```
[roxen.com #23861], [roxen.com #20751]:
```
If AD import is configured to an URL that resolves to several ip numbers the
user import may fail.
This is due to the incremental update relying on uSNChanged, which is unique
for each of the LDAP servers in the cluster.
The Protocols.LDAP module should attempt to connect to the same server in the
cluster every time and only switch servers when the old one fails.Pike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/7397Segfault after for clause compilation error2014-12-08T10:58:41ZPeter BortasSegfault after for clause compilation errorImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7397
Reported by Martin Karlgren <marty@roxen.com>
Test case:
```
$ bin/pike
Pike v8.0 release 35 running Hilfe v3.5 (Incremental Pike Frontend)
> for (i = 0; 1; i += 1)...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7397
Reported by Martin Karlgren <marty@roxen.com>
Test case:
```
$ bin/pike
Pike v8.0 release 35 running Hilfe v3.5 (Incremental Pike Frontend)
> for (i = 0; 1; i += 1) { }
Segmentation fault: 11
```Pike 8.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/7384Broken "--" operator on mappings2014-12-05T16:42:44ZPeter BortasBroken "--" operator on mappingsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7384
Reported by Martin Karlgren <marty@roxen.com>
```
Pike v8.0 release 34 running Hilfe v3.5 (Incremental Pike Frontend)
> mapping m = ([ 4711: 5 ]);
> --m[4711];
(1) R...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7384
Reported by Martin Karlgren <marty@roxen.com>
```
Pike v8.0 release 34 running Hilfe v3.5 (Incremental Pike Frontend)
> mapping m = ([ 4711: 5 ]);
> --m[4711];
(1) Result: 4710
> m;
(2) Result: ([ /* 1 element */
4711: 5
])
Pike v7.8 release 883 running Hilfe v3.5 (Incremental Pike Frontend)
> mapping m = ([ 4711: 5 ]);
> --m[4711];
(1) Result: 4
> m;
(2) Result: ([ /* 1 element */
4711: 4
])
```Pike 8.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbström