Danted crashes on AMD64

Bug #133536 reported by Dewi
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dante (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: dante-server

recently switched our proxy machine from i386 architecture to and AMD64 architecture, the SOCKS 5 proxy danted v1.1.18 used to work just fine on i386, but on AMD64, it crashes after starting the daemon with the following error:-

Aug 19 11:26:13 faramir danted[9982]: sockdexit(): terminating on signal 11

if I try to invoke the debugging switch to see what's going on, the process seg faults:-
danted -D -d
Syslog: Aug 19 11:47:30 (1187549250) danted[0]: (null): old: 5845040, new: 4344168
Segmentation fault
Dmesg: [38072.722771] danted[11981]: segfault at 0000000000000001 rip 00002aaaab18ffa0 rsp 00007fffffb892e8 error 4

I am running a dual quad core AMD server (8 processors), Kernel:_
Linux version 2.6.15-28-amd64-server (buildd@king) (gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 SMP Wed Jul 18 23:04:02 UTC 2007

After playing around a bit, I discovered that changing the number of servers to fork using the -N directive would allow me to get the danted daemon running after a fashion:-
Values of N from 1 to 4 had no effect, danted crashed out with the signal 11.
N = 5 or 6 left me with one root danted process
N=7 or 8 gave varying results, sometimes I had 3 danted process, others I had one main process and other defunct processes.
N=10 seemed to consistently give me one main danted process and 3 forked child processes.

which I'm assuming means I have been able to fork more processes than the system is trying to terminateas I increase the number of forked server processes. There's still a problem somewhere as the processes should not be being terminated.

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

Is this symptom still reproducible in 8.10 beta or later?

Changed in dante:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in dante:
status: Incomplete → Invalid
Revision history for this message
Nicolas Brousse (orieg) wrote :

I see the same issue with dante-server package on Karmic x86_64, runing with "danted -d -f /etc/danted.conf", I got a segfault then in syslog :

Nov 24 00:05:37 host danted: socks_seteuid(): old: 0, new: 13
Nov 24 00:05:37 host danted: socks_reseteuid(): current: 13, new: 0
Nov 24 00:05:37 host danted: socks_seteuid(): old: 0, new: 65534
Nov 24 00:05:37 host danted: socks_reseteuid(): current: 65534, new: 0
Nov 24 00:05:37 host danted: socks_seteuid(): old: 0, new: 65534
Nov 24 00:05:37 host danted: socks_reseteuid(): current: 65534, new: 0
Nov 24 00:05:37 host danted[5663]: socks_seteuid(): old: 0, new: 13
Nov 24 00:05:37 host danted[5663]: socks_reseteuid(): current: 13, new: 0
Nov 24 00:05:37 host danted[5663]: internal addresses (1):
Nov 24 00:05:37 host danted[5663]: #011192.168.1.5.1080
Nov 24 00:05:37 host danted[5663]: external addresses (1):
Nov 24 00:05:37 host danted[5663]: #011192.168.1.5/32, tcp: 0, udp: 0, op: none, end: 0
Nov 24 00:05:37 host danted[5663]: external address rotation: none
Nov 24 00:05:37 host danted[5663]: compatibility options:
Nov 24 00:05:37 host danted[5663]: extensions enabled:
Nov 24 00:05:37 host danted[5663]: logoutput goes to: "syslog.daemon", "/var/log/danted.log",
Nov 24 00:05:37 host kernel: [ 6801.378297] danted[5663]: segfault at 3 ip 00007fb326c3ba87 sp 00007ffff7705ae0 error 4 in libc-2.10.1.so[7fb326bf3000+166000]

Changed in dante (Ubuntu):
status: Invalid → New
Revision history for this message
Rolf Leggewie (r0lf) wrote : Re: Danted crashed on AMD64

confirmed for AMD 64 platform in Dapper and Karmic by Dewi and Nicolas. It would be good to know if Lucid and Maverick are affected as well.

Changed in dante (Ubuntu):
status: New → Confirmed
summary: - Danted crashed on AMD64 Dapper LTS
+ Danted crashed on AMD64
Revision history for this message
K1773R (k1773r) wrote :

still in lucid:

danted -D -d
Jul 19 15:03:10 (1342702990) danted[26863]: : old: 16285744, new: 140320704208141
Jul 19 15:03:10 (1342702990) danted[26863]: (null): current: 140320720488104, new: 140736909268936
Jul 19 15:03:10 (1342702990) danted[26863]: (null): old: 65534, new: 4269842
Jul 19 15:03:10 (1342702990) danted[26863]: (null): current: 140320720488104, new: 140736909268936
Jul 19 15:03:10 (1342702990) danted[26863]: (null): old: 0, new: 17179869185
Jul 19 15:03:10 (1342702990) danted[26863]: : current: 16307248, new: 0
Jul 19 15:03:10 (1342702990) danted[26863]: : old: 7, new: 17179869185
Jul 19 15:03:10 (1342702990) danted[26863]: : current: 16307272, new: 1
Jul 19 15:03:10 (1342702990) danted[26863]: internal addresses (-171835145):
Jul 19 15:03:10 (1342702990) danted[26863]:
Jul 19 15:03:10 (1342702990) danted[26863]:
Jul 19 15:03:10 (1342702990) danted[26863]: external addresses (-171855675):
Jul 19 15:03:10 (1342702990) danted[26863]:
Jul 19 15:03:10 (1342702990) danted[26863]: external address rotation: H=
Jul 19 15:03:10 (1342702990) danted[26863]: compatibility options: H=
Jul 19 15:03:10 (1342702990) danted[26863]: extensions enabled:
Jul 19 15:03:10 (1342702990) danted[26863]: logoutput goes to:
Jul 19 15:03:10 (1342702990) danted[26863]: cmdline options:
Jul 19 15:03:10 (1342702990) danted[26863]: resolveprotocol: H=

kern.log:
Jul 19 15:03:10 router kernel: [600540.950846] danted[26863]: segfault at 400 ip 00007f9ef5b8ae32 sp 00007fffdd7b91b0 error 4 in libc-2.11.1.so[7f9ef5b42000+17a000]

summary: - Danted crashed on AMD64
+ Danted crashes on AMD64
Aiman Baharna (aiman)
no longer affects: lucid
Rex Tsai (chihchun)
tags: added: quantal
Revision history for this message
Rex Tsai (chihchun) wrote :

Please note that some config options does not take multi-options, even the sample shows it can.

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.