room_citadel_support  

[Citadel Support] Re:webcit is segfaulting

avgjoe
Thu, 01 May 2008 15:29:15 -0700

Thanks dothebart for the quick reply.  I'll work on getting webcit recompiled
for tracing.  I apologize if I am a bit of a newbie when it comes to gdb. 
Here are some other details requested:

 

# uname -a
Linux XXXXX 2.4.22-xfs #1 Mon Apr 10 18:17:11 PDT 2006 armv5b GNU/Linux 

# cat /proc/cpuinfo
Processor       : XScale-IXP425/IXC1100 rev 1 (v5b)
BogoMIPS        : 263.78
Features        : swp half thumb fastmult edsp 

Hardware        : Intel IXDP425 Development Platform
Revision        : 0000
Serial          : 0000000000000000 

# file webcit
 webcit: ELF 32-bit MSB executable, ARM, version 1, for GNU/Linux 2.4.3,
dynamically linked (uses shared libs), not stripped

(gdb) backtrace
#0  0x40108ba4 in strcmp () from /lib/libc.so.6
#1  0x00064a44 in offer_languages () at gettext.c:205
#2  0x00043df0 in print_value_of (keyname=0xbffeabd4 "DO_LANGUAGE_BOX") at
subst.c:218
#3  0x00044474 in do_template (templatename=0x6d378) at subst.c:291
#4  0x000175f0 in display_login (mesg=0x0) at auth.c:81
#5  0x00015614 in session_loop (req=0x12b8c0) at webcit.c:1684
#6  0x00010080 in context_loop (sock=7) at context_loop.c:505
#7  0x0000e8f0 in worker_entry () at webserver.c:1035
#8  0x0000e420 in main (argc=1, argv=0xbffffdd4) at webserver.c:928

Even though webcit segfaults, I get the following HTML in my browser

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
<BODY></BODY></HTML>

 

 
>Thu May 01 2008 05:57:07 PM EDT from [EMAIL PROTECTED] 
>Subject: Re:webcit is segfaulting
>
>  
>
>please have a look at:
>
> http://www.citadel.org/doku.php/faq:mastering_your_os:gdb
>
>we need a backtrace to gain more information.
>
>Alternatively you can try to modify webcits configure so it runs with
>--enable-backtrace
>
>it will print a backtrace on crash then.
>
>what CPU architecture does the NLSU have? mips-el? which byte order does it
>use?