The saga continues. I've compiled the cvs snapshot,
works like a charm. Now I've got only one
small problem. Midgard segfaults the web server.


Any ideas on what's going on?


gdb httpd
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.         

<Send a request to /example, or /admin after authentication>

Program received signal SIGSEGV, Segmentation fault.
0x4032c5e4 in ?? () from /usr/local/lib/midgard.so
(gdb) bt
#0  0x4032c5e4 in ?? () from /usr/local/lib/midgard.so
#1  0x80f0f52 in module_registry_request_startup (module=0x841f978) at
zend_API.c:765
#2  0x80f3a84 in zend_hash_apply (ht=0x833a6e0, apply_func=0x80f0f34
<module_registry_request_startup>) at zend_hash.c:692
#3  0x80f0338 in zend_activate_modules () at zend.c:513
#4  0x808e748 in php_request_startup () at main.c:635
#5  0x80fc73c in apache_php_module_main (r=0x834318c,
display_source_mode=0) at sapi_apache.c:66
#6  0x808cc06 in send_php ()
#7  0x808cc3a in send_parsed_php ()
#8  0x81698d9 in ap_invoke_handler ()
#9  0x817e82f in process_request_internal ()
#10 0x817e896 in ap_process_request ()
#11 0x81756e6 in child_main ()
#12 0x81758c1 in make_child ()
#13 0x8175a3c in startup_children ()
#14 0x81760ac in standalone_main ()
#15 0x81768fc in main ()
#16 0x40154d3c in __libc_start_main () from /lib/libc.so.6  


strace httpd -X (and send a request to the web server for /example)
<snip>
rt_sigaction(0xd, 0xbffff2d8, 0xbffff24c, 0x8, 0xd) = 0
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
read(4, 0x842d370, 8192)                = -1 EAGAIN (Resource
temporarily unavailable)
fcntl(4, F_SETFL, O_RDWR)               = 0
write(4, "\10\1\0\0\3SELECT id,style,root,"..., 268) = 268
read(4, "\1\0\0\1", 4)                  = 4
read(4, "\6", 1)                        = 1
read(4, "\22\0\0\2", 4)                 = 4
read(4, "\4host\2id\3\v\0\0\1\3\3\3B\0", 18) = 18
read(4, "\25\0\0\3", 4)                 = 4
read(4, "\4host\5style\3\v\0\0\1\3\3\1\0\0"..., 21) = 21
read(4, "\24\0\0\4", 4)                 = 4
read(4, "\4host\4root\3\v\0\0\1\3\3\1\0\0"..., 20) = 20
read(4, "\22\0\0\5", 4)                 = 4
read(4, "\0\6info&1\3\25\0\0\1\10\3\1\0\0"..., 18) = 18
read(4, "\32\0\0\6", 4)                 = 4
read(4, "\0\16Length(prefix)\3\n\0\0\1\10"..., 26) = 26
read(4, "\31\0\0\7", 4)                 = 4
read(4, "\4host\tsitegroup\3\v\0\0\1\3\3\t"..., 25) = 25
read(4, "\1\0\0\10", 4)                 = 4
read(4, "\376", 1)                      = 1
read(4, "\f\0\0\t", 4)                  = 4
read(4, "\0011\0011\0015\0011\0016\0010", 12) = 12
read(4, "\1\0\0\n", 4)                  = 4
read(4, "\376", 1)                      = 1
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
read(4, 0x842d370, 8192)                = -1 EAGAIN (Resource
temporarily unavailable)
fcntl(4, F_SETFL, O_RDWR)               = 0
write(4, "#\0\0\0\3SELECT info&2 FROM page"..., 39) = 39
read(4, "\1\0\0\1", 4)                  = 4
read(4, "\1", 1)                        = 1
read(4, "\22\0\0\2", 4)                 = 4
read(4, "\0\6info&2\3\25\0\0\1\10\3\1\0\0"..., 18) = 18
read(4, "\1\0\0\3", 4)                  = 4
read(4, "\376", 1)                      = 1
read(4, "\2\0\0\4", 4)                  = 4
read(4, "\0010", 2)                     = 2
read(4, "\1\0\0\5", 4)                  = 4
read(4, "\376", 1)                      = 1
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
read(4, 0x842d370, 8192)                = -1 EAGAIN (Resource
temporarily unavailable)
fcntl(4, F_SETFL, O_RDWR)               = 0
write(4, "=\0\0\0\3SELECT name,value FROM "..., 65) = 65
read(4, "\1\0\0\1", 4)                  = 4
read(4, "\2", 1)                        = 1
read(4, "\33\0\0\2", 4)                 = 4
read(4, "\vpageelement\4name\3\377\0\0\1\375"..., 27) = 27
read(4, "\34\0\0\3", 4)                 = 4
read(4, "\vpageelement\5value\3\377\377\377"..., 28) = 28
read(4, "\1\0\0\4", 4)                  = 4
read(4, "\376", 1)                      = 1
read(4, "\5\n\0\5", 4)                  = 4
read(4, "\vcode-global\374\366\t<?\n head"..., 2565) = 2565
read(4, "\1\0\0\6", 4)                  = 4
read(4, "\376", 1)                      = 1
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
read(4, 0x842d370, 8192)                = -1 EAGAIN (Resource
temporarily unavailable)
fcntl(4, F_SETFL, O_RDWR)               = 0
write(4, "=\0\0\0\3SELECT name,value FROM "..., 65) = 65
read(4, "\1\0\0\1", 4)                  = 4
read(4, "\2", 1)                        = 1
read(4, "\33\0\0\2", 4)                 = 4
read(4, "\vpageelement\4name\3\377\0\0\1\375"..., 27) = 27
read(4, "\34\0\0\3", 4)                 = 4
read(4, "\vpageelement\5value\3\377\377\377"..., 28) = 28
read(4, "\1\0\0\4", 4)                  = 4
read(4, "\376", 1)                      = 1
read(4, "\1\0\0\5", 4)                  = 4
read(4, "\376", 1)                      = 1
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
read(4, 0x842d370, 8192)                = -1 EAGAIN (Resource
temporarily unavailable)
fcntl(4, F_SETFL, O_RDWR)               = 0
write(4, ">\0\0\0\3SELECT title,content,au"..., 66) = 66
read(4, "\1\0\0\1", 4)                  = 4
read(4, "\5", 1)                        = 1
read(4, "\25\0\0\2", 4)                 = 4
read(4, "\4page\5title\3\377\0\0\1\375\3\1"..., 21) = 21
read(4, "\27\0\0\3", 4)                 = 4
read(4, "\4page\7content\3\377\377\377\1\374"..., 23) = 23
read(4, "\26\0\0\4", 4)                 = 4
read(4, "\4page\6author\3\v\0\0\1\3\3\1\0"..., 22) = 22
read(4, "\25\0\0\5", 4)                 = 4
read(4, "\4page\5style\3\v\0\0\1\3\3\1\0\0"..., 21) = 21
read(4, "\22\0\0\6", 4)                 = 4
read(4, "\0\6info&1\3\25\0\0\1\10\3\1\0\0"..., 18) = 18
read(4, "\1\0\0\7", 4)                  = 4
read(4, "\376", 1)                      = 1
read(4, "-\10\0\10", 4)                 = 4
read(4, "\nAdmin Site\374\31\10<img src=\""..., 2093) = 2093
read(4, "\1\0\0\t", 4)                  = 4
read(4, "\376", 1)                      = 1
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
read(4, 0x842d370, 8192)                = -1 EAGAIN (Resource
temporarily unavailable)
fcntl(4, F_SETFL, O_RDWR)               = 0
write(4, "=\0\0\0\3SELECT CONCAT(firstname"..., 65) = 65
read(4, "\1\0\0\1", 4)                  = 4
read(4, "\1", 1)                        = 1
read(4, "*\0\0\2", 4)                   = 4
read(4, "\0\36CONCAT(firstname,\' \',last"..., 42) = 42
read(4, "\1\0\0\3", 4)                  = 4
read(4, "\376", 1)                      = 1
read(4, "\26\0\0\4", 4)                 = 4
read(4, "\25Midgard Administrator", 22) = 22
read(4, "\1\0\0\5", 4)                  = 4
read(4, "\376", 1)                      = 1
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
read(4, 0x842d370, 8192)                = -1 EAGAIN (Resource
temporarily unavailable)
fcntl(4, F_SETFL, O_RDWR)               = 0
write(4, ",\0\0\0\3SELECT admingroup FROM "..., 48) = 48
read(4, "\1\0\0\1", 4)                  = 4
read(4, "\1", 1)                        = 1
read(4, "\37\0\0\2", 4)                 = 4
read(4, "\tsitegroup\nadmingroup\3\v\0\0\1"..., 31) = 31
read(4, "\1\0\0\3", 4)                  = 4
read(4, "\376", 1)                      = 1
read(4, "\1\0\0\4", 4)                  = 4
read(4, "\376", 1)                      = 1
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
read(4, 0x842d370, 8192)                = -1 EAGAIN (Resource
temporarily unavailable)
fcntl(4, F_SETFL, O_RDWR)               = 0
write(4, "\225\0\0\0\3SELECT person.id,per"..., 153) = 153
read(4, "\1\0\0\1", 4)                  = 4
read(4, "\2", 1)                        = 1
read(4, "\24\0\0\2", 4)                 = 4
read(4, "\6person\2id\3\v\0\0\1\3\3\3B\0", 20) = 20
read(4, "\32\0\0\3", 4)                 = 4
read(4, "\6person\10password\3\r\0\0\1\375"..., 26) = 26
read(4, "\1\0\0\4", 4)                  = 4
read(4, "\376", 1)                      = 1
read(4, "\r\0\0\5", 4)                  = 4
read(4, "\0011\n**password", 13)        = 13
read(4, "\1\0\0\6", 4)                  = 4
read(4, "\376", 1)                      = 1
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
read(4, 0x842d370, 8192)                = -1 EAGAIN (Resource
temporarily unavailable)
fcntl(4, F_SETFL, O_RDWR)               = 0
write(4, "M\0\0\0\3SELECT gid FROM member "..., 81) = 81
read(4, "\1\0\0\1", 4)                  = 4
read(4, "\1", 1)                        = 1
read(4, "\25\0\0\2", 4)                 = 4
read(4, "\6member\3gid\3\v\0\0\1\3\3\t@\0"..., 21) = 21
read(4, "\1\0\0\3", 4)                  = 4
read(4, "\376", 1)                      = 1
read(4, "\2\0\0\4", 4)                  = 4
read(4, "\0010", 2)                     = 2
read(4, "\1\0\0\5", 4)                  = 4
read(4, "\376", 1)                      = 1
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
read(4, 0x842d370, 8192)                = -1 EAGAIN (Resource
temporarily unavailable)
fcntl(4, F_SETFL, O_RDWR)               = 0
write(4, "\"\0\0\0\3SELECT type FROM style"..., 38) = 38
read(4, "(\0\0\1", 4)                   = 4
read(4, "\377\36\4Unknown column \'type\'"..., 40) = 40
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
read(4, 0x842d370, 8192)                = -1 EAGAIN (Resource
temporarily unavailable)
fcntl(4, F_SETFL, O_RDWR)               = 0
write(4, "-\0\0\0\3SELECT name,value FROM "..., 49) = 49
read(4, "\1\0\0\1", 4)                  = 4
read(4, "\2", 1)                        = 1
read(4, "\27\0\0\2", 4)                 = 4
read(4, "\7element\4name\3\377\0\0\1\375\3"..., 23) = 23
read(4, "\30\0\0\3", 4)                 = 4
read(4, "\7element\5value\3\377\377\377\1"..., 24) = 24
read(4, "\1\0\0\4", 4)                  = 4
read(4, "\376", 1)                      = 1
read(4, "5\0\0\5", 4)                   = 4
read(4, "\4body/<body <[body-format]>>\n<"..., 53) = 53
read(4, ".\0\0\6", 4)                   = 4
read(4, "\fbody-content <[table1]>\n<[tab"..., 46) = 46
read(4, "_\0\0\7", 4)                   = 4
read(4, "\vbody-formatRbgcolor=\"#FFFFFF\""..., 95) = 95
read(4, "/\6\0\10", 4)                  = 4
read(4, "\tcode-util\374\"\6<?\n$adminhos"..., 1583) = 1583
read(4, "\30\1\0\t", 4)                 = 4
read(4, "\6footer\374\16\1<p class=\"foot"..., 280) = 280
read(4, "Q\0\0\n", 4)                   = 4
read(4, "\4headK<head>\n<[head-title]>\n<"..., 81) = 81
read(4, "B\0\0\v", 4)                   = 4
read(4, "\nhead-admin6<link rev=\"made\" "..., 66) = 66
read(4, "\221\0\0\f", 4)                = 4
read(4, "\vhead-author\204<? if ($author)"..., 145) = 145
read(4, "\346\5\0\r", 4)                = 4
read(4, "\nhead-style\374\330\5<style typ"..., 1510) = 1510
read(4, "y\0\0\16", 4)                  = 4
read(4, "\nhead-titlem<title>\n<? if ($ar"..., 121) = 121
read(4, "\25\3\0\17", 4)                = 4
read(4, "\tnavilinks\374\10\3<p>\n<? { $l"..., 789) = 789
read(4, "\267\0\0\20", 4)               = 4
read(4, "\4ROOT\261<!DOCTYPE HTML PUBLIC "..., 183) = 183
read(4, "?\2\0\21", 4)                  = 4
read(4, "\6table1\3745\2<TABLE BORDER=\"0"..., 575) = 575
read(4, "\220\6\0\22", 4)               = 4
read(4, "\6table2\374\206\6<TABLE BORDER="..., 1680) = 1680
read(4, "\202\1\0\23", 4)               = 4
read(4, "\7version\374w\1<!--\nMidgard Ad"..., 386) = 386
read(4, "\1\0\0\24", 4)                 = 4
read(4, "\376", 1)                      = 1
brk(0x8438000)                          = 0x8438000
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
read(4, 0x842d370, 8192)                = -1 EAGAIN (Resource
temporarily unavailable)
fcntl(4, F_SETFL, O_RDWR)               = 0
write(4, " \0\0\0\3SELECT up FROM style WH"..., 36) = 36
read(4, "\1\0\0\1", 4)                  = 4
read(4, "\1", 1)                        = 1
read(4, "\23\0\0\2", 4)                 = 4
read(4, "\5style\2up\3\v\0\0\1\3\3\t@\0", 19) = 19
read(4, "\1\0\0\3", 4)                  = 4
read(4, "\376", 1)                      = 1
read(4, "\2\0\0\4", 4)                  = 4
read(4, "\0010", 2)                     = 2
read(4, "\1\0\0\5", 4)                  = 4
read(4, "\376", 1)                      = 1
stat("/usr/local/apache/libexec/midgard-root.php",
{st_mode=016300000100, st_size=1242182190, ...}) = 0
alarm(300)                              = 0
umask(077)                              = 022
umask(022)                              = 077
setitimer(ITIMER_PROF, {it_interval={1344300146, 1701474162},
it_value={539784291, 543516019}}, NULL) = 0
rt_sigaction(0x1b, 0xbffff218, 0xbffff18c, 0x8, 0x1b) = 0
rt_sigprocmask(0x1, 0xbffff454, 0, 0x8, 0x1) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to