Bug 169755 - devel/boost-libs producing ioctl sign-extension errors
Summary: devel/boost-libs producing ioctl sign-extension errors
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ruslan Makhmatkhanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-10 00:00 UTC by Mario Lobo
Modified: 2012-07-13 21:18 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (199 bytes, patch)
2012-07-10 00:00 UTC, Mario Lobo
no flags Details | Diff
169755-boost-libs.diff (1.51 KB, patch)
2012-07-10 11:56 UTC, R.Mahmatkhanov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Lobo 2012-07-10 00:00:24 UTC
Ports that rely on boost-libs-1.48.0, keep issuing the following warning and may freeze:

WARNING pid 48978 (qbittorrent): ioctl sign-extension ioctl ffffffff8004667e

In my case, net-p2p/libtorrent-rasterbar-16, net-p2p/libtorrent-rasterbar-16-python and net-p2p/qbittorrent29

qbittorrent always freezes and has to be kill -9.

Fix: The fix is to add the following changes to the port file patch-boost_asio-ioctl.


After that,
-Rebuild/reinstall devel/boost-libs
-Rebuild/reinstall net-p2p/libtorrent-rasterbar-16
-Rebuild/reinstall net-p2p/libtorrent-rasterbar-16-python
-Rebuild/reinstall net-p2p/qbittorrent--uO4XzKsIbYb2VUo2PCAC4rfB7mIXzOVcUEbPIoJsHhJl1aUD
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

*** 46,52 ****
    // Get the name of the IO control command.
    ioctl_cmd_type name() const
    {
-     return static_cast<int>(FIONBIO);
+     return static_cast<ioctl_cmd_type>(FIONBIO);
How-To-Repeat: Everytime qbittorrent is ran.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-07-10 00:00:34 UTC
Class Changed
From-To: maintainer-update->change-request

Fix category (submitter is not maintainer) (via the GNATS Auto Assign 
Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2012-07-10 00:00:36 UTC
Maintainer of devel/boost-libs,

Please note that PR ports/169755 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/169755

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2012-07-10 00:00:38 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 mlobo 2012-07-10 00:22:43 UTC
Correction:

Those patches should be applied to
work/boost_1_48_0/boost/asio/detail/io_control.hpp

so they must be added to patch-boost_asio-ioctl, so they can be applied
properly.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] (99% winblows FREE)
Comment 5 Mario Lobo 2012-07-10 00:23:41 UTC
Correction:

Those patches should be applied to
work/boost_1_48_0/boost/asio/detail/io_control.hpp

so they must be added to patch-boost_asio-ioctl, so they can be applied
properly.


-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] (99% winblows FREE)
Comment 6 Michael Scheidell freebsd_committer freebsd_triage 2012-07-10 04:57:29 UTC
Responsible Changed
From-To: freebsd-ports-bugs->scheidell

I'll take it.. I have pr ports/168661 already. 
Looks like rm@ is working on ports 169505
Comment 7 R.Mahmatkhanov 2012-07-10 11:56:39 UTC
scheidell@FreeBSD.org wrote on 10.07.2012 07:59:
> Synopsis: devel/boost-libs producing ioctl sign-extension errors
>
> Responsible-Changed-From-To: freebsd-ports-bugs->scheidell
> Responsible-Changed-By: scheidell
> Responsible-Changed-When: Tue Jul 10 03:57:29 UTC 2012
> Responsible-Changed-Why:
> I'll take it.. I have pr ports/168661 already.
> Looks like rm@ is working on ports 169505
>

Hi, this patch fixed deluge hanging issues for me as reported in 
ports/169164. Alexander, would you approve? It will also require 
PORTREVISION bump in devel/boost-all/common.mk

-- 
Regards,
Ruslan

Tinderboxing kills... the drives.

Comment 8 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2012-07-10 13:08:00 UTC
Responsible Changed
From-To: scheidell->rm

Grab per discussion with scheidell@. This patch also resolved deluge 
hanging issue, reported in ports/169164. So now we just awaiting of 
maintainer's feedback
Comment 9 dfilter service freebsd_committer freebsd_triage 2012-07-13 21:09:23 UTC
rm          2012-07-13 20:09:11 UTC

  FreeBSD ports repository

  Modified files:
    devel/boost-all      common.mk 
    devel/boost-libs     Makefile 
    devel/boost-libs/files patch-boost_asio-ioctl 
  Added files:
    devel/boost-libs/files 
                           patch-boost-interprocess-shared_memory_object.hpp 
  Log:
  - fix packaging when WITH_ICU is off [1]
  - fix applications hanging issue (deluge and qbittorrent at least) [2]
  - fix interprocess communication (upstream svn revision 76181) [3]
  - bump PORTREVISION
  
  PR:             168661 [1]
  PR:     169755 [2]
  PR:     169806 [3]
  Submitted by:   Alexey Markov <redrat at mail dot ru> [1],
                  Mario Lobo <lobo@bsd.com.br> [2],
                  Martin Matuska <mm at FreeBSD dot org> [3]
  Approved by:    maintainer timeout (1 month)
  
  Revision  Changes    Path
  1.6       +1 -0      ports/devel/boost-all/common.mk
  1.13      +4 -1      ports/devel/boost-libs/Makefile
  1.1       +37 -0     ports/devel/boost-libs/files/patch-boost-interprocess-shared_memory_object.hpp (new)
  1.3       +12 -6     ports/devel/boost-libs/files/patch-boost_asio-ioctl
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 10 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2012-07-13 21:18:32 UTC
State Changed
From-To: feedback->closed

Committed, thank you!