pppd logs incorrect traffic stats

Bug #114010 reported by jcfp
2
Affects Status Importance Assigned to Milestone
ppp (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: ppp

When disconnecting or losing the connection, pppd logs traffic statistics to syslog. Unfortunately, it seems incapable of counting beyond 4GB, and as a result the numbers it logs are completely incorrect. As an example this excerpt from syslog, after an upload of 5.3GB on a pppoe connection:

May 11 13:32:06 vip pppd[4902]: No response to 4 echo-requests
May 11 13:32:06 vip pppd[4902]: Serial link appears to be disconnected.
May 11 13:32:06 vip pppd[4902]: Connect time 46.9 minutes.
May 11 13:32:06 vip pppd[4902]: Sent 1329699925 bytes, received 98792391 bytes.
May 11 13:32:12 vip pppd[4902]: Connection terminated.
May 11 13:32:12 vip pppd[4902]: Modem hangup

1329699925 bytes is about 1.3GB, and as such 4 GB less than it should have read. Reliably reproducable.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 beta?

Changed in ppp:
status: New → Incomplete
Revision history for this message
jcfp (jcfp) wrote :

It does on hardy, after downloading about 6.4 GB and uploading about 100 GB (forgot some torrent was running) it logs this, suggesting only 1.5 GB was ever uploaded and 2.3 downloaded:
Oct 30 18:38:31 vip pppd[5071]: LCP terminated by peer
Oct 30 18:38:31 vip pppd[5071]: Connect time 639.3 minutes.
Oct 30 18:38:31 vip pppd[5071]: Sent 1595275848 bytes, received 2398188235 bytes.

intrepid info will follow after I upgrade some time in the next month.

Revision history for this message
jcfp (jcfp) wrote :

still exists on intrepid as well

Changed in ppp:
status: Incomplete → New
Revision history for this message
xteejx (xteejx) wrote :

It's been a while since this was updated, is it still a problem in Jaunty? Thank you.

Changed in ppp (Ubuntu):
status: New → Incomplete
Revision history for this message
jcfp (jcfp) wrote :

Yes. As this is trivial to check, please do so and confirm this bug

Changed in ppp (Ubuntu):
status: Incomplete → New
Revision history for this message
xteejx (xteejx) wrote :

I am part of Ubuntu Bug Control, not a developer, and do not have a modem, therefore can you check that this is still the case please? As the reporter it is your responsibility to provide us with the necessary information, or whatever is requested to help us in dealing with traiging this bug, and from there pass it onto the developers to look at it, and if they can, fix it. Thank you.

Changed in ppp (Ubuntu):
status: New → Incomplete
Revision history for this message
jcfp (jcfp) wrote :

Maybe the wording was a bit unclear, but as I said yesterday "Yes": this bug still exists on jaunty.

Changed in ppp (Ubuntu):
status: Incomplete → New
Revision history for this message
xteejx (xteejx) wrote :

Sorry for the misunderstanding. Setting importance to Low - not a serious fault in a core application.

Changed in ppp (Ubuntu):
importance: Undecided → Low
Revision history for this message
xteejx (xteejx) wrote :

Can you run
apport-collect 114010
and also, would you be able to provide a gdb backtrace for this for us. Instructions on how to do so are at https://wiki.ubuntu.com/Backtrace but you will need to install the debugging symbols for ppp - this may be ppp-dev package, but unless we know what driver you're using it may not be this. Thank you.

Revision history for this message
xteejx (xteejx) wrote :

Also to differentiate the problem betwen pppd and the kernel, can you confirm if the same results happen in ifconfig... i.e. are the stats messed up the same? Thanks.

Changed in ppp (Ubuntu):
status: New → Incomplete
Revision history for this message
jcfp (jcfp) wrote : apport-collect data

Architecture: i386
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: ppp 2.4.5~git20081126t100229-0ubuntu2
PackageArchitecture: i386
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
Uname: Linux 2.6.28-11-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy kqemu lpadmin netdev plugdev powerdev sambashare scanner syslog vboxusers video

Revision history for this message
jcfp (jcfp) wrote :
Revision history for this message
jcfp (jcfp) wrote :

ifconfig of course shows the same, just like for any other interface it never counts beyond 4GB. Not an excuse for ppp's failure though, especially when spamming syslog with this stuff it should just be correct.

Are you sure about needing a backtrace? After all, the application doesn't crash or terminate unexpectedly, it prints this stuff whenever the pppoe connection is logged out.

Revision history for this message
xteejx (xteejx) wrote :

Sorry for not getting back on this bug report, is there any chance you could confirm if this is a problem in Karmic, or better yet Lucid from a daily Live CD? Thank you :)

Revision history for this message
jcfp (jcfp) wrote :

Package ppp had this bug in jaunty. It has remained unchanged since in both karmic and lucid. Logic dictates it will still be broken now.

Changed in ppp (Ubuntu):
status: Incomplete → New
xteejx (xteejx)
Changed in ppp (Ubuntu):
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.