Package: tor
Version: 0.2.0.34-1.1
Severity: important
Tags: patch

When trying to install tor on Loongson 2F yeelong laptop, which is
based on mipsel architecture, the installation fails saying that
malloc() replacement compiled with different page size (detailed
install log attached).  "HelloWorld" on lemote bbs provided a fix[1]
that let mips arch use malloc_pageshift 14U (also attached) that makes
tor successfully installed on Yeelong laptop.

However, I'm not sure whether this happens on all mipsel architecture
or only on the Loongson 2F platform, as you can see the kernel is
customly built.  It'll be great if mipsel port maintainers can help
check its installability and then decide whether to include the fix.
Thanks.

[1] http://www.lemote.com/bbs/viewthread.php?tid=20939&extra=page%3D1

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (300, 'experimental')
Architecture: mipsel (mips64)

Kernel: Linux 2.6.27.1
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages tor depends on:
ii  adduser                3.110             add and remove users and groups
ii  libc6                  2.7-18            GNU C Library: Shared libraries
ii  libevent1              1.3e-3            An asynchronous event notification
ii  libssl0.9.8            0.9.8g-15         SSL shared libraries
ii  tsocks                 1.8beta5-9.1      transparent network access through
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages tor recommends:
ii  logrotate                   3.7.7-3      Log rotation utility
ii  privoxy                     3.0.11-1     Privacy enhancing HTTP Proxy
ii  socat                       1.6.0.1-1    multipurpose relay for bidirection
ii  tor-geoipdb                 0.2.0.34-1.1 geoIP database for Tor

Versions of packages tor suggests:
pn  anon-proxy                    <none>     (no description available)
pn  mixmaster                     <none>     (no description available)
pn  mixminion                     <none>     (no description available)

-- no debconf information
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Reading task descriptions...
The following NEW packages will be installed:
  privoxy{a} socat{a} tor tor-geoipdb tsocks{a} 
0 packages upgraded, 5 newly installed, 0 to remove and 5 not upgraded.
Need to get 0B/3184kB of archives. After unpacking 9282kB will be used.
Do you want to continue? [Y/n/?] Writing extended state information...
Selecting previously deselected package privoxy.
(Reading database ... 157289 files and directories currently installed.)
Unpacking privoxy (from .../privoxy_3.0.11-1_mipsel.deb) ...
Selecting previously deselected package tsocks.
Unpacking tsocks (from .../tsocks_1.8beta5-9.1_mipsel.deb) ...
Selecting previously deselected package tor.
Unpacking tor (from .../tor_0.2.0.34-1_mipsel.deb) ...
Selecting previously deselected package socat.
Unpacking socat (from .../socat_1.6.0.1-1_mipsel.deb) ...
Selecting previously deselected package tor-geoipdb.
Unpacking tor-geoipdb (from .../tor-geoipdb_0.2.0.34-1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 3 added doc-base file(s)...
Registering documents with scrollkeeper...
Setting up privoxy (3.0.11-1) ...
Setting up tsocks (1.8beta5-9.1) ...
Setting up tor (0.2.0.34-1) ...
Raising maximum number of filedescriptors (ulimit -n) to 32768.
Starting tor daemon: tor...
tor in malloc(): error: malloc() replacement compiled with a different page 
size from what we're running with.  Failing.
/etc/init.d/tor: line 104: 10661 Aborted                 (core dumped) $DAEMON 
--verify-config > /dev/null
ABORTED: Tor configuration invalid:
tor in malloc(): error: malloc() replacement compiled with a different page 
size from what we're running with.  Failing.
/etc/init.d/tor: line 104: 10662 Aborted                 (core dumped) $DAEMON 
--verify-config 1>&2
invoke-rc.d: initscript tor, action "start" failed.
dpkg: error processing tor (--configure):
 subprocess post-installation script returned error exit status 134
Setting up socat (1.6.0.1-1) ...
dpkg: dependency problems prevent configuration of tor-geoipdb:
 tor-geoipdb depends on tor (>= 0.2.0.34-1); however:
  Package tor is not configured yet.
dpkg: error processing tor-geoipdb (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 tor
 tor-geoipdb
Setting up tor (0.2.0.34-1) ...
Raising maximum number of filedescriptors (ulimit -n) to 32768.
Starting tor daemon: tor...
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Writing extended state information...
Reading task descriptions...
--- tor-0.2.0.34/src/common/OpenBSD_malloc_Linux.c.orig 2009-02-27 
18:42:32.000000000 +0800
+++ tor-0.2.0.34/src/common/OpenBSD_malloc_Linux.c      2009-02-27 
18:43:47.000000000 +0800
@@ -98,7 +98,7 @@
 #if defined(__sparc__) || defined(__alpha__)
 #define        malloc_pageshift        13U
 #endif
-#if defined(__ia64__)
+#if defined(__ia64__) || defined(__mips__)
 #define        malloc_pageshift        14U
 #endif
 

Reply via email to