Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9201 - cups 1.1.16 started but freeze
Summary: cups 1.1.16 started but freeze
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Donny Davies (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-16 11:53 UTC by gaplo
Modified: 2003-02-04 19:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gaplo 2002-10-16 11:53:31 UTC
cupsd freezed in default runlevel.
Tried to start in console, using /etc/init.d/cupsd start, it freeze, didn't show
the word [OK] or even error, but cupsd is started as I can open the admin page
http://localhost:631 from browsers.
Played around with the *.conf files in /etc/cups/, those conf files work well
with cups 1.1.15-r2 but not cups 1.1.16.
Comment 1 Marko Daniel 2002-10-17 05:30:03 UTC
I've got the same problem. cupsd actually starts (and works) but fails to run in
the background. As it stays in the foreground, the init script waits and waits
and waits...

Comment 2 gaplo 2002-10-17 08:34:12 UTC
However, I have got a strange situation. I have two machine installed Gentoo
Linux also cups 1.1.16, my notebook works with 1.1.16 but not my desktop. My
notebook is updated from 1.1.15-r2 to 1.1.16, I tried to emerge cups 1.1.15-r2
in my desktop then update to 1.1.16 but the problem still remain.

Both machines are fully compiled with gcc-3.2-r1, one is Pentium 3 while the
desktop is Pentium 4, is it related? Both using kernel 2.4.19-gentoo-r9.
Comment 3 Klaus Kusche 2002-10-18 10:49:16 UTC
Same here: cups works, but the init script hangs forever. Calling "cupsd" from
the command line also hangs forever. This is 1.1.16, previous version was fine.

It is not gcc-3.2 related, my system is still 3.1.1.

Dumping it gives the following backtrace:
#0  0x004190c9 in __wait4 () at __wait4:-1
#1  0x0049ad50 in __DTOR_END__ () from /lib/libc.so.6
#2  0x0805cdd2 in main (argc=1, argv=0xb1cb5d6c) at main.c:184
#3  0x003900fe in __libc_start_main () from /lib/libc.so.6

Tail of an strace:
munmap(0x290000, 35359)                 = 0
fork()                                  = 32209
rt_sigaction(SIGUSR1, {0x805d3a4, [USR1],
SA_STACK|SA_RESTART|SA_INTERRUPT|SA_ONESHOT|0x588e9c0}, NULL, 8) = 0
rt_sigaction(SIGHUP, {SIG_IGN}, NULL, 8) = 0
wait4(-1, 0xb988a8bc, 0, NULL)          = ? ERESTARTSYS (To be restarted)
--- SIGUSR1 (User defined signal 1) ---
sigreturn()                             = ? (mask now [])
wait4(-1,
Comment 4 Tobias Sager 2002-10-18 17:58:56 UTC
this diff fixes the problem for me ([tm] as usual):

--- cupsd.rc6   2002-05-05 00:45:53.000000000 +0200
+++ cupsd.rc6.fix       2002-10-19 00:57:30.000000000 +0200
@@ -9,7 +9,7 @@
 
 start() {
        ebegin "Starting cupsd"
-       start-stop-daemon --start --quiet --exec /usr/sbin/cupsd
+       start-stop-daemon --start --quiet --exec /usr/sbin/cupsd -- -F &
        eend $?
 }
 
Comment 5 Tobias Sager 2002-10-18 18:00:02 UTC
Sorry. Forgot to mention.

Patch in the /usr/portage/net-print/cups/files directory.
This will change the /etc/init.d/cupsd script after emerging.

Regards,
Tobias
Comment 6 Donny Davies (RETIRED) gentoo-dev 2002-10-19 00:21:33 UTC
hi.

just cp /usr/portage/net-print/cups/files/cupsd.rc6 /etc/init.d/cupsd
and you should be fixed.

i added --background to start-stop-daemon.

bye.