[Bug 1516771] [NEW] Sync guilt 0.36-1 from Debian

2015-11-16 Thread Per Cederqvist
Public bug reported:

Version 0.36 of guilt has been released a while ago, and Debian have
now released 0.36-0.1: https://packages.debian.org/sid/guilt 

Please include this version in Ubuntu.

** Affects: guilt (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1516771

Title:
  Sync guilt 0.36-1 from Debian

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/guilt/+bug/1516771/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1247757] Re: expect uses memcpy instead of memmove to copy overlapping memory

2013-11-04 Thread Per Cederqvist
** Attachment added: The trigger2.expect file as an attachment
   
https://bugs.launchpad.net/ubuntu/+source/expect/+bug/1247757/+attachment/3899625/+files/trigger2.expect

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1247757

Title:
  expect uses memcpy instead of memmove to copy overlapping memory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/expect/+bug/1247757/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1247757] [NEW] expect uses memcpy instead of memmove to copy overlapping memory

2013-11-04 Thread Per Cederqvist
Public bug reported:

The ecases_remove_by_expi() function in expect.c uses memcpy() to shift
elements down. The areas can be overlapping. When they are, the
construct is non-portable and can lead to memory corruption.

Please replace the memcpy call with a memmove call. That fixes the
issue. I have attached a proposed patch.

I have already reported this issue at Debian: http://bugs.debian.org
/cgi-bin/bugreport.cgi?bug=728663

Debian has accepted the patch.

I have also reported it upstream:
https://sourceforge.net/p/expect/patches/16/

The following script demonstrates the problem. Save it in a file called
trigger2.expect and run the following:

$ valgrind expect trigger2.expect

You will see an error message similar to:

==10665== Source and destination overlap in memcpy(0x60b9170, 0x60b9178, 16)
==10665==at 0x4C2E820: memcpy@@GLIBC_2.14 (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)

(Note: it seems that valgrind 3.7 does not detect this, but valgrind
3.8.1 does detect it.)

---cut here for trigger2.expect---
#!/usr/bin/env expect

spawn cat
set a $spawn_id

spawn sleep 1
set b $spawn_id

set spawn_id $a

expect_after {
-i $a full_buffer { }
-i $b full_buffer { }
timeout { }
}

expect eof { }
---cut here for trigger2.expect---

It would be nice if this fix was backported to versions of Ubuntu that
are still supported with updates.

** Affects: expect (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: patch patch-accepted-debian testcase

** Patch added: Suggested fix.
   
https://bugs.launchpad.net/bugs/1247757/+attachment/3899624/+files/expect5.45-memmove.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1247757

Title:
  expect uses memcpy instead of memmove to copy overlapping memory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/expect/+bug/1247757/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1247757] Re: expect uses memcpy instead of memmove to copy overlapping memory

2013-11-04 Thread Per Cederqvist
** Tags added: patch-accepted-upstream

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1247757

Title:
  expect uses memcpy instead of memmove to copy overlapping memory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/expect/+bug/1247757/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 947432] Re: compiz crashed with SIGSEGV during login, with XBMC autostarting

2012-03-05 Thread Per Cederqvist
** Visibility changed to: Public

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/947432

Title:
  compiz crashed with SIGSEGV during login, with XBMC autostarting

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/947432/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 822910] Re: 6.06 upgrade fails due to bad repo?

2011-08-09 Thread Per Cederqvist
Robb, you did not describe exactly what happened when you attempted to
upgrade.  I'm having trouble upgrading a 8.10 server, and the root cause
of both our problems may be that the UpgradeTool of
http://changelogs.ubuntu.com/meta-release points to non-existing URLs
for both 8.10 and 6.06.

When I run sudo do-release-upgrade I get the following output:

  Checking for a new ubuntu release
  Failed Upgrade tool signature
  Failed Upgrade tool
  Done downloading
  extracting 'jaunty.tar.gz'
  Failed to extract
  Extracting the upgrade failed. There may be a problem with the network or 
with the server. 

Not very helpful.  Using strace I'm able to retrive the real error
messages:

  sudo strace -f -s 7 -o /tmp/release.strace  do-release-upgrade

Afterwards, in the /tmp/release.strace file I can see that it fetches the 
meta-release file
and stores it in /var/lib/update-manager/meta-release.  It seems to try to use 
the 
UpgradeTool URL from that file to retrieve jaunty.tar.gz.  I see this error 
message:

  28281 ... read resumed 400 URI Failure\nURI:
http://archive.ubuntu.com/ubuntu/dists/jaunty-proposed/main/dist-
upgrader-all/0.111.8/jaunty.tar.gz\nMessage: 404 Not Found [IP:
91.189.88.45 80]\nFailReason: HttpError404\n\n, 64000) = 192

If I change the URI of /etc/update-manager/meta-release from 
http://changelogs.ubuntu.com/meta-release to 
http://www.lysator.liu.se/~ceder/tmp/meta-old
(where I have blindly replaced all archive with old-releases) things work 
slightly better.
The jaunty.tar.gz file is accepted.  But after a while I get these messages:

  Hit http://old-releases.ubuntu.com intrepid-security/universe Packages
  Hit http://old-releases.ubuntu.com intrepid-security/multiverse Packages
  Done downloading
  Reading package lists: Done
  Reading state information: Done
  Reading state information: Done
  Reading state information: Done
  
  Updating repository information
  
  No valid mirror found 
  
  While scanning your repository information no mirror entry for the 
  upgrade was found.This can happen if you run a internal mirror or if 
  the mirror information is out of date. 
  
  Do you want to rewrite your 'sources.list' file anyway? If you choose 
  'Yes' here it will update all 'intrepid' to 'jaunty' entries. 
  If you select 'no' the update will cancel. 
  
  Continue [yN] 

If I restore the /etc/update-manager/meta-release file and run this

  echo  91.189.88.140 archive.ubuntu.com | sudo tee -a /etc/hosts

things work even better.  The IP address actually belongs to 
old-releases.ubuntu.com.
Now I get all the way to

  Do you want to start the upgrade?


  1 package is going to be removed. 57 new packages are going to be 
  installed. 828 packages are going to be upgraded. 

  You have to download a total of 430M. This download will take about 7 
  minutes with your connection. 

  Fetching and installing the upgrade can take several hours. Once the 
  download has finished, the process cannot be cancelled. 

   Continue [yN]  Details [d]

...and here I bail out because I cannot actually update the server until 
the service window on 2011-08-15.

Sorry to spam if this was totally irrelevant to the original problem.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/822910

Title:
  6.06 upgrade fails due to bad repo?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/822910/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 545398] Re: lucid's motd text not updated

2011-04-26 Thread Per Cederqvist
I think this is a duplicate of
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/659738.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/545398

Title:
  lucid's motd text not updated

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 612523] Re: Severe performance regression due to glob gate

2011-04-20 Thread Per Cederqvist
I see that a fixed version is available in Ubuntu 11.04. Great! It would
be even greater if the fix was backported to all the supported Ubuntu
versions, at least the LTS versions. This issue blocks the testsuite of
lyskomd (http://www.lysator.liu.se/lyskom/lyskom-server/).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/612523

Title:
  Severe performance regression due to glob gate

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 725226] [NEW] package squid 2.7.STABLE7-1ubuntu12.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

2011-02-25 Thread Per Cederqvist
Public bug reported:

Binary package hint: squid

I got the error while doing a normal upgrade using the Upgrade Manager.
Running

  sudo service squid stop
  sudo service squid start

seems to work, so this seems to bi intermittent.

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: squid 2.7.STABLE7-1ubuntu12.1
ProcVersionSignature: Ubuntu 2.6.32-28.55-generic 2.6.32.27+drm33.12
Uname: Linux 2.6.32-28-generic i686
Architecture: i386
Date: Fri Feb 25 20:58:03 2011
ErrorMessage: subprocess installed post-installation script returned error exit 
status 1
SourcePackage: squid
Title: package squid 2.7.STABLE7-1ubuntu12.1 failed to install/upgrade: 
subprocess installed post-installation script returned error exit status 1

** Affects: squid (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: apport-package i386 lucid

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid in ubuntu.
https://bugs.launchpad.net/bugs/725226

Title:
  package squid 2.7.STABLE7-1ubuntu12.1 failed to install/upgrade:
  subprocess installed post-installation script returned error exit
  status 1

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 725226] Re: package squid 2.7.STABLE7-1ubuntu12.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

2011-02-25 Thread Per Cederqvist
-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid in ubuntu.
https://bugs.launchpad.net/bugs/725226

Title:
  package squid 2.7.STABLE7-1ubuntu12.1 failed to install/upgrade:
  subprocess installed post-installation script returned error exit
  status 1

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 725226] [NEW] package squid 2.7.STABLE7-1ubuntu12.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

2011-02-25 Thread Per Cederqvist
Public bug reported:

Binary package hint: squid

I got the error while doing a normal upgrade using the Upgrade Manager.
Running

  sudo service squid stop
  sudo service squid start

seems to work, so this seems to bi intermittent.

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: squid 2.7.STABLE7-1ubuntu12.1
ProcVersionSignature: Ubuntu 2.6.32-28.55-generic 2.6.32.27+drm33.12
Uname: Linux 2.6.32-28-generic i686
Architecture: i386
Date: Fri Feb 25 20:58:03 2011
ErrorMessage: subprocess installed post-installation script returned error exit 
status 1
SourcePackage: squid
Title: package squid 2.7.STABLE7-1ubuntu12.1 failed to install/upgrade: 
subprocess installed post-installation script returned error exit status 1

** Affects: squid (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: apport-package i386 lucid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/725226

Title:
  package squid 2.7.STABLE7-1ubuntu12.1 failed to install/upgrade:
  subprocess installed post-installation script returned error exit
  status 1

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 725226] Re: package squid 2.7.STABLE7-1ubuntu12.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

2011-02-25 Thread Per Cederqvist
-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/725226

Title:
  package squid 2.7.STABLE7-1ubuntu12.1 failed to install/upgrade:
  subprocess installed post-installation script returned error exit
  status 1

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 612523] Re: Severe performance regression due to glob gate

2010-09-06 Thread Per Cederqvist
According to http://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=591695#15, this is fixed in Debian source-version
5.44.1.15-3.

** Bug watch added: Debian Bug tracker #591695
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=591695

-- 
Severe performance regression due to glob gate
https://bugs.launchpad.net/bugs/612523
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 612523] Re: Severe performance regression due to glob gate

2010-09-02 Thread Per Cederqvist
The issue has now been fixed in the expect CVS repository, using
one of my patches, slightly edited.  This commit of retoglob.c
fixes it:

revision 5.6
date: 2010/08/27 22:24:33;  author: hobbs;  state: Exp;  lines: +38 -0
   * retoglob.c: Fail if the generated glob contains more than
   two asterisks.  Fixes [Expect SF Bug 3010684] (cederqvist)

For your backporting convenience, I attach the patch here.
The upstream ChangeLog entry is:

2010-08-27  Jeff Hobbs  je...@activestate.com

   * retoglob.c: Fail if the generated glob contains more than
   two asterisks.  Fixes [Expect SF Bug 3010684] (cederqvist)

** Patch added: The solution that is applied upstream
   
https://bugs.launchpad.net/ubuntu/+source/expect/+bug/612523/+attachment/1537869/+files/two-asterisks.patch

-- 
Severe performance regression due to glob gate
https://bugs.launchpad.net/bugs/612523
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 612523] [NEW] Severe performance regression due to glob gate

2010-08-02 Thread Per Cederqvist
Public bug reported:

Binary package hint: expect

The gate keeper glob pattern matching added to expect on 2007-07-11 was 
intended to run a fast glob
matching before invoking the slow regular expression.  However, it turns out 
that for many regular expressions
the generated glob pattern is extremely slow.  I have seen it take several 
seconds, when the original regular
expression took about a millisecond or less to execute.

The attached script should take a millisecond or less to run.  It does in 
expect 5.43.0.  But in expect-5.44.1.14-5
it takes over a minute on my (old) laptop.

I have reported this issue upstream at
http://sourceforge.net/tracker/?func=detailatid=113179aid=3010684group_id=13179
and that report contains a couple of propossed fixes.

1)

Description:Ubuntu 10.04.1 LTS
Release:10.04

2)

expect:
  Installed: 5.44.1.14-5
  Candidate: 5.44.1.14-5
  Version table:
 *** 5.44.1.14-5 0
500 http://se.archive.ubuntu.com/ubuntu/ lucid/main Packages
100 /var/lib/dpkg/status

3) re matching should be as fast as it used to be.

4) re matching can be very slow.

** Affects: expect (Ubuntu)
 Importance: Undecided
 Status: New

-- 
Severe performance regression due to glob gate
https://bugs.launchpad.net/bugs/612523
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 612523] Re: Severe performance regression due to glob gate

2010-08-02 Thread Per Cederqvist

** Attachment added: Script that reproduces the problem.
   http://launchpadlibrarian.net/52877057/slow.exp

-- 
Severe performance regression due to glob gate
https://bugs.launchpad.net/bugs/612523
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 550474] Re: Bad handling of zero-length writes

2010-03-29 Thread Per Cederqvist
I see now that this was fixed upstream in september 2005:
http://expect.cvs.sourceforge.net/viewvc/expect/expect/exp_chan.c?r1=5.12r2=5.13

The fix is included in the Debian package 5.44.1.15-1 (and maybe
earlier; I have not checked).

I'd like this fix to be backported to the supported versions of Ubuntu.
I hope it will make it into the next version of Ubuntu.

-- 
Bad handling of zero-length writes
https://bugs.launchpad.net/bugs/550474
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 550474] [NEW] Bad handling of zero-length writes

2010-03-28 Thread Per Cederqvist
Public bug reported:

Binary package hint: expect

expect writes this in the debug log:

  write() failed to write anything - will sleep(1) and retry...

The cause is that ExpOutputProc() can be called with toWrite == 0.  I
will attach a patch that fixes the problem.

The problem isn't easy to reproduce.  I have not been able to create a small 
test case. But if you attempt to run
the test suite of 
ftp://ftp.lysator.liu.se/pub/lyskom/server/lyskom-server-2.1.1.tar.gz.sig it 
will fail with strange locking
errors.  The errors disappear if  you fix this expect bug.

I have reported this to Don Libes but not gotten any response yet.  This 
problem was apparently introduced when
expect started to use non-blocking I/O.

I'm using Ubuntu 9.10.  This problem exists in all versions of expect
5.43.0: I'm using 5.43.0-17.

(One could possibly argue that it is a TCL bug that ExpOutputProc() is
called with 0 as argument. I have not investigated if it would make more
sense to fix the problem there.  Given that ExpOutputProc() checks if
toWrite is less than 0, I think it makes sense that it also handles the
case when toWrite is 0 in a sane way.)

** Affects: expect (Ubuntu)
 Importance: Undecided
 Status: New

-- 
Bad handling of zero-length writes
https://bugs.launchpad.net/bugs/550474
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 550474] Re: Bad handling of zero-length writes

2010-03-28 Thread Per Cederqvist

** Patch added: Patch that fixes the problem.
   http://launchpadlibrarian.net/42310637/14-zero-len-write.dpatch

-- 
Bad handling of zero-length writes
https://bugs.launchpad.net/bugs/550474
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs