[GRASS-user] m.eigensystem segfaults under Jaunty (beta)

Nikos Alexandris wrote:

m.eigensystem, compiled against latest grass6_dev _AND_ grass
-6.4.0RC4 source code, segfaults under Ubuntu-J 64-bit Beta.

It works fine with Ubuntu Intrepid! So, something in Jaunty
doesn't like m.eigensystem (fortran code?)!

any chance of debugging? (gdb, etc)
how far does it get? (if no idea you might try to cut and paste
in some print strings from elsewhere in the code with little
"made it to line 110") comments then recompile.

Hamish

Nikos:

> m.eigensystem, compiled against latest grass6_dev _AND_ grass
> -6.4.0RC4 source code, segfaults under Ubuntu-J 64-bit Beta.

> It works fine with Ubuntu Intrepid! So, something in Jaunty
> doesn't like m.eigensystem (fortran code?)!

Hamish:

any chance of debugging? (gdb, etc)
how far does it get?

I gave it a try (below)

(if no idea you might try to cut and paste
in some print strings from elsewhere in the code with little
"made it to line 110") comments then recompile.

Yep, no idea :~? Blindly following the grass-wiki [1]:

# my first debugging attempt/session :wink:
# gdb
gdb `which m.eigensystem`

[...]
This GDB was configured as "x86_64-linux-gnu"...

# run
(gdb) run
Starting program: /usr/local/grass-6.5.svn/bin/m.eigensystem

# feed with numbers
3
11 22 33
33 22 11
22 11 33

Program received signal SIGSEGV, Segmentation fault.
0x0000000000401d10 in balanc_ ()
Current language: auto; currently asm

# full backtrace
(gdb) bt full

#0 0x0000000000401d10 in balanc_ ()
No locals.
#1 0x0000000000409910 in rg_ ()
No locals.
#2 0x0000000000400b87 in MAIN__ ()
No locals.

# l
(gdb) l

1 /build/buildd/glibc-2.9/build-tree/amd64-libc/csu/crtn.S: No such file
or directory.
  in /build/buildd/glibc-2.9/build-tree/amd64-libc/csu/crtn.S

# frame 2
(gdb) frame 2

#2 0x0000000000400b87 in MAIN__ ()

# l again
(gdb) l

1 in /build/buildd/glibc-2.9/build-tree/amd64-libc/csu/crtn.S

# that was it?
(gdb) quit

Nikos
---
[1] http://grass.osgeo.org/wiki/GRASS_Debugging

Nikos:

> > m.eigensystem, compiled against latest grass6_dev _AND_ grass
> > -6.4.0RC4 source code, segfaults under Ubuntu-J 64-bit Beta.

> > It works fine with Ubuntu Intrepid! So, something in Jaunty
> > doesn't like m.eigensystem (fortran code?)!

Hamish:
> any chance of debugging? (gdb, etc)
> how far does it get?

I have recompiled latest grass6_devel using the configuration
copy-pasted in [2].

(
thank you Maris for the recommendation to --enable-debug
)

I repeated my "gdb" test and I get the exact same output as in my first
attempt (previous post of mine in this thread). How can I _force_ more
output?

Kind regards, Nikos

---
[1] http://grass.osgeo.org/wiki/GRASS_Debugging

[2] CFLAGS="-g -Wall -O0" LDFLAGS="-s" ./configure \
--enable-debug \
--enable-64bit \
--with-libs=/usr/lib64 \
--with-cxx \
--with-freetype=yes \
--with-freetype-includes="/usr/include/freetype2/" \
--with-postgres=no \
--with-sqlite=yes \
--enable-largefile=yes \
--with-tcltk-includes="/usr/include/tcl8.4/" \
--with-freetype-includes=/usr/include/freetype2 \
--with-opengl-libs=/usr/include/GL \
--with-readline \
--with-python=yes \
--with-proj-share=/usr/local/share/proj/ \
--with-wxwidgets \
--with-cairo