﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
1109	pxinject gives a Bus Error (NULL value for field 'epoch' on some hardware)	Michael Wood-Vasey	Paul Price	"When running the simtest module on ipp-2.6.beta (20080716) I can't inject images.  The basic pantasks job failed with

no data in db TESS/Photcodes.dat
directory TESS does not exist, creating...
exp_name : simtest.000.000.
1 files in fileset.
Running [/Volumes/data/PS1/code/ipp-2.6.beta/default.darwin/bin/pxinject -newExp -tmp_exp_name simtest.000.000 -tmp_inst SIMTEST -tmp_telescope SIMTEST -workdir /Volumes/data/PS1/data/simtest/work -dvodb /Volumes/data/PS1/data/simtest/DVO -tess_id /Volumes/data/PS1/data/simtest/TESS -label wait -dbname simtest]...
Unable to inject simtest.000.000: 10

In more detail from gdb

(gdb) run -newExp -tmp_exp_name simtest.000.000 -tmp_inst SIMTEST -tmp_telescope SIMTEST -workdir /Volumes/data/PS1/data/simtest/work -dvodb /Volumes/data/PS1/data/simtest/DVO -tess_id /Volumes/data/PS1/data/simtest/TESS -label wait -dbname simtest
Starting program: /Volumes/data/PS1/code/ipp-2.6.beta/default.darwin/bin/pxinject -newExp -tmp_exp_name simtest.000.000 -tmp_inst SIMTEST -tmp_telescope SIMTEST -workdir /Volumes/data/PS1/data/simtest/work -dvodb /Volumes/data/PS1/data/simtest/DVO -tess_id /Volumes/data/PS1/data/simtest/TESS -label wait -dbname simtest
Reading symbols for shared libraries ++++++++++++++++++++++..... done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x009499ac in net_store_datetime ()
(gdb) bt
#0  0x009499ac in net_store_datetime ()
#1  0x00949abc in store_param_datetime ()
#2  0x0094c500 in cli_stmt_execute ()
#3  0x0094bfec in mysql_stmt_execute ()
#4  0x005fa2ac in p_psDBRunQueryPrepared ()
#5  0x005f8bc8 in psDBInsertRows ()
#6  0x005f89b4 in psDBInsertOneRow ()
#7  0x00564528 in newExpInsert (dbh=0x18056b4, exp_id=0, tmp_exp_name=0x1815214 ""simtest.000.000"", tmp_camera=0x18139a4 ""SIMTEST"", tmp_telescope=0x1804974 ""SIMTEST"", state=0x3bf4 ""reg"", workdir=0x1804b64 ""/Volumes/data/PS1/data/simtest/work"", workdir_state=0x3bf8 ""dirty"", reduction=0x0, dvodb=0x1815344 ""/Volumes/data/PS1/data/simtest/DVO"", tess_id=0x18153a4 ""/Volumes/data/PS1/data/simtest/TESS"", end_stage=0x0, label=0x1815474 ""wait"", epoch=0x0) at ippdb.c:2535
#8  0x00002900 in newExpMode (config=0xe005d4) at pxinject.c:92
#9  0x00002198 in main (argc=18, argv=0xbfffa628) at pxinject.c:53

Is this related to ippdb being mismatched to the rest of the code as noted earlier today or is this some problem with my DB configuration?  What -trace should I enable?"	enhancement	closed	normal		db	unspecified	minor	fixed		
