EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: marccd driver
From: "Mark Rivers" <[email protected]>
To: "Song, Jinhu" <[email protected]>, <[email protected]>
Date: Tue, 23 Feb 2010 17:16:43 -0600
Hi Jinhu,

I have never seen that problem.

My first suggestion would be to use the latest version of areaDetector,
R1-5, rather than R1-4.  That will require that you upgrade to asyn
R4-12, but versions of everything else look OK.

What version of the MAR "protocol" are you running on the marCCD
program?  It must be version 1, not version 0.

Are you running a version of the marccd_server_socket program more
recent than Nov. 11, 2008, as the documentation says to do?  I think MAR
will give you a frameshift license if you ask.

I would recommend enabling core dumps (csh: "limit core 100000",
bash:"ulimit -c 100000").  Then when it crashes you will have a core
file, which you can analyze with gdb:

gdb ../../bin/linux-x86/marCCDApp core.XXXX

Type the gdb command "bt" (backtrace).  Send me the stack trace which
should include useful symbols.

Alternatively you can run the program directly under gdb:

gdb ../../bin/linux-x86/marCCDApp
gdb> start short.cmd

Again, when it crashes do "bt".

Mark



-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Song, Jinhu
Sent: Tuesday, February 23, 2010 4:27 PM
To: [email protected]
Subject: marccd driver

Hi,

I compiled areaDetector drvier (1-4) for marccd but it crashed right
after it started.  The precompiled executable crashed the same way.

The environment:
uname -a:
Linux cls1jin 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007 i686
athlon i386 GNU/Linux
libc.so->libc-2.7.so

Marccd gave warning when it started: frameshift license invalid or
expired and is disabled.

I tried to comment out the code reading and writing about frameshift.
It only delayed the crash a little bit.

Some modules in the environment are newer than the required:
BUSY  1-2   not 1-1
SSCAN 2-6-4 not 2-6-3
MCA   6-11  not 6-10

Thanks in adance for your help,

Jinhu
=================================
The crash:
 ../../bin/linux-x86/marCCDApp < short.cmd
epics> < envPaths
epicsEnvSet("ARCH","linux-x86")
epicsEnvSet("IOC","iocMARCCD")
epicsEnvSet("TOP","/usr/local/src/epics-extras-3_14_10-20100210_172337/s
ynApps-5_4_1/support/areaDetector/1-4")
epicsEnvSet("EPICS_BASE","/usr/local/epics/base")
epicsEnvSet("SNCSEQ","/usr/local/epics/extra/synApps-5_4_1/support/seq/2
-0-12")
epicsEnvSet("ASYN","/usr/local/epics/extra/synApps-5_4_1/support/asyn/4-
10")
epicsEnvSet("AREA_DETECTOR","/usr/local/epics/extra/synApps-5_4_1/suppor
t/areaDetector/1-4")
epicsEnvSet("CALC","/usr/local/epics/extra/synApps-5_4_1/support/calc/2-
7")
epicsEnvSet("SSCAN","/usr/local/epics/extra/synApps-5_4_1/support/sscan/
2-6-4")
epicsEnvSet("AUTOSAVE","/usr/local/epics/extra/synApps-5_4_1/support/aut
osave/4-5")
epicsEnvSet("MCA","/usr/local/epics/extra/synApps-5_4_1/support/mca/6-11
")
epicsEnvSet("gpib_DIR","/usr/local/lib")
epicsEnvSet("PCRE_LIB","/usr/local/lib")
epicsEnvSet("PCRE_INCLUDE","/usr/local/include")
epics> errlogInit(20000)
epics> 
epics> dbLoadDatabase("$(AREA_DETECTOR)/dbd/marCCDApp.dbd")
epics> marCCDApp_registerRecordDeviceDriver(pdbbase) 
epics> 
epics> ###
epics> # Create the asyn port to talk to the MAR on port 2222
epics> drvAsynIPPortConfigure("marServer","172.17.11.21:2222")
epics> # Set the input and output terminators.
epics> asynOctetSetInputEos("marServer", 0, "\n")
epics> asynOctetSetOutputEos("marServer", 0, "\n")
epics> asynSetTraceMask("marServer",0,9)
epics> asynSetTraceIOMask("marServer",0,2)
epics> 
epics> marCCDConfig("MAR", "marServer", 20, 200000000)
2010/02/23 13:44:20.703 172.17.11.21:2222 write 10
get_state\n
2010/02/23 13:44:20.716 172.17.11.21:2222 read 5
0x0\n\000
2010/02/23 13:44:20.716 172.17.11.21:2222 write 9
get_size\n
2010/02/23 13:44:20.726 172.17.11.21:2222 read 11
2048,2048\n\000
2010/02/23 13:44:20.726 172.17.11.21:2222 write 8
get_bin\n
2010/02/23 13:44:20.736 172.17.11.21:2222 read 5
2,2\n\000
epics> #marCCDConfig("MAR", "marServer", -1, -1)
epics> dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/ADBase.template",
"P=13MARCCD1:,R=cam1:,PORT=MAR,ADDR=0,TIMEOUT=1")
epics>
dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/NDFile.template","P=13MARCCD1:,
R=cam1:,PORT=MAR,ADDR=0,TIMEOUT=1")
epics>
dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/marCCD.template","P=13MARCCD1:,
R=cam1:,PORT=MAR,ADDR=0,TIMEOUT=1,MARSERVER_PORT=marServer")
epics> 
epics> iocInit()
Starting iocInit
########################################################################
####
## EPICS R3.14.10 $R3-14-10$ $2008/10/27 19:39:04$
## EPICS Base built Feb 10 2010
########################################################################
####
13MARCCD1:cam1:MarReadStatus devAsynInt32::initCommon drvUserCreate
ADDriver:drvUserCreate:, unknown drvInfo=MAR_READ_STATUS
2010/02/23 13:44:21.273 172.17.11.21:2222 write 12
set_bin,2,2\n
2010/02/23 13:44:21.273 172.17.11.21:2222 write 12
set_bin,2,2\n
2010/02/23 13:44:21.273 172.17.11.21:2222 write 9
get_size\n
iocRun: All initialization complete
epics> 
epics> 2010/02/23 13:44:21.316 172.17.11.21:2222 read 11
2048,2048\n\000
2010/02/23 13:44:21.316 172.17.11.21:2222 write 8
get_bin\n
2010/02/23 13:44:21.326 172.17.11.21:2222 read 5
2,2\n\000
*** glibc detected *** ../../bin/linux-x86/marCCDApp: corrupted
double-linked list: 0x0896d4b0 ***
======= Backtrace: =========
/lib/libc.so.6[0x86ed5d]
/lib/libc.so.6[0x870d8d]
/lib/libc.so.6(__libc_calloc+0x8a)[0x87289a]
../../bin/linux-x86/marCCDApp[0x81ab8a2]
../../bin/linux-x86/marCCDApp[0x813f73f]
../../bin/linux-x86/marCCDApp(cast_server+0x366)[0x8142f46]
../../bin/linux-x86/marCCDApp[0x81c297b]
/lib/libpthread.so.0[0x99950b]
/lib/libc.so.6(clone+0x5e)[0x8dab2e]
======= Memory map: ========
00110000-00111000 r-xp 00110000 00:00 0          [vdso]
00111000-001f1000 r-xp 00000000 fd:00 29883698
/usr/lib/libstdc++.so.6.0.8
001f1000-001f5000 r-xp 000df000 fd:00 29883698
/usr/lib/libstdc++.so.6.0.8
001f5000-001f6000 rwxp 000e3000 fd:00 29883698
/usr/lib/libstdc++.so.6.0.8
001f6000-001fc000 rwxp 001f6000 00:00 0 
001fc000-00206000 r-xp 00000000 fd:00 3932268
/lib/libnss_files-2.7.so
00206000-00207000 r-xp 00009000 fd:00 3932268
/lib/libnss_files-2.7.so
00207000-00208000 rwxp 0000a000 fd:00 3932268
/lib/libnss_files-2.7.so
00796000-007c6000 r-xp 00000000 fd:00 29861952
/usr/lib/libreadline.so.5.2
007c6000-007ca000 rwxp 00030000 fd:00 29861952
/usr/lib/libreadline.so.5.2
007ca000-007cb000 rwxp 007ca000 00:00 0 
007e8000-00803000 r-xp 00000000 fd:00 3932360    /lib/ld-2.7.so
00803000-00804000 r-xp 0001a000 fd:00 3932360    /lib/ld-2.7.so
00804000-00805000 rwxp 0001b000 fd:00 3932360    /lib/ld-2.7.so
00807000-0095a000 r-xp 00000000 fd:00 3935108    /lib/libc-2.7.so
0095a000-0095c000 r-xp 00153000 fd:00 3935108    /lib/libc-2.7.so
0095c000-0095d000 rwxp 00155000 fd:00 3935108    /lib/libc-2.7.so
0095d000-00960000 rwxp 0095d000 00:00 0 
00962000-00989000 r-xp 00000000 fd:00 3935109    /lib/libm-2.7.so
00989000-0098a000 r-xp 00026000 fd:00 3935109    /lib/libm-2.7.so
0098a000-0098b000 rwxp 00027000 fd:00 3935109    /lib/libm-2.7.so
0098d000-00990000 r-xp 00000000 fd:00 3935111    /lib/libdl-2.7.so
00990000-00991000 r-xp 00002000 fd:00 3935111    /lib/libdl-2.7.so
00991000-00992000 rwxp 00003000 fd:00 3935111    /lib/libdl-2.7.so
00994000-009a9000 r-xp 00000000 fd:00 3935114    /lib/libpthread-2.7.so
009a9000-009aa000 r-xp 00014000 fd:00 3935114    /lib/libpthread-2.7.so
009aa000-009ab000 rwxp 00015000 fd:00 3935114    /lib/libpthread-2.7.so
009ab000-009ad000 rwxp 009ab000 00:00 0 
00ab5000-00abc000 r-xp 00000000 fd:00 3935121    /lib/librt-2.7.so
00abc000-00abd000 r-xp 00007000 fd:00 3935121    /lib/librt-2.7.so
00abd000-00abe000 rwxp 00008000 fd:00 3935121    /lib/librt-2.7.so
00d8a000-00d95000 r-xp 00000000 fd:00 3935116
/lib/libgcc_s-4.1.2-20070925.so.1
00d95000-00d96000 rwxp 0000a000 fd:00 3935116
/lib/libgcc_s-4.1.2-20070925.so.1
0711b000-07130000 r-xp 00000000 fd:00 3935129    /lib/libtinfo.so.5.6
07130000-07133000 rwxp 00014000 fd:00 3935129    /lib/libtinfo.so.5.6
07183000-071a3000 r-xp 00000000 fd:00 3932335    /lib/libncurses.so.5.6
071a3000-071a4000 rwxp 00020000 fd:00 3932335    /lib/libncurses.so.5.6
08048000-08277000 r-xp 00000000 fd:00 31555824
/usr/local/src/epics-extras-3_14_10-20100210_172337/synApps-5_4_1/suppor
t/areaDetector/1-4/bin/linux-x86/marCCDApp
08277000-08282000 rw-p 0022f000 fd:00 31555824
/usr/local/src/epics-extras-3_14_10-20100210_172337/synApps-5_4_1/suppor
t/areaDetector/1-4/bin/linux-x86/marCCDApp
08282000-08289000 rw-p 08282000 00:00 0 
08856000-08982000 rw-p 08856000 00:00 0 
b527f000-b5280000 ---p b527f000 00:00 0 
b5280000-b5329000 rw-p b5280000 00:00 0 
b5329000-b5400000 ---p b5329000 00:00 0 
b5422000-b5423000 ---p b5422000 00:00 0 
b5423000-b5463000 rw-p b5423000 00:00 0 
b5463000-b5464000 ---p b5463000 00:00 0 
b5464000-b54a4000 rw-p b5464000 00:00 0 
b54a4000-b54a5000 ---p b54a4000 00:00 0 
b54a5000-b54c5000 rw-p b54a5000 00:00 0 
b54c5000-b54c6000 ---p b54c5000 00:00 0 
b54c6000-b5506000 rw-p b54c6000 00:00 0 
b5506000-b5507000 ---p b5506000 00:00 0 
b5507000-b5587000 rw-p b5507000 00:00 0 
b5587000-b5588000 ---p b5587000 00:00 0 
b5588000-b5608000 rw-p b5588000 00:00 0 
b5608000-b5609000 ---p b5608000 00:00 0 
b5609000-b5689000 rw-p b5609000 00:00 0 
b5689000-b568a000 ---p b5689000 00:00 0 
b568a000-b570a000 rw-p b568a000 00:00 0 
b570a000-b570b000 ---p b570a000 00:00 0 
b570b000-b578b000 rw-p b570b000 00:00 0 
b578b000-b578c000 ---p b578b000 00:00 0 
b578c000-b580c000 rw-p b578c000 00:00 0 
b580c000-b580d000 ---p b580c000 00:00 0 
b580d000-b588d000 rw-p b580d000 00:00 0 
b588d000-b588e000 ---p b588d000 00:00 0 
b588e000-b590e000 rw-p b588e000 00:00 0 
b590e000-b590f000 ---p b590e000 00:00 0 
b590f000-b598f000 rw-p b590f000 00:00 0 
b598f000-b5990000 ---p b598f000 00:00 0 
b5990000-b5a10000 rw-p b5990000 00:00 0 
b5a10000-b5a11000 ---p b5a10000 00:00 0 
b5a11000-b5a91000 rw-p b5a11000 00:00 0 
b5a91000-b5a92000 ---p b5a91000 00:00 0 
b5a92000-b5b12000 rw-p b5a92000 00:00 0 
b5b12000-b5b13000 ---p b5b12000 00:00 0 
b5b13000-b5b53000 rw-p b5b13000 00:00 0 
b5b53000-b5b54000 ---p b5b53000 00:00 0 
b5b54000-b5b94000 rw-p b5b54000 00:00 0 
b5b94000-b5b95000 ---p b5b94000 00:00 0 
b5b95000-b7bd6000 rw-p b5b95000 00:00 0 
b7bd6000-b7bd7000 ---p b7bd6000 00:00 0 
b7bd7000-b7c17000 rw-p b7bd7000 00:00 0 
b7c17000-b7c18000 ---p b7c17000 00:00 0 
b7c18000-b7c58000 rw-p b7c18000 00:00 0 
b7c58000-b7c59000 ---p b7c58000 00:00 0 
b7c59000-b7c79000 rw-p b7c59000 00:00 0 
b7c79000-b7c7a000 ---p b7c79000 00:00 0 
b7c7a000-b7cba000 rw-p b7c7a000 00:00 0 
b7cba000-b7cbb000 ---p b7cba000 00:00 0 
b7cbb000-b7cfb000 rw-p b7cbb000 00:00 0 
b7cfb000-b7cfc000 ---p b7cfb000 00:00 0 
b7cfc000-b7d1c000 rw-p b7cfc000 00:00 0 
b7d1c000-b7f1c000 r--p 00000000 fd:00 29855418
/usr/lib/locale/locale-archive
b7f1c000-b7f1f000 rw-p b7f1c000 00:00 0 
b7f2b000-b7f32000 r--s 00000000 fd:00 29950217
/usr/lib/gconv/gconv-modules.cache
b7f32000-b7f34000 rw-p b7f32000 00:00 0 
bfed3000-bfee8000 rw-p bffea000 00:00 0          [stack]
Abort








References:
marccd driver Song, Jinhu

Navigate by Date:
Prev: Re: Epics Base 3.14.9 compilation errors for Fedora 11 64 bit version Andrew Johnson
Next: sscan and epics R3.14.11 Szalata, Zenon M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: marccd driver Song, Jinhu
Next: RE: marccd driver Song, Jinhu
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·