LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-23-2014, 09:34 AM   #1
vikrant2k14
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Rep: Reputation: Disabled
Thumbs down Segmentation fault (core dump)


Hi
i ve installed ns2.35 in ubantu14.04,
i hav successfully run tcl script, bt when i've tried to execute nam command, it gave me " Segmentation fault (core dump)" .
although i can sucessfully run awk & Xgraph commands, bt unable to run nam
plz help me out...
 
Old 09-23-2014, 10:14 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,564

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
Segmentation fault = memory fault. It probably tried to access a page of memory that didn't exist. Usually a dud software package.

Check all dependencies are present; run 'ldd /path/to/nam |grep found' (remove quotes and fill in /path/to)
There should be no output. Then reinstall it - it could be a poor download. Post back telling us how each thing worked out.
 
Old 09-23-2014, 10:23 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Welcome to LQ.

The 'nam' that you can build from ns2 (ns235) often fails.
And the Ubuntu nam that you can install with $ sudo apt-get install nam ,
... has not been OK for some time.

Example, "the perfect nam" : nam_1.15-10-ubuntu14_amd64.deb
https://drive.google.com/file/d/0B7S...it?usp=sharing

Which version is your Ubuntu 14.04 ? i686 or x86_64 ?
This command will show : $ uname -m

-
 
Old 09-26-2014, 02:17 AM   #4
vikrant2k14
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
plz reply with apropiate solution

plz reply with appropriate solution
 
Old 09-26-2014, 03:21 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
← #4 .

Which version of Ubuntu 14.04 are you using ? i686 or x86_64 ?
* This command will tell : $ uname -m

? What happens, when you type the nam command by itself : $ nam

* If it is an "out.nam" file that fails, like $ nam out.nam
.. then you will have to attach the file that creates "out.nam".
File.tcl must be attached as file.tcl.txt .


Quote:
plz reply with appropriate solution
ns2 solutions http://www.linuxquestions.org/questions/tags/ns2/


-

Last edited by knudfl; 09-26-2014 at 03:26 AM.
 
Old 10-07-2014, 05:35 AM   #6
vikrant2k14
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
i m using i686

i m using i686

& when i simply run $:nam

it give segmentation fault (core dump)
 
Old 10-07-2014, 08:22 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
← #6 .

When nam is run with no arguments, and shows "segmentation fault" :
a) Delete the nam-1.15/ folder and any other <nam-version>/ folder.
b) $ sudo apt-get remove nam

.. And please install the package nam-1.14-10_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing

-

Last edited by knudfl; 10-07-2014 at 09:55 AM.
 
1 members found this post helpful.
Old 10-07-2014, 09:51 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
#6, #7 .

Update → nam 1.15 : nam_1.15-10_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing
 
1 members found this post helpful.
Old 10-11-2014, 08:10 AM   #9
vikrant2k14
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanx alot

Thanku so soooooooooo much.
it was really helful, both the linkes are really worth for me.
now i am able to run "nam" Sucessfully in ns2.35.

u hav solved our prob wich we've tried to reslove from almost 1 month.

me & my teams is very thankful to
Kundfl ....
 
Old 10-11-2014, 08:18 AM   #10
vikrant2k14
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanku so much kundfl

Quote:
Originally Posted by knudfl View Post
← #6 .

When nam is run with no arguments, and shows "segmentation fault" :
a) Delete the nam-1.15/ folder and any other <nam-version>/ folder.
b) $ sudo apt-get remove nam

.. And please install the package nam-1.14-10_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing

-

Thanku so soooooooooo much.
it was really helful, both the linkes are really
worth for me.
now i am able to run "nam" Sucessfully in
ns2.35.
u hav solved our prob wich we've tried to reslove
from almost 1 month.
me & my teams is very thankful to
Kundfl ....
 
Old 10-23-2014, 12:21 PM   #11
deepthi18
LQ Newbie
 
Registered: Oct 2014
Posts: 2

Rep: Reputation: Disabled
Hii ,

I have a similar issue..

when i try to run nam executable.. i get a segentation fault error.

I have followed the steps mentioned above and downloaded the nam_1.15-10*.deb file from the link mentioned above
but i am not sure of how to extract it and install it..

can you please peovide me the commands used to extarct the nam*.deb file and how to install the same.

Thanks and Regards,
Deepthi
 
Old 10-23-2014, 05:40 PM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Post #11, @eepthi18 : Welcome to LQ.

You don't extract a <package>.deb :
Click the package, and the `Package Intaller' will update
the faulty Ubuntu package to the new version nam_1.15-10 .
 
Old 10-23-2014, 10:37 PM   #13
deepthi18
LQ Newbie
 
Registered: Oct 2014
Posts: 2

Rep: Reputation: Disabled
Hii,

Thanks for the quick reply..

I am new to unix n hence did not know how to install *.deb package.

I tried by installing by clicking on it,

i got some msg inbetween the installation, i have attached the doc regarding the same.

it did not show any msg like installation completed successfully, after some installation progress status, it went back to 1st screen of install.

I dont see any nam folders created in /usr/local/bin nor in my /home/deepthi/Documents/ns_allinone-2.35/ directories.
i am not sure if it is installed correctly..

when try to run the nam executable in terminal i get the below message

bash: /usr/local/bin/nam : No such file or directory

can you please suggest me on the same..
 
Old 10-24-2014, 02:17 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
← #13 .

Installing a package manually :

$ cd <folder-with-package>/
$ sudo dpkg -i nam_1.15-10*.deb
 
Old 01-13-2015, 06:20 AM   #15
vivekninnekar
LQ Newbie
 
Registered: Jan 2015
Posts: 1

Rep: Reputation: Disabled
segmentation fault (core dumped) ubuntu 14.04

Hi..

- i am using ubuntu 14.04
- some how unable to start the mysql server gives error as
"ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"
- and even unable to uninstall or reinstall
- tried issueing few commands after searching online but even that does'nt work for me
- and now i got error while installing mysql server as "Segmentation fault (core dumped)"

plz any help
 
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Getting segmentation fault(core dump) error gauravdev Linux - Newbie 2 10-12-2012 03:48 AM
segmentation fault (core dump) bhatia.ankur8 Linux - General 1 07-06-2010 05:58 AM
segmentation fault core dump shaiva Linux - Newbie 1 09-23-2009 12:04 PM
how to force a core-dump...segmentation fault johnpaulodonnell Programming 2 10-23-2008 07:05 AM
php core dump with segmentation fault ohcarol *BSD 9 10-14-2008 10:19 AM


All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration