2009/7/29 Andrej Shalaev <andrews@seventest.ru>

, 28/07/2009 09:17 -0700, Mohan Parthasarathy :
>
> When the function is invoked, it coredumps with "Bus error". I can't
> figure exactly which part of the function it coredumps. I will verify
> soon whether the real C function is called at all or not. I will try
> to get more information..

Let start from the question "what is a bus error?".

Bus error is a kind of "hardware error" caused by improper memory
handling. Most often it's caused on the specific hardware platforms
(i.e. Sparc) with more strict memory handling (alignment) requirements.
Most often cause of throwing "bus error" is:

Invalid address alignment - The program has attempted to read or write data that does not fit the CPU's memory-alignment rules.

More complexed discussions about "bus error" can be found on the
internet.

So it brings up some questions for you:
1. What's hardware platform you're working on?

Mac OS X 10.5

2. Does bus error occure if you're using your C-library directly from
C-application?
No

3. Is SWIG officially compatible with platform you're working on?
Yes.

See my other mail on where exactly it fails. It fails in parsing a structure.

thanks
mohan




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Swig-user mailing list
Swig-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user