[jifty-devel] Re: ubuntu debian packaging

Robert Barta rho at bigpond.net.au
Sun Dec 17 21:50:57 EST 2006


Mon Dec 4 02:43:16 EST 2006
>  deb http://debian.jifty.org sarge jifty        (same server)

> is attended to follow only cpan, and not cpan for developer.
> If you add "jiftysvn" you will have a svn snapshot (now actual cpan for
> developer). I hope make a snapshot each week ( or two :) ).

Yves,

Thanks for that.

For the record, it is

   deb http://debian.jifty.org/debian sarge jifty

--

On a pristine, virtual Debian I had to install the following, maybe
some tweaking with the dependencies is necessary:

   apt-get install jifty libjifty-perl libjifty-dbi-perl libdbix-dbschema-perl/testing libhttp-server-simple-perl/testing libmodule-pluggable-perl/testing
   apt-get install sqlite3
   apt-get install libhtml-mason-perl/testing
   apt-get install libcgi-fast-perl
   apt-get install libpod-simple-perl

--

When I worked through the tutorial, using the non-region-ed version of index.html
worked ok, but with the fragment stuff the Jifty server segfaulted:

   rho at debian:~/MyWeblog$ more share/web/templates/index.html
   <&|/_elements/wrapper, title => Jifty->config->framework('ApplicationName') &>

     <% Jifty->web->region(name => "myweblog-posts",
                           path => "/fragments/page_of_posts") %>
   </&>

   rho at debian:~/MyWeblog$ bin/jifty server
   INFO - You can connect to your server at http://131.244.8.223:8888/
   DEBUG - Received request for /
   DEBUG - Dispatching request to /
   DEBUG - Showing path /
   DEBUG - Handling template //index.html
   DEBUG - Dispatching request to /fragments/page_of_posts
   DEBUG - Showing path /fragments/page_of_posts
   DEBUG - Handling template /fragments/page_of_posts
   Segmentation fault

The client is sending its GET / request, what I find strange is that
the server is just sending a TCP ACK and then immediately a TCP [ FIN,
ACK ].

strace-ing the process gives me:

   ....

   write(2, "INFO - You can connect to your s"..., 68INFO - You can connect to your server at http://131.244.8.223:8888/
   ) = 68
   rt_sigaction(SIGPIPE, NULL, {SIG_DFL}, 8) = 0
   rt_sigprocmask(SIG_BLOCK, [PIPE], [], 8) = 0
   rt_sigaction(SIGPIPE, {SIG_DFL}, {SIG_DFL}, 8) = 0
   rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
   rt_sigprocmask(SIG_BLOCK, [PIPE], [], 8) = 0
   rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
   rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
   accept(6,                                            

   ....

   stat64("/home/rho/MyWeblog/share/web/templates/_elements/keybindings", 0x814c0c8) = -1 ENOENT (No such file or directory)
   stat64("/usr/share/perl5/auto/Jifty/web/templates/_elements/keybindings", {st_mode=S_IFREG|0644, st_size=29, ...}) = 0
   stat64("/usr/share/perl5/auto/Jifty/web/templates/_elements/keybindings", {st_mode=S_IFREG|0644, st_size=29, ...}) = 0
   open("/usr/share/perl5/auto/Jifty/web/templates/_elements/keybindings", O_RDONLY|O_LARGEFILE) = 11
   ioctl(11, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbffff5d8) = -1 ENOTTY (Inappropriate ioctl for device)
   _llseek(11, 0, [0], SEEK_CUR)           = 0
   fstat64(11, {st_mode=S_IFREG|0644, st_size=29, ...}) = 0
   fcntl64(11, F_SETFD, FD_CLOEXEC)        = 0
   read(11, "<div id=\"keybindings\"></div>\n", 4096) = 29
   read(11, "", 4096)                      = 0
   close(11)                               = 0
   time(NULL)                              = 1166409693
   gettimeofday({1166409693, 683340}, NULL) = 0
   gettimeofday({1166409693, 683819}, NULL) = 0
   --- SIGSEGV (Segmentation fault) @ 0 (0) ---
   +++ killed by SIGSEGV +++

I am suspecting a version problem in one of the dependencies. Any ideas?

\rho


More information about the jifty-devel mailing list