LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Segmentation fault (core dump) (https://www.linuxquestions.org/questions/linux-newbie-8/segmentation-fault-core-dump-4175519803/)

vikrant2k14 09-23-2014 08:34 AM

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...

business_kid 09-23-2014 09:14 AM

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.

knudfl 09-23-2014 09:23 AM

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

-

vikrant2k14 09-26-2014 01:17 AM

plz reply with apropiate solution
 
plz reply with appropriate solution

knudfl 09-26-2014 02:21 AM

← #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/


-

vikrant2k14 10-07-2014 04:35 AM

i m using i686
 
i m using i686

& when i simply run $:nam

it give segmentation fault (core dump)

knudfl 10-07-2014 07:22 AM

← #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

-

knudfl 10-07-2014 08:51 AM

#6, #7 .

Update → nam 1.15 : nam_1.15-10_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing

vikrant2k14 10-11-2014 07:10 AM

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 ....

vikrant2k14 10-11-2014 07:18 AM

Thanku so much kundfl
 
Quote:

Originally Posted by knudfl (Post 5250153)
← #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 ....

deepthi18 10-23-2014 11:21 AM

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

knudfl 10-23-2014 04:40 PM

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 .

deepthi18 10-23-2014 09:37 PM

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..

knudfl 10-24-2014 01:17 AM

← #13 .

Installing a package manually :

$ cd <folder-with-package>/
$ sudo dpkg -i nam_1.15-10*.deb

vivekninnekar 01-13-2015 05:20 AM

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


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