Package: asio
Version: 0.3.8~rc3-2
Severity: normal

I'm sorry I can't provide a smaller test case. Get Rasterbar's
libtorrent 0.12[1], apply the attached patch (to use system asio instead
of a provided copy), then:

automake && autoconf
./configure CXXFLAGS=-fvisibility=hidden --disable-static
make
make check

You'll see that a test fails with a segmentation fault. This failure is
only present when using -fvisibility=hidden. The point of failure is
asio/detail/socket_ops.hpp line 516 (function inet_ntop):

  const char* result = 
    error_wrapper(::inet_ntop(af, src, dest, length), ec);
  if (result == 0 && !ec)
    ec = asio::error::invalid_argument; // <- here


ec is not getting updated, so later on the passed ip is considered to be
an IPv6 address when in fact it was an IPv4 (1.0.0.0, for example). The
failed test is test_ip_filter.


[1] http://www.rasterbar.com/products/libtorrent/

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-felipe (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to