Bug#992721: hplip: Scanning with Deskjet 3050A J611 crash

2021-09-26 Thread Bernhard Übelacker
Am 21.09.21 um 18:36 schrieb Florence Birée: Hi, I applied the patch and try it on hplip 3.21.6+dfsg0-1. No more stack smashing. But at a random point during the scan, simple-scan stop and display a message : « Failed to scan - Error communicating with scanner ». Nothing in the terminal nor in

Bug#992721: hplip: Scanning with Deskjet 3050A J611 crash

2021-09-20 Thread Bernhard Übelacker
regards, Bernhard Description: Resize buffer and try not to overrun it Author: Bernhard Übelacker Bug-Debian: https://bugs.debian.org/992721 Forwarded: no Last-Update: 2021-09-20 Index: hplip-3.21.6+dfsg0/scan/sane/bb_ledm.c

Bug#992721: hplip: Scanning with Deskjet 3050A J611 crash

2021-09-16 Thread Bernhard Übelacker
Am 16.09.21 um 00:29 schrieb Bernhard Übelacker: exceeds what is with these 7 places possible (would be 268 MB ?) Short correction: 6 bytes for the hex number and 1 byte termination. Would just give something around 16 MB as a maximum? Kind regards, Bernhard

Bug#992721: hplip: Scanning with Deskjet 3050A J611 crash

2021-09-15 Thread Bernhard Übelacker
Hello Florence, dear Maintainer, Stack trace of thread 113079: #0 0x7f858b12ae71 raise (libc.so.6 + 0x3ce71)

Bug#992721: hplip: Scanning with Deskjet 3050A J611 crash

2021-09-13 Thread Bernhard Übelacker
Hello Florence, there might be still something that could be done to retrieve some more information (if you have still the versions installed that show the issue). The easiest first thing might be to install the package systemd-coredump, if possible. Then open in another terminal 'journalctl -f'

Bug#987566: ghostscript: PDF Interpreter error on armel

2021-06-01 Thread Bernhard Übelacker
Am 31.05.21 um 21:49 schrieb Adrian Bunk: #975977 comes into my mind as a similar bug in a different package. Unfortunately in this bug it was possible to do a side by side debugging, that way the exact instruction could be identified, and the relation to the alignment was found. But with gho

Bug#987566: ghostscript: PDF Interpreter error on armel

2021-05-18 Thread Bernhard Übelacker
Hello Guilhem, hello Jonas, might this be a similar or the same issue as in #942055 ? I took the example file from this issue, created an armel buster chroot and ran it once at my arm5tel device, and once at a armv7l cpu android device (unfortunately with a non-debian kernel). - with the arm5tel

Bug#972339: armhf: hpcups crashes with free() invalid pointer for some printers

2021-02-27 Thread Bernhard Übelacker
Hello Didier, I have retried with the patch in #974828, but it still crashed with the test files from this bug, therefore I guess #974828 is similar but unrelated. Then I took another look at the valgrind runs and found that these invalid reads and writes also appear at amd64. After some diggin

Bug#974828: printer-driver-hpcups: SIGABRT with "free(): invalid next size (normal)" in HPCupsFilter::cleanup

2021-02-27 Thread Bernhard Übelacker
Hello Ian, Am 27.02.21 um 08:49 schrieb Ian Campbell: On Fri, 2021-02-26 at 15:41 +0100, Bernhard Übelacker wrote: The attached patch is an attempt to grow the buffer size if the header changes on a new page. This is just tested for the given crash, nothing more, therefore there might be side

Bug#974828: printer-driver-hpcups: SIGABRT with "free(): invalid next size (normal)" in HPCupsFilter::cleanup

2021-02-26 Thread Bernhard Übelacker
argv=0x7ffc2a13fd48) at prnt/hpcups/HPCupsFilter.cpp:617 ... Description: Grow m_pPrinterBuffer if needed on each page Author: Bernhard Übelacker Bug-Debian: https://bugs.debian.org/974828 Bug-Ubuntu: https://launchpad.net/bugs/1904318 Last-Update: 2021-02-26 In

Bug#974828: Fwd: Bug#974828: printer-driver-hpcups: SIGABRT with "free(): invalid next size (normal)" in HPCupsFilter::cleanup

2021-02-25 Thread Bernhard Übelacker
Sorry missed your email. Weitergeleitete Nachricht Betreff: Re: Bug#974828: printer-driver-hpcups: SIGABRT with "free(): invalid next size (normal)" in HPCupsFilter::cleanup Datum: Thu, 25 Feb 2021 17:03:02 +0100 Von: Bernhard Übelacker An: 974...@bugs.debian.or

Bug#974828: printer-driver-hpcups: SIGABRT with "free(): invalid next size (normal)" in HPCupsFilter::cleanup

2021-02-25 Thread Bernhard Übelacker
Hello Ian, I tried to collect some informations for the maintainer in the other report #972339. Therefore I tried to reproduce this issue now too, because my amd64 hardware is much faster as my armhf systems... But I failed to reproduce maybe because I use the wrong ppd file, or something else mi

Bug#972339: armhf: hpcups crashes with free() invalid pointer for some printers

2020-10-24 Thread Bernhard Übelacker
Dear Maintainer, I could reproduce this issue too. Attached is a valgrind run showing one invalid write and a gdb session showing the issue. It looks like mallocs management data, which resides in the 8 bytes before a returned pointer, gets overwritten and therefore the free fails because "mchunk

Bug#970878: ghostscript breaks doc-rfc autopkgtest: segmentation fault

2020-10-10 Thread Bernhard Übelacker
Dear Maintainer, tried to have a look at this one, found the segfault [1], and can point to the place where the pointer gets overwritten [2]. Unfortunately Valgrind or ASAN gave me not more details. Kind regards, Bernhard [1] Program received signal SIGSEGV, Segmentation fault. 0x7fa54364fc1

Bug#961345: cups: daemon crashes with invalid free()

2020-09-03 Thread Bernhard Übelacker
Am 02.09.20 um 10:20 schrieb Ronny Adsetts: > Hi Bernhard, > > Good news. I don't see any "invalid free" reports. > > Can I thank you again for your time and energy in solving this. It really is > appreciated. > > Let me know if there's anything I can do to help get this patch upstreamed. > >

Bug#961345: cups: daemon crashes with invalid free()

2020-09-01 Thread Bernhard Übelacker
Hello Ronny, > Incidentally, stopping the cups service (new packages) after a single print > job when under valgrind gave this in case it's related: > > Aug 28 10:03:59 samba-prn-01.graysofwestminster.co.uk systemd[1]: Stopping > CUPS Scheduler... > Aug 28 10:04:00 samba-prn-01.graysofwestmins

Bug#961345: cups: daemon crashes with invalid free()

2020-08-27 Thread Bernhard Übelacker
Hello Ronny, unfortunately I don't have any pointers on that httpAddrGetList. So you were able to build a package? One additional note: I guess with "quilt refresh" any new changes get added to the last patch. A 'dpkg-source --commit' would create a new separate patch file. Kind regards, Bernha

Bug#961345: cups: daemon crashes with invalid free()

2020-08-26 Thread Bernhard Übelacker
Hello Ronny, I tried to have a look and I get the feeling that there is a disagreement if the attribute "printer-alert" is of type IPP_TAG_TEXT or IPP_TAG_STRING. Also it is the only line I found at a glance that calls ippAddString with a IPP_TAG_STRING. Other attributes of type IPP_TAG_STRING se

Bug#961345: cups: daemon crashes with invalid free()

2020-08-25 Thread Bernhard Übelacker
Am 25.08.20 um 14:40 schrieb Ronny Adsetts: > In which case a backport of valgrind would be dead handy. :-). You might be able to build one yourself: (maybe inside a VM too, because several build dependencies get installed ...) # Buster/stable amd64 qemu VM 2020-08-25 apt update apt build-dep v

Bug#961345: cups: daemon crashes with invalid free()

2020-08-25 Thread Bernhard Übelacker
Am 25.08.20 um 11:02 schrieb Ronny Adsetts: > Aug 25 09:56:32 samba-prn-01 valgrind[28088]: ==28088==by 0x13076D: ??? > (in /usr/sbin/cupsd) > Aug 25 09:56:32 samba-prn-01 valgrind[28088]: ==28088==by 0x5AC5261: ??? > Aug 25 09:56:32 samba-prn-01 valgrind[28088]: ==28088==by 0x5F44D23F

Bug#961345: cups: daemon crashes with invalid free()

2020-08-25 Thread Bernhard Übelacker
Hello Ronny Am 25.08.20 um 10:14 schrieb Ronny Adsetts: >> I tried to run it in a VM and tested with some virtual PDF and PS >> printer. Following were the configuration changes to have it run >> under valgrind. >> >> nano /lib/systemd/system/cups.service >> >> -ExecStart=/usr/sbin/cupsd -l +# Ex

Bug#961345: cups: daemon crashes with invalid free()

2020-08-24 Thread Bernhard Übelacker
Hello Ronny, Am 24.08.20 um 13:12 schrieb Ronny Adsetts: > The "bt full" on a recent crash: Unfortunately I cannot find something striking. >> Otherwise running cupsd within valgrind could also give some hints. > > I'll see if I can do this. I'll have to schedule some down time so it won't

Bug#961345: cups: daemon crashes with invalid free()

2020-08-22 Thread Bernhard Übelacker
Hello Ronny, sorry for the delay. You wrote you recompiled - then I guess your build directory should also contain the libcups2-dbgsym and cups-daemon-dbgsym packages. If you still get this crash, could you install these dbgsym packages from your build and recreate that backtrace in coredumpctl? A

Bug#968787: No printer can be installed in cups

2020-08-21 Thread Bernhard Übelacker
Hello Karsten, Am 21.08.20 um 18:21 schrieb Karsten: >> Unfortunately I did not get the message >> "Gesamte Anfrage zu gross" / "Request Entity Too Large". > > Hmmm - there are many details not working in Debian 10. > Maybe because this version has been upgraded. >From which debian version did

Bug#968787: No printer can be installed in cups

2020-08-21 Thread Bernhard Übelacker
Hello Karsten, I am no involved in the packaging cups but I tried to reproduce your cups issue inside a minimal VM. Unfortunately I did not get the message "Gesamte Anfrage zu gross" / "Request Entity Too Large". Therefore it seems you need to supply some more informations like - with which user

Bug#940317: Re : Bug#940317: hplip: No more printing

2020-08-15 Thread Bernhard Übelacker
Dear Maintainer, after additionally re-reading the merged bugs I think I realized that function IsChromeOs searches the line "NAME=...", but finds the line "PRETTY_NAME=...", which overflows the variable os_name. Kind regards, Bernhard

Bug#940317: Re : Bug#940317: hplip: No more printing

2020-08-15 Thread Bernhard Übelacker
Dear Maintainer, I was able to reproduce this issue, kind of. I guess the debian release name stored in /etc/os-release is too long. Therefore in /usr/lib/cups/filter/hpcups in function IsChromeOs the local array os_name with length 30 is overwritten by 1 byte. At least that issue I received whe

Bug#961345: cups: daemon crashes with invalid free()

2020-05-25 Thread Bernhard Übelacker
Hello Peter, I am not involved in packaging cups, just trying to help to collect some information. If possible you could install the package systemd-coredump. Then in the journal might then appear additional information where the problem occoured, that could help identifying the issue. Kind regar

Bug#954901: ghostscript: runtime error: malloc(): invalid size (unsorted)

2020-04-18 Thread Bernhard Übelacker
Sorry, the file I attached in message #10 was for a different bug, unrelated to this one. Created upstream bug: https://bugs.ghostscript.com/show_bug.cgi?id=702346

Bug#954901: ghostscript: runtime error: malloc(): invalid size (unsorted)

2020-03-26 Thread Bernhard Übelacker
Dear Maintainer, I tried to collect some more information and might have found something. The allocator aborts at the backtrace below. A valgrind run points to the same function txt_add_fragment. There is seems that in line 2121 the allocation takes place with 12 bytes total, then a memset is do

Bug#954315: rastertopwg segfault

2020-03-20 Thread Bernhard Übelacker
Hello Till, I am not the initial reporter of the issue and I cannot reproduce it, therefore cannot test the suggested change. Just tried to share my results. Kind regards, Bernhard

Bug#954315: rastertopwg segfault

2020-03-20 Thread Bernhard Übelacker
Hello, the stack trace should look like this with line numbers, if it helps: 0x7...671 in __strlen_avx2 at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65 0x7...2f4 in _cups_strlcpy at string.c:739 0x5...a31 in main at rastertopwg.c:274 0x7...e09 in __libc_start_main

Bug#952684: cups: segfault in printers.cgi when browsing finished jobs in the cups webpage

2020-02-27 Thread Bernhard Übelacker
Package: cups Version: 2.2.10-6+deb10u2 Severity: normal Dear Maintainer, I found today some suspicious segfault line in dmesg output and could reproduce it every time I loaded the finished jobs of a printer with this URL: http://localhost:631/printers/Samsung_CLX-3180_Series?which_jobs=co

Bug#950669: cups-browsed: segfault at 0 ip 00000000f79ffb5b sp 00000000fffd3828 error 4 in libc-2.29.so

2020-02-10 Thread Bernhard Übelacker
Hello Thorsten, Am 06.02.20 um 19:19 schrieb Thorsten Glaser: > On Thu, 6 Feb 2020, Bernhard Übelacker wrote: > >> Hello Thorsten, >> getting the source of such an address is possible, even with ASLR, >> if the library versions are known and dbgsyms are available,

Bug#950669: cups-browsed: segfault at 0 ip 00000000f79ffb5b sp 00000000fffd3828 error 4 in libc-2.29.so

2020-02-06 Thread Bernhard Übelacker
Hello Thorsten, getting the source of such an address is possible, even with ASLR, if the library versions are known and dbgsyms are available, like in attached file. It looks like a null pointer is given to strncasecmp_l. But you are right, this information might still not be very useful, becaus

Bug#942055: ghostscript in buster partly broken on armel?

2020-02-05 Thread Bernhard Übelacker
Hello Jonas, thanks for taking time for this bug. Am 05.02.20 um 11:02 schrieb Jonas Smedegaard: > Hi Alexander, > > Quoting Alexander Reichle-Schmehl (2020-02-05 08:45:05) >> Am 2020-02-04 22:09, schrieb Jonas Smedegaard: >> >>> Most notable change between 9.22 and 9.24 - and also applied to >

Bug#942055: ghostscript in buster partly broken on armel?

2020-02-04 Thread Bernhard Übelacker
Control: fixed -1 9.26a~dfsg-0+deb9u6 Control: fixed -1 9.26a~dfsg-0+deb9u1 Control: fixed -1 9.25~dfsg-0+deb9u1 Control: found -1 9.27~dfsg-3.1 Control: found -1 9.27~dfsg-3 Control: found -1 9.26a~dfsg-2 Control: found -1 9.26a~dfsg-1 Control: found -1 9.26~dfsg-2 Control: found -1 9.26~dfsg-1 Co

Bug#931818: Info received (Bug#931818: cups: Jobs webpage /usr/lib/cups/cgi-bin/jobs.cgi segfault after package login removes /etc/securetty)

2019-07-16 Thread Bernhard Übelacker
Hello Jeffrey Hundstad, your supplied backtrace would most likely look with debug symbols like this: (gdb) bt #0 __strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:79 #1 0x77dcbdae in __GI___strdup () at strdup.c:41 #2 0xb795 in cgiGetArray () at var.c:171 #3 0x000

Bug#931818: Info received (Bug#931818: cups: Jobs webpage /usr/lib/cups/cgi-bin/jobs.cgi segfault after package login removes /etc/securetty)

2019-07-12 Thread Bernhard Übelacker
Hello Jeffrey Hundstad, sorry, I forget to mention that it would help with the backtrace if the debug symbols would be installed. For jobs.cgi I assume this would be cups-dbgsym. These packages are in a separate repository. Details are about it are in this page: https://wiki.debian.org/HowToGetAB

Bug#931818: cups: Jobs webpage /usr/lib/cups/cgi-bin/jobs.cgi segfault after package login removes /etc/securetty

2019-07-12 Thread Bernhard Übelacker
Hello Jeffrey Hundstad, just looking at some crashes in some random packages, I just tried to reproduce this issue inside a minimal qemu VM. But hit just the line "Couldn't open...", not the segfault. Also with a simple test printer configured and a test page job. If it is possible you could insta

Bug#916765: cups-browsed: Aborts when restarted with "BrowseFilter pdl postscript"

2018-12-21 Thread Bernhard Übelacker
Hello Brian Potkin, you might have a look at following commands to build a complete local cups-browsed package with the upstream patch included. That may work better, as a plain make built shared lib might be not enough compatible with the executable from the debian package. Just if you do not wa

Bug#916765: cups-browsed: Aborts when restarted with "BrowseFilter pdl postscript"

2018-12-20 Thread Bernhard Übelacker
Hello Brian Potkin, > You got exactly what I was shown. You are right, and I just wanted to make a point how someone who want to help can start right away with all the needed information. > Do you really think reportbug would have added an imortant clue? It > was clear that my original report wa

Bug#916765: cups-browsed: Aborts when restarted with "BrowseFilter pdl postscript"

2018-12-20 Thread Bernhard Übelacker
Control: found cups-browsed 1.11.6-3 And probably I was not clear in my message #36: - I may have found something that could lead to your sitation, and attached a change that might avoid it. - I could not reproduce the crash because I do not have such printers. - Maintainer or Upstream are need

Bug#916765: cups-browsed: Aborts when restarted with "BrowseFilter pdl postscript"

2018-12-20 Thread Bernhard Übelacker
Hello Brian Potkin, > Does the efficient and correct operation of a program depend on whether > the system is amd64 or i386? Most of my machines are i386 only and, to > my knowledge, Debian has not abandoned this architecture. > > I was probably incorrect in thinking I had tested the offending di

Bug#916765: cups-browsed: Aborts when restarted with "BrowseFilter pdl postscript"

2018-12-20 Thread Bernhard Übelacker
Dear Maintainer, hello Brian Potkin, > Thanks. All this is very new to me. I hope it is what is needed and > > someone can interpret it! Thanks for the information, in my first attempts I was under the impression you are on a amd64 system becau

Bug#916765: cups-browsed: Aborts when restarted with "BrowseFilter pdl postscript"

2018-12-20 Thread Bernhard Übelacker
Hello Brian Potkin, I tried to have a look in a unstable VM, but unfortunately I get different offsets ... You might add the output of this command: dpkg -l | grep -E "cups-browsed|libc6|libglib|libavahi|libdbus" | sort And what output did you receive from this command coredumpctl list and f

Bug#916765: cups-browsed: Aborts when restarted with "BrowseFilter pdl postscript"

2018-12-18 Thread Bernhard Übelacker
Hello Brian Potkin, you might want to install a core dump collector like systemd-coredump. With that in place you might get a more verbose message in journalctl. Also a later inspection of the coredump might be possible: coredumpctl list coredumpctl gdb [PID] bt quit And even better when hav

Bug#907399: Logs with systemd-coredump

2018-09-01 Thread Bernhard Übelacker
Hello, was not sure what to test also. At least these steps led me to a crashing cups-browsed: - Rebuilt cups-browsed and installed to know the issue remains in the rebuilt package: dpkg-buildpackage -b dpkg -i cups-browsed_1.21.1-1_amd64.deb cups-browsed-dbgsym_1.21.1-1_amd64.deb libcu

Bug#907399: Logs with systemd-coredump

2018-09-01 Thread Bernhard Übelacker
Hello, just a short addition. Attached patch might already be enough to fix this issue. It makes DomainSocket gets assigned a copy of the string literal. That copy should be possible to free later. This patch is untested except the package can be built. Kind regards, Bernhard Description: Avoid

Bug#907399: Logs with systemd-coredump

2018-09-01 Thread Bernhard Übelacker
Hello, I had a closer look to the core dump. The backtrace shows as follows: (gdb) bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 #1 0x7fd5463d62f1 in __GI_abort () at abort.c:79 #2 0x7fd546417867 in __libc_message (action=action@entry=do_abo

Bug#907399: cups-browsed: munmap_chunk(): invalid pointer

2018-08-27 Thread Bernhard Übelacker
Hello Francois Marier, you could try to get more information from that crash by installing the package systemd-coredump. When the next crash happened you might call following: $ coredumpctl gdb Probably with the following debug symbol package installed [1]: cups-browsed-dbgsym Kind regards

Bug#855325: Acknowledgement (libgs9: I updated yesterday my Wheeze System and now libgs.so.9 seggfault while printing with cups)

2017-05-24 Thread Bernhard Übelacker
Hello Michelle Konzack, not being maintainer I was just curious about this problem, so I tried to reproduce ... - Installed a amd64 Wheezy VM - Inside installed cups-pdf printer. - Changed in /etc/cups/cupsd.conf from "LogLevel warn" to "LogLevel debug" Then following commands led not to the same