Squid core dump error

From: Siddhesh PaiRaikar <[email protected]>
Date: Fri, 16 Feb 2007 20:03:14 +0530

Hi ...

   1. I am trying to scan the web page content that comes in from squid.
   The content is received in a variable buf in store.c by default , so
   wat we do is to scan buf for some words. wen we open any page with squid
   initially it works just fine and detects all the words that we want to. as
   it goes on proceeding futher and more and more pages are opened. we get an
   error.. segmentation fault : code dumped. there is a core file created in
   the directory /usr/local/squid/var/cache where the pages are cached. wen we
   view the core file it shows a lot of text in columns sumthing like this
   2. 41256500 C E - u n i x / 7 2 3 8 \0 U
    S E
   3. starts from 0 increments in values of 20 .. the 1st no. on the left
   i.e. and goes till a huge number like 41270000.
   4.
   5. this core file stores character by character everything that is
   done.. all commands issued, all the html, css,etc code that is downloaded
   from the proxy server
   6.
   7. we can aslo see the commands written at the terminal in this file..
   here is how it ;looks like.. the core file
   8.
   9. b a c k g r o u n d : u
    r
   10. 0506020 l ( " . . / i m a g e s / s
    e c
   11. 0506040 t i o n / e r r o r _ t i t
    l e
   12. 0506060 . p n g " ) 0 2 5 p x
    n o
   13. 0506100 - r e p e a t ; } \n \t # e
    r r
   14. 0506120 o r d i v # s e c t i o n
    _ b
   15. 0506140 a n n e r i m g { b o
    r d
   16. 0506160 e r - l e f t : 1 p x s
    o l
   17. 0506200 i d # F F F ; } \n / *
    - -
   18. 0506220 a u d i e n c e a n d
   19. ...
   20. ...
   21. ...
   22.
   23. 0 S S
   24. 41136360 H _ A U T H _ S O C K = / t
    m p
   25. 41136400 / s s h - B i V X Z z 7 2 3
    8 /
   26. 41136420 a g e n t . 7 2 3 8 \0 S E S
    S I
   27. 41136440 O N _ M A N A G E R = u n i
    x /
   28. 41136460 S i d d h e s h : / t m p /
    . I
   29. 41136500 C E - u n i x / 7 2 3 8 \0 U
    S E
   30. 41136520 R N A M E = s i d d h e s h
   \0 D
   31. 41136540 E S K T O P _ S E S S I O N
    = d
   32. 41136560 e f a u l t \0 P A T H = / u
    s r
   33. 41136600 / l o c a l / s b i n : / u
    s r
   34. 41136620 / l o c a l / b i n : / u s
    r /
   35. 41136640 s b i n : / u s r / b i n :
    / s
   36. 41136660 b i n : / b i n : / u s r
   37.
   38. ...
   39. ...
   40. ...
   41.
   42. 41614500 \0 \0 \ 0 \0 \0 \0 \0 \0 \0 \0 \ 0 \0 \0
    / u s
   43. 41614520 r / l o c a l / s q u i d /
    s b
   44. 41614540 i n / s q u i d \0 - N C d 1
   \0 S
   45. 41614560 S H _ A G E N T _ P I D = 5
    0 0
   46. 41614600 1 \0 T E R M = x t e r m \0 D
    E S
   47. 41614620 K T O P _ S T A R T U P _ I
    D =
   48. 41614640 \0 S H E L L = / b i n / b a
    s h
   49. 41614660 \ 0 G T K _ R C _ F I L E S =
    / e
   50. 41614700 t c / g t k / g t k r c : /
    h o
   51.
   52. ....
   53. ...
   54. ,..
   55.
   56. 0000000 177 E L F 001 001 001 \0 \0 \ 0 \0 \0 \0 \0
   \0 \0
   57. 0000020 004 \0 003 \0 001 \0 \0 \ 0 \0 \0 \0 \0 4 \0
   \0 \ 0
   58. 0000040 \0 \0 \0 \0 \0 \ 0 \0 \0 4 \0 \0 $ \0
   \0 \ 0
   59. 0000060 \0 \0 \0 \0 004 \0 \0 \0 264 004 \0 \0 \ 0 \0
   \0 \0
   60. 0000100 \0 \ 0 \0 \0 l 004 \0 \0 \0 \0 \ 0 \0 \0 \0
   \0 \0
   61. 0000120 \ 0 \0 \0 \0 001 \0 \0 \0 \ 0 020 \0 \0 \0 200
   004 \b
   62. 0000140 \0 \0 \0 \0 \0 \0 \0 \ 0 \0 300 \t \0 005 \0
   \0 \0
   63. 0000160 \0 020 \0 \0 001 \ 0 \0 \0 \0 020 \0 \0 \0 @
   016 \b
   64. 0000200 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 006 \0
   \ 0 \0
   65. 0000220 \0 020 \0 \ 0 001 \0 \0 \0 \0 0 \0 \ 0 \0 `
   016 \b
   66. 0000240 \0 \0 \0 \0 \0 320 ? \0 \0 320 ? \0 006 \0
   \0 \0
   67. 0000260 \0 020 \ 0 \0 001 \0 \0 \0 \0 \ 0 @ \0 \0 020
   234 267
   68. 0000300 \0 \0 \0 \0 \0 340 < \0 \ 0 340 < \0 006 \0
   \0
   69.
   70.
   71. then the proxy server stops wroking after that core dump error
   message.
   72.
   73. then later again wen its started again it starts normal operation
   for a while before giving the same error message again.
   74.
   75. this is another error i got
   76.
   77.
   78. storeUfsCreate: Failed to create /usr/local/squid/var/cache/ 00/
   03/000003F0 ((24) Too many open files)
   79.
   80.
   81. where storeufscreate is a function as well as an obect of a
   structure

-- With Regards
- Siddhesh
Received on Fri Feb 16 2007 - 07:33:20 MST

This archive was generated by hypermail pre-2.1.9 : Thu Mar 01 2007 - 12:00:01 MST