Networking Forums

Networking Forums > Computer Networking > Linux Networking > segmentation fault in tcptraceroute

Reply
Thread Tools Display Modes

segmentation fault in tcptraceroute

 
 
Alex Bransky
Guest
Posts: n/a

 
      10-12-2004, 09:27 PM
I'm quite new to Linux but I hope somebody will be kind enough to help
me. I'm running Fedora Core 2 kernel 2.6.5-1.358, and I've installed
tcptraceroute from the static rpm I got on the main web site. If I
type "tcptraceroute" without any parameters at the command line, it
gives me the help list. But if I add any parameters, I get a
segmentation fault (that's all it says). Anybody know how I can fix
it?
 
Reply With Quote
 
 
 
 
ynotssor
Guest
Posts: n/a

 
      10-13-2004, 04:56 AM
"Alex Bransky" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om

> I'm quite new to Linux but I hope somebody will be kind enough to help
> me. I'm running Fedora Core 2 kernel 2.6.5-1.358, and I've installed
> tcptraceroute from the static rpm I got on the main web site. If I
> type "tcptraceroute" without any parameters at the command line, it
> gives me the help list. But if I add any parameters, I get a
> segmentation fault (that's all it says). Anybody know how I can fix
> it?


You should post the exact command and parameters that you entered at the
command line, so that people can see if you are invoking it correctly.

Then, you can type (e.g.):

strace tcptraceroute www.google.com

and see at what operation the failure occurs.

tony

--
use hotmail for email replies

 
Reply With Quote
 
Alex Bransky
Guest
Posts: n/a

 
      10-13-2004, 04:03 PM
I've tried:

tcptraceroute example1.com
tcptraceroute example1.com 3101

Both cause a segmentation fault. Here's what I got from strace:

execve("/usr/sbin/tcptraceroute", ["tcptraceroute", "example1.com",
"3101"], [/* 33 vars */]) = 0
fcntl64(0, F_GETFD) = 0
fcntl64(1, F_GETFD) = 0
fcntl64(2, F_GETFD) = 0
uname({sys="Linux", node="localhost.localdomain", ...}) = 0
geteuid32() = 0
getuid32() = 0
getegid32() = 0
getgid32() = 0
brk(0) = 0x80cf000
brk(0x80cf020) = 0x80cf020
brk(0x80d0000) = 0x80d0000
getuid32() = 0
geteuid32() = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
ioctl(3, SIOCGIFCONF, 0xfefff868) = 0
ioctl(3, SIOCGIFADDR, 0xfefff870) = 0
ioctl(3, SIOCGIFFLAGS, 0xfefff870) = 0
ioctl(3, SIOCGIFADDR, 0xfefff870) = 0
ioctl(3, SIOCGIFFLAGS, 0xfefff870) = 0
gettimeofday({1097683042, 365220}, NULL) = 0
getpid() = 3085
open("/etc/resolv.conf", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=106, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x55001000
read(4, "; generated by /sbin/dhclient-sc"..., 4096) = 106
read(4, "", 4096) = 0
close(4) = 0
munmap(0x55001000, 4096) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 4
connect(4, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) =
-1 ENOENT (No such file or directory)
close(4) = 0
open("/etc/nsswitch.conf", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=1686, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x55001000
read(4, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1686
read(4, "", 4096) = 0
close(4) = 0
munmap(0x55001000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=43977, ...}) = 0
old_mmap(NULL, 43977, PROT_READ, MAP_PRIVATE, 4, 0) = 0x55001000
close(4) = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\ 33\0\000"...,
1024) = 1024
fstat64(4, {st_mode=S_IFREG|0755, st_size=50944, ...}) = 0
old_mmap(NULL, 45724, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) =
0x5500c000
mprotect(0x55016000, 4764, PROT_NONE) = 0
old_mmap(0x55016000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 4, 0x9000) = 0x55016000
close(4) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3 00\353"...,
1024) = 1024
fstat64(4, {st_mode=S_IFREG|0755, st_size=1455084, ...}) = 0
brk(0x80d1000) = 0x80d1000
old_mmap(0x93a000, 1158124, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) =
0x93a000
mprotect(0xa4f000, 23532, PROT_NONE) = 0
old_mmap(0xa4f000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
4, 0x115000) = 0xa4f000
old_mmap(0xa53000, 7148, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa53000
close(4) = 0
open("/lib/ld-linux.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3 00\27"...,
1024) = 1024
fstat64(4, {st_mode=S_IFREG|0755, st_size=106892, ...}) = 0
old_mmap(0x921000, 91340, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) =
0x921000
mprotect(0x936000, 5324, PROT_NONE) = 0
old_mmap(0x936000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
4, 0x14000) = 0x936000
close(4) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++



>
> You should post the exact command and parameters that you entered at the
> command line, so that people can see if you are invoking it correctly.
>
> Then, you can type (e.g.):
>
> strace tcptraceroute www.google.com
>
> and see at what operation the failure occurs.
>
> tony

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
telnet: "segmentation fault" everytimes antiw Linux Networking 9 10-14-2006 09:22 PM
Segmentation fault need help Marcia Hon Linux Networking 4 02-16-2004 07:13 PM
Shell command gets Segmentation Fault Hagit Linux Networking 2 01-02-2004 01:13 PM
Apache2 segmentation fault when using SSLVerifyClient Stephan B. Linux Networking 1 12-15-2003 11:38 AM
segmentation fault Steven Luk Linux Networking 3 12-10-2003 02:55 AM



1 2 3 4 5 6 7 8 9 10 11