Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cups 1.3.6 coredumps #2859

Closed
michaelrsweet opened this issue Jun 12, 2008 · 5 comments
Closed

cups 1.3.6 coredumps #2859

michaelrsweet opened this issue Jun 12, 2008 · 5 comments
Labels
duplicate This issue or pull request already exists priority-high question General usage question
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.3.6
CUPS.org User: SmallOne

Cups coredumps from time to time. No idea why exactly truying to debug the software.

Attaching backtraces from the last coredump

/Johan "SmallOne" Bernhardsson

bt full
#0 0x000000380ea0d1b5 in send () from /lib64/libpthread.so.0

No symbol table info available.
#1 0x00000033c5c164f8 in http_write (http=0x1d150fb0,

buffer=0x7fff38f34a80 "7e7\r\n", length=5) at http.c:3083
    tbytes = 0
    bytes = <value optimized out>

#2 0x00000033c5c165ce in http_write_chunk (http=0x1d150fb0,

buffer=0x1d1537a8 ":</B>\n<INPUT TYPE=\"TEXT\" NAME=\"QUERY\" VALUE=\"\" SIZ                                      E=\"60\"> <INPUT\nTYPE=\"IMAGE\" SRC=\"/images/button-search.gif\" ALT=\"Search\                                      ">\n<A\nHREF=\"/printers/sss0j61p?WHICH_JOBS=completed&amp;ORDER=dec\"><IMG\nSRC                                      =\"/i"..., length=2023) at http.c:3169
    header = "7e7\r\n\000\000\000<f��3\000\000\000bef\r\n\000\000\000\00                                      0�\0                                                                         0                                      37\000\000\200$\030351\r\n\000\000\000�J�8�\177\000\000�G\025\035\000\00                                      0\000\00                                                                       0                                      0\217�D\000\000\000\000\000�6e\000\000\000\000\000�6D\000\000\000\000\000                                       \000\0                                                                         0                                      00\000\000\000\000\000�6D\000\000\000\000\000\022\000\000\000\000\000\000\000\                                      00                                                                             0                                      0�@", '\0' <repeats 13 times>, "z���3\000\000\000p�C\000\000\000\000\0                                      00\022\000                                                                     0                                      \000\000\000\000\000\000@��\034\000\000\000\000\000�@\000\000\000\000\000:                                      \000\0                                                                         0                                      00\000\000\000\000\000\022\000\000\000\000\000\000\000p�C\000\000\000\000\000ï                                      ¿½\0                                                                           0                                      17\025\035\000\000\000\000\t\000\000\000\000\000\000\000@��"...
    bytes = <value optimized out>

#3 0x00000033c5c16694 in httpFlushWrite (http=0x11) at http.c:590

    bytes = <value optimized out>

#4 0x00000033c5c16842 in httpWrite2 (http=0x1d150fb0,

---Type to continue, or q to quit---
buffer=0x7fff38f34bf0 " \n\n\ncompleted at
Thu Jun 12 12:28 :48 20080j61p">sss0j61p-8318 \ntest_n12902_13.pdfp;\nName \nUser \nSize \nPages <"... , length=58) at http.c:2152
bytes =
#5 0x0000000000410a53 in cupsdWriteClient ()

No symbol table info available.
#6 0x000000000043b829 in cupsdDoSelect ()

No symbol table info available.
#7 0x000000000041d98a in main ()

No symbol table info available.

normal bt
#0 0x000000380ea0d1b5 in send () from /lib64/libpthread.so.0
#1 0x00000033c5c164f8 in http_write (http=0x1d150fb0,

buffer=0x7fff38f34a80 "7e7\r\n", length=5) at http.c:3083

#2 0x00000033c5c165ce in http_write_chunk (http=0x1d150fb0,

buffer=0x1d1537a8 ":</B>\n<INPUT TYPE=\"TEXT\" NAME=\"QUERY\" VALUE=\"\" SIZ                                      E=\"60\"> <INPUT\nTYPE=\"IMAGE\" SRC=\"/images/button-search.gif\" ALT=\"Search\                                      ">\n<A\nHREF=\"/printers/sss0j61p?WHICH_JOBS=completed&amp;ORDER=dec\"><IMG\nSRC                                      =\"/i"..., length=2023) at http.c:3169

#3 0x00000033c5c16694 in httpFlushWrite (http=0x11) at http.c:590
#4 0x00000033c5c16842 in httpWrite2 (http=0x1d150fb0,

buffer=0x7fff38f34bf0 "&nbsp;</TD>\n<TD>\n\ncompleted at<BR>Thu Jun 12 12:28                                      :48 20080j61p\">sss0j61p</A>-8318&nbsp;</TD>\n<TD>test_n12902_13.pdfp;</TH>\n<TH                                      >Name&nbsp;</TH>\n<TH>User&nbsp;</TH>\n<TH>Size&nbsp;</TH>\n<TH>Pages&nbsp;<"...                                      , length=58) at http.c:2152

#5 0x0000000000410a53 in cupsdWriteClient ()
#6 0x000000000043b829 in cupsdDoSelect ()
#7 0x000000000041d98a in main ()

(gdb)
"/images/button-search.gif" ALT="Search">\n<A\nHREF="/printers/sss0j61p?WHICH_JOBS=completed&ORDER=dec"><IMG\nSRC="/i"..., length=2023) at http.c:3169
header = "7e7\r\n\000\000\000<f��3\000\000\000bef\r\n\000\000\000\000�\037\000\000\200$\030351\r\n\000\000\000�J�8�\177\000\000�G\025\035\000\000\000\000\217�D\000\000\000\000\000�6e\000\000\000\000\000�6D\000\000\000\000\000 \000\000\000\000\000\000\000�6D\000\000\000\000\000\022\000\000\000\000\000\000\000\000�@", '\0' <repeats 13 times>, "z���3\000\000\000p�C\000\000\000\000\000\022\000\000\000\000\000\000\000@��\034\000\000\000\000\000�@\000\000\000\000\000:\000\000\000\000\000\000\000\022\000\000\000\000\000\000\000p�C\000\000\000\000\000�\017\025\035\000\000\000\000\t\000\000\000\000\000\000\000@��"...
bytes =
#3 0x00000033c5c16694 in httpFlushWrite (http=0x11) at http.c:590

    bytes = <value optimized out>

#4 0x00000033c5c16842 in httpWrite2 (http=0x1d150fb0,

---Type to continue, or q to quit---
buffer=0x7fff38f34bf0 " \n\n\ncompleted at
Thu Jun 12 12:28:48 20080j61p">sss0j61p-8318 \ntest_n12902_13.pdfp;\nName \nUser \nSize \nPages <"..., length=58) at http.c:2152
bytes =
#5 0x0000000000410a53 in cupsdWriteClient ()

No symbol table info available.
#6 0x000000000043b829 in cupsdDoSelect ()

No symbol table info available.
#7 0x000000000041d98a in main ()

No symbol table info available.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: SmallOne

Forgot some stuff :)

We are running our own compiled 1.3.6 on a rhel 5.2 machine.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Can you re-test using the current stable release (1.3.7)?

If the problem still occurs, it would be useful to see an error_log file (LogLevel debug please) and the cupsd.conf file for your system.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: SmallOne

From the error log. I still havent been able to test this with 1.3.7.
/Johan

E [24/Jun/2008:11:05:29 +0200] [Job 465716] No %%BoundingBox: comment in header!
*** glibc detected *** /usr/sbin/cupsd: double free or corruption (!prev): 0x000
00000050c75e0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x34f666f444]
/lib64/libc.so.6(cfree+0x8c)[0x34f6672a6c]
/usr/sbin/cupsd[0x410573]
/usr/sbin/cupsd(cupsdReadClient+0x1bb)[0x41156b]
/usr/sbin/cupsd[0x43ba80]
/usr/sbin/cupsd[0x41d98a]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x34f661d8a4]
/usr/sbin/cupsd[0x409209]

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: SmallOne

The whole text from the error log regarding that job:

I [29/May/2008:13:45:42 +0200] [Job 90386] Adding start banner page "none".
I [29/May/2008:13:45:42 +0200] [Job 90386] Adding job file of type application/p
ostscript.
I [29/May/2008:13:45:42 +0200] [Job 90386] Adding end banner page "none".
I [29/May/2008:13:45:42 +0200] [Job 90386] Queued on "sss0a01p" by "oracle".

I [29/May/2008:13:48:26 +0200] [Job 90386] Started filter /usr/lib/cups/filter/p
stops (PID 13266)
I [29/May/2008:13:48:26 +0200] [Job 90386] Started backend /usr/lib/cups/backend
/socket (PID 13267)
E [29/May/2008:13:48:26 +0200] [Job 90386] No %%BoundingBox: comment in header!
*** glibc detected *** /usr/sbin/cupsd: double free or corruption (!prev): 0x000
000001302dd20 ***
======= Backtrace: =========
/lib64/libc.so.6[0x34f666f444]
/lib64/libc.so.6(cfree+0x8c)[0x34f6672a6c]
/usr/sbin/cupsd[0x40f443]
/usr/sbin/cupsd(cupsdReadClient+0x1bb)[0x41043b]
/usr/sbin/cupsd[0x43a410]
/usr/sbin/cupsd[0x41c79a]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x34f661d8a4]
/usr/sbin/cupsd[0x408a19]
======= Memory map: ========
00400000-00450000 r-xp 00000000 fd:01 387465 /usr/sb
in/cupsd
0064f000-00654000 rw-p 0004f000 fd:01 387465 /usr/sb
in/cupsd
1299e000-1339a000 rw-p 1299e000 00:00 0
34f6200000-34f621a000 r-xp 00000000 fd:00 69751 /lib64/
ld-2.5.so
34f6419000-34f641a000 r--p 00019000 fd:00 69751 /lib64/
ld-2.5.so
34f641a000-34f641b000 rw-p 0001a000 fd:00 69751 /lib64/
ld-2.5.so
34f6600000-34f6746000 r-xp 00000000 fd:00 69752 /lib64/
libc-2.5.so
34f6746000-34f6946000 ---p 00146000 fd:00 69752 /lib64/
libc-2.5.so
34f6946000-34f694a000 r--p 00146000 fd:00 69752 /lib64/
libc-2.5.so
34f694a000-34f694b000 rw-p 0014a000 fd:00 69752 /lib64/
libc-2.5.so

34f694b000-34f6950000 rw-p 34f694b000 00:00 0
34f6a00000-34f6a02000 r-xp 00000000 fd:00 69753 /lib64/
libdl-2.5.so
34f6a02000-34f6c02000 ---p 00002000 fd:00 69753 /lib64/
libdl-2.5.so
34f6c02000-34f6c03000 r--p 00002000 fd:00 69753 /lib64/
libdl-2.5.so
34f6c03000-34f6c04000 rw-p 00003000 fd:00 69753 /lib64/
libdl-2.5.so
34f6e00000-34f6e15000 r-xp 00000000 fd:00 69757 /lib64/
libpthread-2.5.so
34f6e15000-34f7014000 ---p 00015000 fd:00 69757 /lib64/
libpthread-2.5.so
34f7014000-34f7015000 r--p 00014000 fd:00 69757 /lib64/
libpthread-2.5.so
34f7015000-34f7016000 rw-p 00015000 fd:00 69757 /lib64/
libpthread-2.5.so
34f7016000-34f701a000 rw-p 34f7016000 00:00 0
34f7200000-34f7282000 r-xp 00000000 fd:00 69681 /lib64/
libm-2.5.so
34f7282000-34f7481000 ---p 00082000 fd:00 69681 /lib64/
libm-2.5.so
34f7481000-34f7482000 r--p 00081000 fd:00 69681 /lib64/
libm-2.5.so
34f7482000-34f7483000 rw-p 00082000 fd:00 69681 /lib64/
libm-2.5.so
34f7600000-34f7615000 r-xp 00000000 fd:00 69776 /lib64/
libnsl-2.5.so
34f7615000-34f7814000 ---p 00015000 fd:00 69776 /lib64/
libnsl-2.5.so
34f7814000-34f7815000 r--p 00014000 fd:00 69776 /lib64/
libnsl-2.5.so
34f7815000-34f7816000 rw-p 00015000 fd:00 69776 /lib64/
libnsl-2.5.so
34f7816000-34f7818000 rw-p 34f7816000 00:00 0
34f7e00000-34f7e79000 r-xp 00000000 fd:01 131405 /usr/lib64/libgnutls.so.13.0.6
34f7e79000-34f8079000 ---p 00079000 fd:01 131405 /usr/li
b64/libgnutls.so.13.0.6
34f8079000-34f8083000 rw-p 00079000 fd:01 131405 /usr/li
b64/libgnutls.so.13.0.6
34f8200000-34f8214000 r-xp 00000000 fd:01 131334 /usr/li
b64/libz.so.1.2.3
34f8214000-34f8413000 ---p 00014000 fd:01 131334 /usr/li
b64/libz.so.1.2.3
34f8413000-34f8414000 rw-p 00013000 fd:01 131334 /usr/li
b64/libz.so.1.2.3
34f8600000-34f8605000 r-xp 00000000 fd:00 69766 /lib64/
libcrypt-2.5.so
34f8605000-34f8804000 ---p 00005000 fd:00 69766 /lib64/
libcrypt-2.5.so
34f8804000-34f8805000 r--p 00004000 fd:00 69766 /lib64/
libcrypt-2.5.so
34f8805000-34f8806000 rw-p 00005000 fd:00 69766 /lib64/
libcrypt-2.5.so
34f8806000-34f8834000 rw-p 34f8806000 00:00 0
34f8a00000-34f8a0d000 r-xp 00000000 fd:00 69762 /lib64/
libgcc_s-4.1.2-20070626.so.1
34f8a0d000-34f8c0d000 ---p 0000d000 fd:00 69762 /lib64/
libgcc_s-4.1.2-20070626.so.1
34f8c0d000-34f8c0e000 rw-p 0000d000 fd:00 69762 /lib64/
libgcc_s-4.1.2-20070626.so.1
34f9200000-34f9203000 r-xp 00000000 fd:01 131371 /usr/li
b64/libgpg-error.so.0.3.0
34f9203000-34f9402000 ---p 00003000 fd:01 131371 /usr/li
b64/libgpg-error.so.0.3.0
34f9402000-34f9403000 rw-p 00002000 fd:01 131371 /usr/li
b64/libgpg-error.so.0.3.0
34faa00000-34faa4a000 r-xp 00000000 fd:01 131310 /usr/li
b64/libgcrypt.so.11.2.2
34faa4a000-34fac4a000 ---p 0004a000 fd:01 131310 /usr/li
b64/libgcrypt.so.11.2.2
34fac4a000-34fac4c000 rw-p 0004a000 fd:01 131310 /usr/li
b64/libgcrypt.so.11.2.2
34fac4c000-34fac4d000 rw-p 34fac4c000 00:00 0
3571600000-3571634000 r-xp 00000000 fd:01 132294 /usr/li
b64/libcups.so.2
3571634000-3571833000 ---p 00034000 fd:01 132294 /usr/li
b64/libcups.so.2
3571833000-3571836000 rw-p 00033000 fd:01 132294 /usr/li
b64/libcups.so.2
3571a00000-3571a03000 r-xp 00000000 fd:00 69756 /lib64/
libcap.so.1.10
3571a03000-3571c03000 ---p 00003000 fd:00 69756 /lib64/
libcap.so.1.10
3571c03000-3571c04000 rw-p 00003000 fd:00 69756 /lib64/
libcap.so.1.10
3571e00000-3571e12000 r-xp 00000000 fd:00 69691 /lib64/
libaudit.so.0.0.0
3571e12000-3572012000 ---p 00012000 fd:00 69691 /lib64/
libaudit.so.0.0.0
3572012000-3572014000 rw-p 00012000 fd:00 69691 /lib64/
libaudit.so.0.0.0
3572200000-3572236000 r-xp 00000000 fd:00 69782 /lib64/
libdbus-1.so.3.2.0
3572236000-3572435000 ---p 00036000 fd:00 69782 /lib64/
libdbus-1.so.3.2.0
3572435000-3572437000 rw-p 00035000 fd:00 69782 /lib64/
libdbus-1.so.3.2.0
3572600000-357260b000 r-xp 00000000 fd:00 69728 /lib64/
libpam.so.0.81.5
357260b000-357280a000 ---p 0000b000 fd:00 69728 /lib64/
libpam.so.0.81.5
357280a000-357280b000 rw-p 0000a000 fd:00 69728 /lib64/
libpam.so.0.81.5
2aaaaaaab000-2aaaaaaac000 rw-p 2aaaaaaab000 00:00 0
2aaaaaab5000-2aaaaaabc000 rw-p 2aaaaaab5000 00:00 0
2aaaaaabc000-2aaaae096000 r--p 00000000 fd:01 99269 /usr/lib/locale/locale-archive
2aaaae096000-2aaaae0cb000 r--s 00000000 fd:06 163852 /var/db
/nscd/passwd
2aaaae0cb000-2aaaae100000 r--s 00000000 fd:06 163853 /var/db
/nscd/group
2aaaae109000-2aaaae113000 r-xp 00000000 fd:00 69660 /lib64/
libnss_files-2.5.so
2aaaae113000-2aaaae312000 ---p 0000a000 fd:00 69660 /lib64/
libnss_files-2.5.so
2aaaae312000-2aaaae313000 r--p 00009000 fd:00 69660 /lib64/
libnss_files-2.5.so
2aaaae313000-2aaaae314000 rw-p 0000a000 fd:00 69660 /lib64/
libnss_files-2.5.so
2aaaae314000-2aaaae349000 r--s 00000000 fd:06 163854 /var/db
/nscd/hosts
2aaab0000000-2aaab0021000 rw-p 2aaab0000000 00:00 0
2aaab0021000-2aaab4000000 ---p 2aaab0021000 00:00 0
7fffb2121000-7fffb2170000 rw-p 7fffb2121000 00:00 0 [stack]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vdso]

And when cups is restarted the jobs completes successfully

I [29/May/2008:13:49:30 +0200] [Job 90386] Started filter /usr/lib/cups/filter/pstops (PID 13291)
I [29/May/2008:13:49:30 +0200] [Job 90386] Started backend /usr/lib/cups/backend/socket (PID 13292)
I [29/May/2008:13:49:39 +0200] [Job 90386] Completed successfully.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Dupe of STR #2823

@michaelrsweet michaelrsweet added priority-high duplicate This issue or pull request already exists question General usage question labels Mar 17, 2016
@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists priority-high question General usage question
Projects
None yet
Development

No branches or pull requests

1 participant