Hi, I've compiled varmon again with -ggdb from vanilla source. Here is the progress: hostname:~/varmon-1.2.0# make clean rm -f *.o core varmon hostname:~/varmon-1.2.0# make varmon gcc -o varmon varmon.c -Wall -lncurses -ggdb varmon.c: In function ‘get_backplane_info’: varmon.c:166: warning: pointer targets in passing argument 8 of ‘v2_SCSI_cmd’ differ in signedness varmon.c:206: warning: pointer targets in passing argument 8 of ‘v2_SCSI_cmd’ differ in signedness varmon.c:234: warning: pointer targets in assignment differ in signedness varmon.c: In function ‘detect_backplane’: varmon.c:496: warning: pointer targets in passing argument 2 of ‘strncpy’ differ in signedness varmon.c:505: warning: pointer targets in passing argument 1 of ‘strncmp’ differ in signedness varmon.c:506: warning: pointer targets in passing argument 1 of ‘strncmp’ differ in signedness varmon.c:511: warning: pointer targets in passing argument 1 of ‘strncmp’ differ in signedness hostname:~/varmon-1.2.0# gdb ./varmon GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "alpha-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run Starting program: varmon Scanning for VA safety backplane. Please wait a few moments... DAC960: Ctrlr 0, PCI 00:0d:00, IRQ 22, Channels 3 DAC960: Model DAC960PU, Firmware 2.73-0-00 Scanning Controller[0], Channel[0], ID[0] Program received signal SIGSEGV, Segmentation fault. 0x0000000120003eb0 in detect_backplane () at varmon.c:501 501 tmp[index] = inq.ProductIdentification[index]; (gdb) bt #0 0x0000000120003eb0 in detect_backplane () at varmon.c:501 #1 0x0000000120018ad8 in main (argc=1128612896, argv=0x53432d4243315a52) at varmon.c:3490 (gdb) Strange enough, it runs like a charm when compiled with -O2 ?!? If you need more information, please let me know. Regards, Dimitri Puzin aka Tristan-777