[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#878238: marked as done (xpp segfaults at startup in malloc called from cups httpConnect())



Your message dated Thu, 26 Oct 2017 12:44:14 +0200
with message-id <20171026124414.86925d7ccc39fd43bcb41cbf@kinali.ch>
and subject line xpdf: debian's xpdf fails to render text in graphics while upstream version works
has caused the Debian Bug report #878238,
regarding xpp segfaults at startup in malloc called from cups httpConnect()
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
878238: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878238
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: xpp
Version: 1.5-cvs20081009-3
Severity: important

Good afternoon,

I just upraded my computer from stretch to buster. After a reboot, xpp segfaults.
As I thought that it might have been some library symbols gone bad, I have
rebuilt the package from source, but it still didn't help.

The application crashes before it opens a window at all.

xpp-1.5-cvs20081009 $ gdb ./xpp
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./xpp...done.
(gdb) run
Starting program: /tmp/asdfadsf/xpp-1.5-cvs20081009/xpp 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6dd51cd in malloc_consolidate (
    av=av@entry=0x7ffff70f5b00 <main_arena>) at malloc.c:4221
4221	malloc.c: No such file or directory.
(gdb) bt
#0  0x00007ffff6dd51cd in malloc_consolidate (
    av=av@entry=0x7ffff70f5b00 <main_arena>) at malloc.c:4221
#1  0x00007ffff6dd6dfa in _int_malloc (
    av=av@entry=0x7ffff70f5b00 <main_arena>, bytes=bytes@entry=12808)
    at malloc.c:3488
#2  0x00007ffff6dd9b7b in __libc_calloc (n=<optimized out>, 
    elem_size=<optimized out>) at malloc.c:3274
#3  0x00007ffff7b809db in ?? () from /usr/lib/x86_64-linux-gnu/libcups.so.2
#4  0x00007ffff7b837d1 in httpConnect2 ()
   from /usr/lib/x86_64-linux-gnu/libcups.so.2
#5  0x00007ffff7b8382d in httpConnect ()
   from /usr/lib/x86_64-linux-gnu/libcups.so.2
#6  0x00005555555605ac in CupsHelper::processRequest (
    req=req@entry=0x555555809190, res=res@entry=0x555555568cea "/printers/")
    at cupshelper.cxx:105
#7  0x0000555555560ffa in printFiles::printFiles (this=0x55555579e030, 
    argc=<optimized out>, argv=<optimized out>, exitstat=<optimized out>)
    at xpp.cxx:325
#8  0x000055555555b63b in xppMainWindow::xppMainWindow (this=0x55555579deb0, 
    argc=1, argv=0x7fffffffe1e8, exitstat=@0x7fffffffe0e4: 0)
    at mainwindow.cxx:965
#9  0x0000555555558fa9 in main (argc=1, argv=0x7fffffffe1e8) at xppmain.cxx:51
(gdb) up 6
#6  0x00005555555605ac in CupsHelper::processRequest (
    req=req@entry=0x555555809190, res=res@entry=0x555555568cea "/printers/")
    at cupshelper.cxx:105
105	  http_t	*HTTP = httpConnect(host_,port_);
(gdb) p host_
$1 = "localhost\000cups.sock", '\000' <repeats 236 times>
(gdb) p port_
$2 = 631
(gdb) p *req
$3 = {state = IPP_STATE_IDLE, request = {any = {version = "\002", 
      op_status = 11, request_id = 1}, op = {version = "\002", 
      operation_id = IPP_OP_GET_PRINTER_ATTRIBUTES, request_id = 1}, status = {
      version = "\002", status_code = 11, request_id = 1}, event = {
      version = "\002", status_code = 11, request_id = 1}}, 
  attrs = 0x555555818cb0, last = 0x555555818ad0, current = 0x555555818ad0, 
  curtag = IPP_TAG_ZERO, prev = 0x555555818b10, use = 1, atend = 0, 
  curindex = 0}

>From what I can tell, the call to httpConnect() looks correct. I don't see why that should
cause a segfault.

Any help resolving this would be appreciated.

Thanks in advance.

			Attila Kinali

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages xpp depends on:
ii  libc6       2.24-17
ii  libcups2    2.2.4-7
ii  libfltk1.1  1.1.10-23
ii  libgcc1     1:7.2.0-8
ii  libstdc++6  7.2.0-8

xpp recommends no packages.

xpp suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
The last update of cups seems to have fixed this bug.
Thus closing.

Sorry for the noise

			Attila Kinali

-- 
It is upon moral qualities that a society is ultimately founded. All 
the prosperity and technological sophistication in the world is of no 
use without that foundation.
                 -- Miss Matheson, The Diamond Age, Neil Stephenson

--- End Message ---

Reply to: