Bug#377640: gnome-cups-manager: takes 100% CPU without any reason

2006-09-22 Thread Brice Goglin
Here's what I get with cupsys-dbg, and gnome-cups-manager and libgnomecups 
compiled with debug.

Thanks,

Brice



(gdb) thread apply all bt full

Thread 2 (Thread -1255375952 (LWP 23773)):
#0  0xb7f70410 in ?? ()
No symbol table info available.
#1  0xb52b7108 in ?? ()
No symbol table info available.
#2  0xb75a9918 in ?? () from /usr/lib/libcups.so.2
No symbol table info available.
#3  0x0008 in ?? ()
No symbol table info available.
#4  0xb72f96f2 in time () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#5  0xb758e3bc in httpRead2 (http=0x80b4db8, buffer=0xb52b719d 
%-·´q+µ,[Z·\001v*·, length=8) at http.c:1166
bytes = value optimized out
len = 
\000\000\000\0008[Z·\003\000\000\000À\231\b\b\000\000\000\000\001\000\000\000H\222\t\b\037\000\000
#6  0xb75949f3 in ipp_read_http (http=0x80b4db8, buffer=0xb52b719d 
%-·´q+µ,[Z·\001v*·, length=8)
at ipp.c:2759
tbytes = 0
bytes = 0
len = hq+µäôY·È\235Z·0]P·´q+µ\000\000\000\000\000\000\000\000\235q+µ
#7  0xb759454e in ippReadIO (src=0x80b4db8, cb=0xb7594860 ipp_read_http, 
blocking=1, parent=0x0,
ipp=0x80bb9f8) at ipp.c:1054
n = value optimized out
buffer = 
%-·´q+µ,[Z·\001v*·\000\000\000\000\000\000\000\000\001\200­û¼r+µ\000\000\000\000°r+µ°r+µ°r+µ°r+µ°r+µ\000\000\000\000\231\231\231\231\231\231\231\031\005,
 '\0' repeats 11 times, èT\v\b, '\0' repeats 16 times, 
\231\231\231\031¸M\v\b(r+µXÛ9·k\002\000\000\000\000\000\000\001\000\000\000ô\237:[EMAIL
 
PROTECTED]:·\030\231Z·xr+µ5ïX·èT\v\b\000\000\000\000\n\000\000\000\000\000\000\000¯ò+µ\001\000\000\000\220{,µ...
string = \200­ûèT\v\bèT\v\bèT\v\bèT\v\bëT\v\bçU\v\bèT\v\bçU\v\b, '\0' 
repeats 16 times, 
ä\004.·ü¸:·\000\000\000\000XõY·\000\000\000\b\000\000\000\000ð¸:·ø´:·¡ú-·\030\231Z·ø´:·9\000\000\000Ü´:·\000\000\000\000(\000\000\000Ô´:·
 \000\000\000 \221\v\b 
\000\000\0008\006:·\230\235\v\bXò+µ\034nX·À\231:·\000\000\000\000\000½\v\b\a\000\000\000Ô\005:·°\000\000\000À´\n\bÈò+µ\000\000\000\000\210}\v\b\221þ3·\003\000\000\000Èò+µ\234þ3·\001\000\000...
bufptr = value optimized out
attr = value optimized out
tag = value optimized out
value_tag = value optimized out
value = value optimized out
#8  0xb759475d in ippRead (http=0xb75a9918, ipp=0x80bb9f8) at ipp.c:991
No locals.
#9  0xb759e792 in cupsDoFileRequest (http=0x80b4db8, request=0x80bb738, 
resource=0x8075c50 /, filename=0x0)
at request.c:346
response = (ipp_t *) 0x80bb9f8
length = value optimized out
status = HTTP_OK
got_status = 0
state = IPP_DATA
file = (FILE *) 0x0
fileinfo = {st_dev = 7371206394, __pad1 = 42104, __st_ino = 3039589160, 
st_mode = 3074974180,
  st_nlink = 127, st_uid = 3074974180, st_gid = 3039589240, st_rdev = 
577991481722372527, __pad2 = 42104,
  st_size = -5391807557197055928, st_blksize = -1221723487, st_blocks = 0, 
st_atim = {tv_sec = 16,
tv_nsec = 134980728}, st_mtim = {tv_sec = 1, tv_nsec = -1255378024}, 
st_ctim = {tv_sec = -1255378024,
tv_nsec = -1219993116}, st_ino = 13199935153591287808}
bytes = 3
buffer = '\0' repeats 32444 times, Vç-·, '\0' repeats 20 times, 
ä\004.·)\000\000\000ä´:·ä´:·\000\000\000\000ø´:·0, '\0' repeats 11 times, 
ð¸:·ø´:·\000\000\000\000ô\237:·ä\004.·ø´:·9\000\000\000ä\004.·, '\0' repeats 
20 times, 
ð¸:·ø´:·\003\000\000\000ü¸:·ø·:·ø´:·\030\000\000\000Ì´:·ø´:·\001\b\000\000\030,
 '\0' repeats 11 times, 
%*P·\bÁ[·\001\000\000\000\210r,µô\237:·À´:·aE\001\000¸r,µµ!.·ø´:·p¤\v\bX\000\000\000...
expect = HTTP_CONTINUE
#10 0xb759ecf1 in cupsDoRequest (http=0x80b4db8, request=0x80bb738, 
resource=0x8075c50 /) at request.c:451
No locals.
#11 0xb75b54e8 in request_thread_main (request=0x80b3c90, unused=0x0) at 
gnome-cups-request.c:341
status = 3074077888
__PRETTY_FUNCTION__ = request_thread_main
#12 0xb743fd27 in g_thread_pool_push () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#13 0xb743e36f in g_thread_create_full () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#14 0xb74ff267 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
No symbol table info available.
#15 0xb734745e in clone () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.

Thread 1 (Thread -1228335424 (LWP 4222)):
#0  0xb7f70410 in ?? ()
No symbol table info available.
#1  0xbfd2d918 in ?? ()
No symbol table info available.
#2  0x0937 in ?? ()
No symbol table info available.
#3  0x0009 in ?? ()
No symbol table info available.
#4  0xb733d4d3 in poll () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#5  0xb7423859 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#6  0xb7423be7 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#7  0xb7b65141 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#8  0x0804c021 in main (argc=3, 

Bug#377640: gnome-cups-manager: takes 100% CPU without any reason

2006-09-22 Thread Julien Cristau
reassign 377640 libcupsys2
found 377640 1.2.2-2
kthxbye

On Fri, Sep 22, 2006 at 07:03:14 -0400, Brice Goglin wrote:

 #5  0xb758e3bc in httpRead2 (http=0x80b4db8, buffer=0xb52b719d 
 %-·´q+µ,[Z·\001v*·, length=8) at http.c:1166
 #6  0xb75949f3 in ipp_read_http (http=0x80b4db8, buffer=0xb52b719d 
 %-·´q+µ,[Z·\001v*·, length=8)
 at ipp.c:2759
 #7  0xb759454e in ippReadIO (src=0x80b4db8, cb=0xb7594860 ipp_read_http, 
 blocking=1, parent=0x0,
 ipp=0x80bb9f8) at ipp.c:1054
 #8  0xb759475d in ippRead (http=0xb75a9918, ipp=0x80bb9f8) at ipp.c:991
 No locals.
 #9  0xb759e792 in cupsDoFileRequest (http=0x80b4db8, request=0x80bb738, 
 resource=0x8075c50 /, filename=0x0)
 at request.c:346

I think this is the relevant part.
If recv() returns 0 to httpRead2(), it sets http-error to EPIPE and
returns 0, which is propagated by ipp_read_http().
The call to ipp_read_http() at ipp.c:1054 is trying to read a header:

  if ((n = (*cb)(src, buffer, 8))  8)
  {
DEBUG_printf((ippReadIO: Unable to read header (%d bytes 
read)!\n, n));
return (n == 0 ? IPP_IDLE : IPP_ERROR);
  }

In this case, it returns IPP_IDLE, which is IMO wrong because a return
value of 0 means an EOF condition, not that Nothing is happening.

The relevant part in cupsDoFileRequest() looks like this:
  while ((state = ippRead(http, response)) != IPP_DATA)
if (state == IPP_ERROR)
{
 /*
  * Delete the response...
  */

  DEBUG_puts(IPP read error!);
  ippDelete(response);
  response = NULL;

  _cupsSetError(IPP_SERVICE_UNAVAILABLE, strerror(errno));

  break;
}

This means that libcupsys enters an infinite loop and doesn't detect the
EOF condition (nothing seems to check http-error).

I'm therefore reassigning this bug to libcupsys2.

Cheers,
Julien


signature.asc
Description: Digital signature


Bug#377640: gnome-cups-manager: takes 100% CPU without any reason

2006-09-22 Thread Julien Cristau
On Fri, Sep 22, 2006 at 17:46:53 +0200, Julien Cristau wrote:

 The call to ipp_read_http() at ipp.c:1054 is trying to read a header:
 
   if ((n = (*cb)(src, buffer, 8))  8)
   {
 DEBUG_printf((ippReadIO: Unable to read header (%d bytes 
 read)!\n, n));
 return (n == 0 ? IPP_IDLE : IPP_ERROR);
   }
 
 In this case, it returns IPP_IDLE, which is IMO wrong because a return
 value of 0 means an EOF condition, not that Nothing is happening.
 
The attached (trivial) patch would probably fix it.
AFAIK there's no reason to consider 0 any different from any other
return value.
I don't have a printer and don't use gnome, though, so I won't test
this.

Cheers,
Julien
#! /bin/sh /usr/share/dpatch/dpatch-run
## 65_detect_http_shutdown.dpatch by Julien Cristau [EMAIL PROTECTED]
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: If read()/recv() return 0, we are in an end-of-file condition
## DP: so we error out.

@DPATCH@
diff -urNad cupsys-1.2.3~/cups/ipp.c cupsys-1.2.3/cups/ipp.c
--- cupsys-1.2.3~/cups/ipp.c2006-06-02 17:15:23.0 +0200
+++ cupsys-1.2.3/cups/ipp.c 2006-09-22 19:26:05.0 +0200
@@ -1054,7 +1054,7 @@
   if ((n = (*cb)(src, buffer, 8))  8)
  {
DEBUG_printf((ippReadIO: Unable to read header (%d bytes 
read)!\n, n));
-   return (n == 0 ? IPP_IDLE : IPP_ERROR);
+   return (IPP_ERROR);
  }
 
 /*


signature.asc
Description: Digital signature


Bug#377640: gnome-cups-manager: takes 100% CPU without any reason

2006-09-18 Thread Brice Goglin
Loïc Minier wrote:
 On Wed, Sep 13, 2006, Brice Goglin wrote:
   
 (gdb) where
 

  Please thread apply all bt full instead to see all threads.

Thanks,
   

Here we go:

(gdb) thread apply all bt full

Thread 5 (Thread -1255519312 (LWP 23531)):
#0  0xb7f25410 in ?? ()
No symbol table info available.
#1  0xb5294108 in ?? ()
No symbol table info available.
#2  0xb7559918 in ?? () from /usr/lib/libcups.so.2
No symbol table info available.
#3  0x0008 in ?? ()
No symbol table info available.
#4  0xb72cd6f2 in time () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#5  0xb753e3bc in httpRead2 () from /usr/lib/libcups.so.2
No symbol table info available.
#6  0xb75449f3 in ippAddOctetString () from /usr/lib/libcups.so.2
No symbol table info available.
#7  0xb754454e in ippReadIO () from /usr/lib/libcups.so.2
No symbol table info available.
#8  0xb754475d in ippRead () from /usr/lib/libcups.so.2
No symbol table info available.
#9  0xb754e792 in cupsDoFileRequest () from /usr/lib/libcups.so.2
No symbol table info available.
#10 0xb754ecf1 in cupsDoRequest () from /usr/lib/libcups.so.2
No symbol table info available.
#11 0xb7564a5f in _gnome_cups_request_init () from 
/usr/lib/libgnomecups-1.0.so.1
No symbol table info available.
#12 0xb73f3fa7 in g_thread_pool_push () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#13 0xb73f25df in g_thread_create_full () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#14 0xb74af267 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
No symbol table info available.
#15 0xb731b45e in clone () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.

Thread 4 (Thread -1238733904 (LWP 23532)):
#0  0xb7f25410 in ?? ()
No symbol table info available.
#1  0xb62a6398 in ?? ()
No symbol table info available.
#2  0x0002 in ?? ()
No symbol table info available.
#3  0x in ?? ()
No symbol table info available.

Thread 3 (Thread -1263912016 (LWP 23533)):
#0  0xb7f25410 in ?? ()
No symbol table info available.
#1  0xb4aa3398 in ?? ()
No symbol table info available.
#2  0x0002 in ?? ()
No symbol table info available.
#3  0x in ?? ()
No symbol table info available.

Thread 2 (Thread -1247126608 (LWP 23534)):
#0  0xb7f25410 in ?? ()
No symbol table info available.
#1  0xb5aa5398 in ?? ()
No symbol table info available.
#2  0x0002 in ?? ()
No symbol table info available.
#3  0x in ?? ()
No symbol table info available.

Thread 1 (Thread -1228478784 (LWP 5264)):
#0  0xb7f25410 in ?? ()
No symbol table info available.
#1  0xbfa572e8 in ?? ()
No symbol table info available.
#2  0x1388 in ?? ()
No symbol table info available.
#3  0x0009 in ?? ()
No symbol table info available.
#4  0xb73114d3 in poll () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#5  0xb73d81a9 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#6  0xb73d8537 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#7  0xb7b1a141 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#8  0x0804bd92 in ?? ()
No symbol table info available.
#9  0x0805b000 in ?? ()
No symbol table info available.
#10 0x0804cde4 in _IO_stdin_used ()
No symbol table info available.
#11 0x0804bb20 in ?? ()
No symbol table info available.
#12 0x in ?? ()
No symbol table info available.
#0  0xb7f25410 in ?? ()

According to top, the thread which takes 100% is pid 5264. I don't if it 
matters.

Brice





Bug#377640: gnome-cups-manager: takes 100% CPU without any reason

2006-09-13 Thread Brice Goglin
I was about to close the bug since I didn't see it for 3 weeks. But it
came back this morning. The backtrace is different than the one I
reported first:

(gdb) where
#0  0xb7552c01 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/tls/libpthread.so.0
#1  0xb7603be3 in gnome_cups_request_execute_async () from 
/usr/lib/libgnomecups-1.0.so.1
#2  0xb7601ad4 in gnome_cups_printer_set_default () from 
/usr/lib/libgnomecups-1.0.so.1
#3  0xb7601d20 in _gnome_cups_printer_init () from 
/usr/lib/libgnomecups-1.0.so.1
#4  0xb7601d09 in _gnome_cups_printer_init () from 
/usr/lib/libgnomecups-1.0.so.1
#5  0xb74d7684 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0xbf805088 in ?? ()
#7  0xb7476556 in g_source_get_current_time () from /usr/lib/libglib-2.0.so.0
#8  0xb7476556 in g_source_get_current_time () from /usr/lib/libglib-2.0.so.0
#9  0xb7475e2c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#10 0xb7479176 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#11 0xb7479537 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#12 0xb7bba141 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#13 0x0804bd92 in ?? ()
#14 0x0805b000 in ?? ()
#15 0x0804cde4 in _IO_stdin_used ()
#16 0x0804bb20 in ?? ()
#17 0x in ?? ()


Here's what I have installed here now:

ii  gnome-cups-manager0.31-2 CUPS printer admin tool for GNOME
ii  libgnomecups1.0-1 0.2.2-5GNOME library for CUPS interaction
ii  libgnomecupsui1.0-1c2a0.31-2 UI extensions to libgnomecups
ii  libgnome2-0   2.14.1-3   The GNOME 2 library - runtime files
ii  libgnomecanvas2-0 2.14.0-2   A powerful object-oriented display 
- runtime files
ii  libgnomeui-0  2.14.1-2   The GNOME 2 libraries (User 
Interface) - runtime files
ii  libgnomevfs2-02.14.2-1   GNOME virtual file-system (runtime 
libraries)
ii  libgtk2.0-0   2.8.20-1   The GTK+ graphical user interface 
library
ii  libglib2.0-0  2.10.3-3   The GLib library of C routines


Brice



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#377640: gnome-cups-manager: takes 100% CPU without any reason

2006-09-13 Thread Loïc Minier
On Wed, Sep 13, 2006, Brice Goglin wrote:
 (gdb) where

 Please thread apply all bt full instead to see all threads.

   Thanks,
-- 
Loïc Minier [EMAIL PROTECTED]



Bug#377640: gnome-cups-manager: takes 100% CPU without any reason

2006-08-18 Thread Brice Goglin
Loïc Minier wrote:
 Hi,

 On Mon, Jul 10, 2006, Brice Goglin wrote:
   
 During the last weeks, I have found several times gnome-cups-icon
 taking 100% CPU without any reason. Basically, I wake up the morning,
 my laptop has been doing nothing during the night, I didn't print
 anything since I booted the laptop, no printer has been added/removed,
 but gnome-cups-icon got crazy anyway.
 

  I think this was addressed in recent uploads of gnome-cups-manager /
  libgnomecups, could you confirm it's fixed?

Bye,
   

I can't be sure that I have seen the bug since gnome-cups-manager
entered testing 2 weeks ago. I usually was seeing the bug about once
every 1-2 week. I will close the bug if I don't see the problem in the
next weeks, say by the beginning of september.

Thanks,
Brice




Bug#377640: gnome-cups-manager: takes 100% CPU without any reason

2006-08-18 Thread Loïc Minier
On Fri, Aug 18, 2006, Brice Goglin wrote:
   I think this was addressed in recent uploads of gnome-cups-manager /
   libgnomecups, could you confirm it's fixed?
 I can't be sure that I have seen the bug since gnome-cups-manager
 entered testing 2 weeks ago. I usually was seeing the bug about once
 every 1-2 week. I will close the bug if I don't see the problem in the
 next weeks, say by the beginning of september.

 The fix is more likely to be in libgnomecups which is in since far longer:

libgnomecups (0.2.2-5) unstable; urgency=low

  * Update 24_mem-leak with a nicer version as suggested in the upstream bug
report.

 -- Loic Minier [EMAIL PROTECTED]  Mon,  3 Jul 2006 21:57:57 +0200

libgnomecups (0.2.2-4) unstable; urgency=low

  * New patch, 24_mem-leak, by Samuel Mimram to fix memory leak in
gnome_cups_request_add_requested_attributes(). (Closes: #369083, #375891)

 -- Loic Minier [EMAIL PROTECTED]  Mon,  3 Jul 2006 21:38:36 +0200



-- 
Loïc Minier [EMAIL PROTECTED]



Bug#377640: gnome-cups-manager: takes 100% CPU without any reason

2006-08-18 Thread Loïc Minier
Hi,

On Mon, Jul 10, 2006, Brice Goglin wrote:
 During the last weeks, I have found several times gnome-cups-icon
 taking 100% CPU without any reason. Basically, I wake up the morning,
 my laptop has been doing nothing during the night, I didn't print
 anything since I booted the laptop, no printer has been added/removed,
 but gnome-cups-icon got crazy anyway.

 I think this was addressed in recent uploads of gnome-cups-manager /
 libgnomecups, could you confirm it's fixed?

   Bye,
-- 
Loïc Minier [EMAIL PROTECTED]



Bug#377640: gnome-cups-manager: takes 100% CPU without any reason

2006-08-18 Thread Brice Goglin
Loïc Minier wrote:
 On Fri, Aug 18, 2006, Brice Goglin wrote:
   
  I think this was addressed in recent uploads of gnome-cups-manager /
  libgnomecups, could you confirm it's fixed?
   
 I can't be sure that I have seen the bug since gnome-cups-manager
 entered testing 2 weeks ago. I usually was seeing the bug about once
 every 1-2 week. I will close the bug if I don't see the problem in the
 next weeks, say by the beginning of september.
 

  The fix is more likely to be in libgnomecups which is in since far longer:

 libgnomecups (0.2.2-5) unstable; urgency=low

   * Update 24_mem-leak with a nicer version as suggested in the upstream bug
 report.

  -- Loic Minier [EMAIL PROTECTED]  Mon,  3 Jul 2006 21:57:57 +0200

 libgnomecups (0.2.2-4) unstable; urgency=low

   * New patch, 24_mem-leak, by Samuel Mimram to fix memory leak in
 gnome_cups_request_add_requested_attributes(). (Closes: #369083, #375891)

  -- Loic Minier [EMAIL PROTECTED]  Mon,  3 Jul 2006 21:38:36 +0200
   


Well, I am pretty sure I have seen the bug in the second half of July.
And I don't remember having seen a memory leak problem, I only noticed
the CPU utilization problem. I'll let you know if the bug occurs again.

Thanks,
Brice




Bug#377640: gnome-cups-manager: takes 100% CPU without any reason

2006-07-10 Thread Brice Goglin
Package: gnome-cups-manager
Version: 0.31-1.1
Severity: normal

Hi,

During the last weeks, I have found several times gnome-cups-icon taking 100% 
CPU
without any reason. Basically, I wake up the morning, my laptop has been doing
nothing during the night, I didn't print anything since I booted the laptop, no
printer has been added/removed, but gnome-cups-icon got crazy anyway.

Tracing it in gdb seems to always give the following backtrace. Hope it helps.

Regards,
Brice



[EMAIL PROTECTED]:~$ top
top - 07:48:20 up 17:17,  6 users,  load average: 1.08, 1.02, 1.01
Tasks: 113 total,   2 running, 111 sleeping,   0 stopped,   0 zombie
Cpu(s): 27.3%us, 67.0%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  5.7%si,  0.0%st
Mem:515180k total,   507796k used, 7384k free,30212k buffers
Swap:   497972k total,73424k used,   424548k free,76772k cached

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
 5626 bgoglin   15   0 76840  20m 5900 S 91.9  4.1  70:16.96 gnome-cups-icon
 4543 root   5 -10  151m  64m  12m S  4.7 12.8  21:45.29 Xorg
26525 bgoglin   15   0 39416  17m 7992 R  1.3  3.6   0:38.95 gnome-terminal
 5542 bgoglin   15   0 15088 7772 6340 S  1.0  1.5   1:37.00 metacity
 5540 bgoglin   15   0 29136 6640 6136 S  0.3  1.3   0:06.50 gnome-settings-
 5603 bgoglin   15   0 20596 9.8m 7560 S  0.3  1.9   0:41.23 wnck-applet
 5608 bgoglin   15   0 20496  10m 7920 S  0.3  2.0   0:07.28 stickynotes_app
1 root  15   0  1964  656  564 S  0.0  0.1   0:00.48 init
2 root  34  19 000 S  0.0  0.0   0:00.00 ksoftirqd/0
3 root  RT   0 000 S  0.0  0.0   0:00.00 watchdog/0
4 root  10  -5 000 S  0.0  0.0   0:00.39 events/0
5 root  17  -5 000 S  0.0  0.0   0:00.01 khelper
6 root  10  -5 000 S  0.0  0.0   0:00.01 kthread
9 root  10  -5 000 S  0.0  0.0   0:00.87 kblockd/0
   10 root  10  -5 000 S  0.0  0.0   0:00.52 kacpid
  117 root  10  -5 000 S  0.0  0.0   0:00.02 kseriod
  161 root  15   0 000 S  0.0  0.0   0:00.03 pdflush
  162 root  15   0 000 S  0.0  0.0   0:00.07 pdflush
  163 root  15  -5 000 S  0.0  0.0   0:00.68 kswapd0
  164 root  20  -5 000 S  0.0  0.0   0:00.00 aio/0
  782 root  10  -5 000 S  0.0  0.0   0:02.64 ata/0
  783 root  18  -5 000 S  0.0  0.0   0:00.00 ata_aux
  785 root  16  -5 000 S  0.0  0.0   0:00.00 scsi_eh_0
  789 root  10  -5 000 S  0.0  0.0   0:06.69 scsi_eh_1
  813 root  11  -5 000 S  0.0  0.0   0:00.00 kpsmoused
  818 root  10  -5 000 S  0.0  0.0   0:00.78 kjournald
  919 root  20  -4  2568  376  348 S  0.0  0.1   0:00.15 udevd
[EMAIL PROTECTED]:~$ locate gnome-cups-icon
/usr/bin/gnome-cups-icon
/usr/share/man/man1/gnome-cups-icon.1.gz
[EMAIL PROTECTED]:~$ gdb /usr/bin/gnome-cups-icon 5626
GNU gdb 6.4.90-debian
Copyright (C) 2006 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 i486-linux-gnu...(no debugging symbols found)
Using host libthread_db library /lib/tls/libthread_db.so.1.

Attaching to program: /usr/bin/gnome-cups-icon, process 5626
Reading symbols from /usr/lib/libgnomeui-2.so.0...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libgnomeui-2.so.0
Reading symbols from /usr/lib/libSM.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libSM.so.6
Reading symbols from /usr/lib/libICE.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libICE.so.6
Reading symbols from /usr/lib/libbonoboui-2.so.0...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libbonoboui-2.so.0
Reading symbols from /usr/lib/libgnomecanvas-2.so.0...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libgnomecanvas-2.so.0
Reading symbols from /usr/lib/libart_lgpl_2.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libart_lgpl_2.so.2
Reading symbols from /usr/lib/libgnome-2.so.0...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgnome-2.so.0
Reading symbols from /lib/libpopt.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpopt.so.0
Reading symbols from /usr/lib/libgnomevfs-2.so.0...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libgnomevfs-2.so.0
Reading symbols from /usr/lib/libgconf-2.so.4...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgconf-2.so.4
Reading symbols from /usr/lib/libglade-2.0.so.0...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libglade-2.0.so.0
Reading symbols from