Hi all.<br>
<br>
Sorry for answering twice, but I tried a bit more with the debuggers
and, despite not finding how to fix what I'm doing wrong, I could get
some extra information:<br>
<br>
Using "idb":<br>
<br>
Intel(R) Debugger for Intel(R) EM64T -based Applications, Version 9.0-16, Build 20051121<br>
(idb) load ./mknb<br>
Reading symbolic information from /home/johannes/src/gromacs/gromacs-3.3/src/gmxlib/nonbonded/nb_kernel/mknb...done<br>
(idb) run<br>
>>> Gromacs nonbonded kernel generator (-h for help)<br>
>>> Generating single precision functions in C.<br>
Thread received signal SEGV<br>
stopped at [<opaque> __find_specmb(...) 0x00002aaaab15a88c]<br>
<br>
Information: An <opaque> type was presented during
execution of the previous command. For complete type information
on this symbol, recompilation of the program will be necessary.
Consult the compiler man pages for details on producing full symbol
table information.<br><br>
And using "idb -gdb":<br>
<br>
Intel(R) Debugger for Intel(R) EM64T -based Applications, Version 9.0-16, Build 20051121<br>
(idb) file ./mknb<br>
Reading symbols from /home/johannes/src/gromacs/gromacs-3.3/src/gmxlib/nonbonded/nb_kernel/mknb...done.<br>
(idb) run<br>
Starting program: /home/johannes/src/gromacs/gromacs-3.3/src/gmxlib/nonbonded/nb_kernel/mknb<br>
>>> Gromacs nonbonded kernel generator (-h for help)<br>
>>> Generating single precision functions in C.<br>
Program received signal SIGSEGV<br>
__find_specmb () in /lib64/tls/libc.so.6<br>
<br>
Now, using "gdb, file, run, where", as suggested, I get:<br>
<br>
GNU gdb 6.3<br>
Copyright 2004 Free Software Foundation, Inc.<br>
GDB is free software, covered by the GNU General Public License, and you are<br>
welcome to change it and/or distribute copies of it under certain conditions.<br>
Type "show copying" to see the conditions.<br>
There is absolutely no warranty for GDB. Type "show warranty" for details.<br>
This GDB was configured as "x86_64-suse-linux".<br>
(gdb) file ./mknb<br>
Reading symbols from /home/johannes/src/gromacs/gromacs-3.3/src/gmxlib/nonbonded/nb_kernel/mknb...done.<br>
Using host libthread_db library "/lib64/tls/libthread_db.so.1".<br>
(gdb) run<br>
Starting program: /home/johannes/src/gromacs/gromacs-3.3/src/gmxlib/nonbonded/nb_kernel/mknb<br>
>>> Gromacs nonbonded kernel generator (-h for help)<br>
>>> Generating single precision functions in C.<br>
<br>
Program received signal SIGSEGV, Segmentation fault.<br>
0x00002aaaab15a88c in __find_specmb () from /lib64/tls/libc.so.6<br>
(gdb) where<br>
#0 0x00002aaaab15a88c in __find_specmb () from /lib64/tls/libc.so.6<br>
#1 0x00002aaaab140e6f in vfprintf () from /lib64/tls/libc.so.6<br>
#2 0x00002aaaab15e2a9 in vsprintf () from /lib64/tls/libc.so.6<br>
#3 0x00002aaaab149568 in sprintf () from /lib64/tls/libc.so.6<br>
#4 0x000000000040248b in mknb_code (format=0x40cd2e "s") at mknb_metacode.c:282<br>
#5 0x0000000000401aaf in mknb_declare_real (name=0x7fffffffd0d0 "ix1,iy1,iz1,fix1,fiy1,fiz1") at mknb_metacode.c:104<br>
#6 0x0000000000403e62 in mknb_declare_variables () at mknb_declarations.c:258<br>
#7 0x0000000000400fef in mknb_write_function () at mknb.c:154<br>
#8 0x00000000004017cf in main (argc=1, argv=0x7fffffffd628) at mknb.c:348<br>
<br>Well, what does this kind of stuff means? It worries about the libc
4 times, but also about the other files. :( What shall I look at?<br>
<br>
David Mathog: thanks also. But, how could I fix that?<br>
<br>
Thanks a lot for everything.<br>
<br>
Jones<br><br><div><span class="gmail_quote">On 5/31/06, <b class="gmail_sendername">David van der Spoel</b> <<a href="mailto:spoel@xray.bmc.uu.se">spoel@xray.bmc.uu.se</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
gdb> where<br>it will tell you the line in the mknb this was called from.<br>if you call a library function with garbage data it may crash there...<br>--<br>David.<br>________________________________________________________________________
<br>David van der Spoel, PhD, Assoc. Prof., Molecular Biophysics group,<br>Dept. of Cell and Molecular Biology, Uppsala University.<br>Husargatan 3, Box 596, 75124 Uppsala, Sweden<br>phone: 46 18 471 4205 fax: 46 18 511 755
<br><a href="mailto:spoel@xray.bmc.uu.se">spoel@xray.bmc.uu.se</a> <a href="mailto:spoel@gromacs.org">spoel@gromacs.org</a> <a href="http://folding.bmc.uu.se">http://folding.bmc.uu.se</a><br>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<br>
</blockquote></div>