[ns] Bus error
Brad Montgomery
bkmntgmr at memphis.edu
Wed Jun 21 18:35:26 PDT 2006
Thanks for the help, but I started looking back through my code and found
this:
if (argc = 2)
It's nice to know what a Bus error, is now, though!
On 6/21/06 6:08 PM, "Phil Miller" <nsnam at millenix.mailshell.com> wrote:
> On 6/21/06, Brad Montgomery <bkmntgmr at memphis.edu> wrote:
>>
>> Hello ns-users,
>>
>> I'm new to ns, and I'm using ns-allinone-2.29.
>> I've recently created an Agent that is very similar to Ping agent included
>> in the source. However, when I set up and run a simulation, I get this:
>>
>> Bus error
>>
>> The first 3 lines of my simulation look like this:
>>
>> set ns [new Simulator]
>> set tracefile [open test1.tr w]
>> set namfile [open test1.nam w]
>>
>> However, both files are empty after running the simulation. I've searched
>> the manual, and I've grepped my entire ns directory for 'Bus error' to no
>> avail!
>>
>> Any info on this message is GREATLY appreaciated.
>
> Brad, this error is a result of the NS code doing something illegal or
> a hardware problem. In vague terms, it can happen in circumstances
> similar to segmentation faults (SIGSEGV on common x86 Linux systems).
>
> What platform and operating system (including version) are you running
> ns on? Also, if you can include the entire file that you're attempting
> to run, that could make debugging much easier.
>
> Phil Miller
More information about the Ns-users
mailing list