Thursday, 2009-07-30

*** dyki has joined #ingres00:25
*** Deyan has joined #ingres01:58
*** Gerhard has joined #ingres02:34
*** Gerhard has quit IRC03:28
*** atrofast has joined #ingres04:14
grantcmorning all05:06
Alex|had a long night? ;)05:06
pborohehe :)05:06
grantcDeyan, could you try http://ingres.pastebin.com/f645b750b (a patch) against the _current SVN_ source for the PHP driver05:06
grantcit might fix your close problem05:06
grantcAlex|, hmmm05:07
*** rossand has joined #ingres05:12
*** ChanServ sets mode: +o rossand05:12
*** rossand has quit IRC05:19
Deyangrantc: i will05:30
Deyanty05:30
grantcthere is no guarantee it will fix your problem but i found an issue in ingres_query() related to non-select statements05:30
*** rossand has joined #ingres05:32
*** ChanServ sets mode: +o rossand05:32
grantcmorning rossand05:38
rossandGood afternoon grantc, everyone.05:38
Deyangrantc: first run of my script crashed the server05:45
Deyan:D05:45
grantcnot my problem :P05:45
grantcpaste the errlog.log into the pastebin05:46
*** Alex| is now known as Alex|off05:57
thiagomzmasters... what is the diference between a Consistent Point and a Write Behind ?06:00
magnusg|thiagomz, I don't know if I qualify to be a master but a consistency point is a the name of an activity in Ingres where the data caches in memory are flushed to disk, the archiver copies information from transaction log to journal file, the transaction log i updated with some information about this and maybe a few other things are happening too.06:33
magnusg|The purpose is to get a point in time where the system is as synchronized on disk as possible,06:33
magnusg|Write behind threads are used by a protocol called write ahead (IIRC) which together with fast commit servers means that changes in data is primarily updated in memory caches and in the transaction log and written to the database at a later time. THis being either when the memory cache is getting filled or at a consistency point.06:36
*** mull has joined #ingres06:37
*** atrofast has quit IRC06:37
magnusg|Since I am writing I can also say hello to everybody and say that I've had quite a good time today and yesterday creating a shell script which produces table name, table owner and data file name on tables which has not been updated for a given period of time or the opposite of that.06:42
*** rossand has quit IRC06:59
*** FrankW has joined #ingres07:25
*** Deyan_ has joined #ingres07:49
Deyan_grantc: are you there?07:49
*** Deyan_ has quit IRC07:50
grantcsort of07:50
Deyani made a paste07:50
Deyani ran script few times07:50
grantci might have another diff for you to try :D07:50
Deyanand each time i got some serious errors07:50
Deyanawesome07:50
grantcagain i don't know it will fix your problem but i certainly fixes mine ...07:51
Deyansure07:51
Deyani will be glad to test it07:51
grantcsvn revert then apply http://ingres.pastebin.com/f5efb65b607:52
grantcregarding your SEGV - unfortunately as before we will need a test case to resolve it07:53
Deyani frankly do not know how to make a test case :D07:54
grantcbut it looks like something bad happens in the semaphore code07:54
Deyanbecause i have no clue where the problem lies...07:54
Deyan:(07:54
grantctoumi01, are you about?07:54
Deyangrantc: i can just describe what script does...07:55
toumi01yup07:55
Deyanthere are few important things to note about this script07:55
grantcdo you have 5 secs to take a look at an errlog segment07:55
toumi01fire away07:55
Deyan1) few of us may run it at the same time07:55
grantcDeyan, what version of ingres is this?07:56
Deyan2) each process connects to a different (test database), which is the target database07:56
Deyan9.307:56
grantcand the build number (at the end of the brackets)?07:56
DeyanIngres Linux Version II 9.3.0 (a64.lnx/140)NPTL07:56
Deyan3) each of scripts connects also to at least 2 other databases07:59
Deyanthese 2 databases are common for all processes07:59
grantcall the dbs are in the same instance?08:01
Deyanyes08:03
Deyanlater they will be remote08:03
Deyanthis is just for testing08:03
Deyanok grant08:04
Deyangoing to apply your new patch08:04
Deyanbrb08:04
grantck08:04
*** magnusg| has quit IRC08:07
*** toumi01 has left #ingres08:16
Deyangrantc: now it did not cause server-errors08:20
Deyanso the new patch is better08:20
DeyanIMHO08:20
Deyan:D08:20
grantcsweet...08:20
grantcdoes the script work now?08:21
Deyani just ran it as single process08:21
Deyandid not try to run two in parallel08:21
Deyanit is still working08:21
Deyanbut i can see everything goes fine08:22
Deyanprevious patch caused crash pretty fast08:22
*** DerMeister has joined #ingres08:26
Deyangrantc: i am getting bunch of strange warnings08:38
DeyanPHP Warning:  ingres_query(): Error: 7 - Unable to close non-result resource statement in /home/ingres/dejan/athena/migrator/inc/sys_codes.php on line 908:38
DeyanPHP Stack trace:08:38
Deyanthis line contains ingres_query() statement08:38
Deyanthat is why i find it strange08:38
Deyani get similar warnings in other ingres_query() lines08:39
grantci am passing a bad handle in the code - that's what 7 is08:42
*** rossand has joined #ingres08:42
*** ChanServ sets mode: +o rossand08:42
grantcsince you cannot have multiple active deletes at the same time it's trying to clean up from the last one08:43
Deyanscript is never deleting09:05
Deyanif that is what you mean09:05
Deyanit is just reading from source(s), and inserting read data into the target database09:06
Deyanit never deletes anything09:06
Deyanok, i am going to try parallel execution now09:08
grantcdeletes/inserts/updates09:10
grantcDML09:10
Deyandoes that mean that some rows may have not been inserted?09:15
grantci don't believe that should be a problem but you should check09:16
grantcbtw can you paste the table definition for dir_dat_companies09:16
Deyanit is not just that table09:17
grantci am more concerned with the server crashing you were having09:18
Deyanaham09:18
Deyanok09:18
Deyanhold on09:18
*** toumi01 has joined #ingres09:39
dykiits nice IBM server so it is even more strange :)09:39
dykiit has no_crash set as default  :)09:40
DeyanROFL09:40
*** Deyan has quit IRC09:51
*** Alex|off is now known as Alex|09:57
*** dyki has quit IRC10:07
*** Alex| is now known as Alex|off10:14
*** grantc_ has joined #ingres10:45
*** ChanServ sets mode: +o grantc_10:45
*** grantc has quit IRC10:46
*** grantc_ has quit IRC10:53
FrankWrossand:  I'm seeing: Link /wrk/home/warmerda/ingres/server/build/utility/unimapcompile11:22
FrankW wrk/home/warmerda/ingres/server/build/lib/libq.1.so: undefined reference to `GEOSWKTReader_destroy_r'11:22
FrankWIt seems somewhat likely that I need a 32bit geos build to link 32bit apps against - is that likely true?11:22
FrankWI'm starting to think I should just abandon doing this on 64bit linux.11:22
rossandHi FrankW No question 32 bit is easier. We'd like to sort out any issues on 64 bit if you'd like to fight through them with us? I can ask Chuck to give you a hand - he did the work to integrate GEOS.11:24
FrankWOK, I'm game to keep pushing.11:25
FrankWI did notice that geos had been added to the link list in Jamefs.int_lnx, but not in Jamdefs.i64_lnx so I added it there.  But I only have a 64bit geos on my system.11:25
rossandOK, thanks. Chuck's going to be online momentarily.11:26
rossandWorst case, I have an extra desktop system we could use if we need to set up a place for you to work.11:27
*** cthibert has joined #ingres11:27
rossandThere's the man. :-)11:28
cthibertHello11:28
FrankWHi Chuck11:28
FrankWI'm trying to build the geospatial branch on 64bit linux and getting problems when linking unimapcompile about GEOS functions being missing.11:28
FrankWI suspect it is because I lack a 32bit geos library.  Does that seem likely to you?11:29
cthibertThere are a couple places add the link for 64 bit in Ingres.  I know I've only done the 32 bit in the current svn repo.11:30
FrankWI did notice that -lgeos_c was missing in Jamdefs.i64_lnx - I'm not sure if there is other stuff missing.11:30
cthibertAndrew says you made the change in Jamdefs, but there's one more file to change, sec I'll find it again.11:31
FrankWShould things like unimapcompile really depend on geos?11:31
FrankWAh, cool11:31
cthibertHmm the other file is src/tools/port/shell_unix/mkdefault.sh but it doesn't seem to make a distinction between 32 and 64.11:33
FrankWI'm a bit unclear what change I would make in mkdefault.sh.  Just clone the int_lnx) line for i64_lnx?11:36
cthibertNo.  It looks like mkdefault.sh is fine the way it is actually.  It uses the same $suffix as int_lnx.  There goes one potential fix... Hmm.  Did you happen to install your geos lib in a 'custom' directory?11:39
FrankWIt is in a custom directory, yes.11:39
FrankWBut I *suspect* the issue is that unimapcompile is 32bit and I don't have a 32bit geos_c.11:39
FrankWIn Jamdefs.i64_lnx I put:11:40
FrankWLDLIBMACH32 = -lpthread -lrt -lm -lc -lcrypt -ldl -lgcc_s -lgeos_c ;11:40
FrankWLDLIBMACH = -lpthread -lrt -lm -lc -lcrypt -ldl -lgcc_s -lgeos_c ;11:40
FrankWIt frustrates me that the actual link lines used do not appear in the Jam logs.11:40
pboroi64? isn't that itanium?11:42
pboroyou should be looking at a64_lnx if it's em64t or amd 64-bit11:42
FrankWcould be - I just guessed.11:42
pboroI checked, i64_lnx is for itanium... I guess you should be using a64_lnx, what is your hw platform?11:43
FrankWwell, let me try again after updating Jamdefs.a64_lnx.11:43
cthibertYour suspicion sounds plausible.  Also, mkdefault.sh sets up the ldlibpath to /lib /usr/lib and /usr/local/lib so it may also be ignoring any custom library.  Unfortunately, Jam is not my specialty and I'll be in tough to help with the jam debug files.11:43
FrankWok, rerunning build ... I'm not really sure how to establish what my hw platform is pboro.11:45
FrankWLink /wrk/home/warmerda/ingres/server/tools/bin/lp32/salign11:46
FrankW/usr/bin/ld: skipping incompatible /usr/local/lib/libgeos_c.so when searching for -lgeos_c11:46
FrankWThat would presumably be because it is 64bit.11:46
FrankWSo, to conclude, I will seemingly need a 32bit geos library.11:47
FrankWI'll try and whip one up here.11:47
cthibertLooks like it.11:47
pboroFrankW, I don't know anyone who has Itanium... so I guess you're fine with a64_lnx :)11:47
FrankWindeed11:47
cthibertCan I help provide a 32bit geos? I've got ones compiled in FC11 and Ubuntu.11:49
FrankWIf you can make one available from Ubuntu I'll give it a try.11:50
cthibertOkay, let me get it out (I'm in FC11 atm.)  I'll figure out a way to make it available through http or sftp or if you have another preferred method?11:51
FrankWfc11 might work fine.11:52
FrankWIf you can make it http fetchable for me that would be great.11:52
cthibertokay, one sec.11:52
FrankWI don't want to make you reboot - I can always build it myself.11:52
cthibertNope, I should be able to access the Ubuntu one without reboot, but if not I'll put the FC11 one up.  If I can I'll put both up.11:53
cthibertFrankW: Check your email for the link to the libraries.12:01
FrankWcthibert:  cool, thanks.12:02
cthibertnp12:04
*** atrofast has joined #ingres12:19
FrankWI seem to be making better progress on my build now, though I had to strip things down to .a files for the 32bit geos libraries to avoid runtime problems.12:29
FrankWI don't really grasp how mixed 32/64bit environments normally work.12:29
atrofastFrankW: usually you have /usr/local/lib/ for native libs (usually 64 bit) and /usr/local/lib32 for 32 bit libs12:35
atrofastThen both paths are in LD_LIBRARY_PATH or ldconf12:36
atrofastgcc/g++ or ld will search those paths, and find the compatible ones12:36
atrofastIt automatically skips incompatible architectures12:36
atrofastAt least taht's how it has worked in my experience :)12:36
FrankWPerhaps the problem was that I didn't add /usr/local/lib32 to my LD_LIBRARY_PATH.12:41
atrofastIn some cases I've had problems where I had to add the dirs to BOTH ldconf AND LD_LIBRARY_PATH12:42
*** atrofast1 has joined #ingres12:52
atrofast1Bah iPhone tethering is not terribly stable... Just got discoed12:53
*** atrofast has quit IRC12:59
FrankWcthibert:  any thoughts on http://osgeo.pastebin.ca/1512711 ?13:01
FrankWI believe this build has -L/usr/local/lib32 -lgeos_c -lgeos in LDLIBMACH32.13:01
* FrankW tries again being more explicit with link libraries.13:04
cthibertHmm.  This looks like it's geos that can't find itself.13:04
atrofast1FrankW: I just remembered, there is a change necessary for 64 bit machines13:04
FrankWI suspect libgeos_c wasn't finding libgeos.13:04
FrankWwhat change was that?13:04
atrofast1In one of the files that lists the libs needed, -lgeos needs to be added for the 64 bit build13:04
atrofast1I can't remember on top of my head which one... Let me see if I can find the patch I made13:05
FrankWI have added them in Jamdefs.a64_lnx.13:05
cthibertLooks like it.  I wonder if it has anything to do with the softlinks in the tar file.  I would have tarred them up as is, which would be pointing to /usr/local/lib.13:05
atrofast1Okay i think that ight be it13:05
FrankWI stripped down my /usr/local/lib32 to just the two .a files.13:05
FrankWI'm rerunning the build to see if it helps.13:05
FrankWNow I get /usr/include/c++/4.3/iostream:77: undefined reference to `std::ios_base::Init::Init()'13:06
FrankW13:06
FrankWLikely a difference of versions between the FC system cthibert built on and mine.13:07
FrankWErr, the ubuntu system I mean.13:07
FrankWcrap ... c++ libraries are a hassle in this regard.13:07
FrankWI'll try building locally using -m32 and see if that works.13:08
FrankWLoading iimerge ...13:46
FrankWadupoint.c:(.text+0x47a): undefined reference to `initGEOS_r'13:46
FrankWI'm not clear why this isn't picking up geos.13:46
*** atrofast1 has quit IRC13:46
cthibertLikely the error is coming from sooner than that.  I've got logs that show the same thing.  And the first failed link in still in unimapcompile.  I'm working on a similar issue in FC11 atm with some updated build scripts from main.  When I figure it out I'll see if it translates to your problem.14:04
pboroFrankW, you are aware that running "jam -q" makes jam stop immediately when error occurs, aren't you?14:05
pboroor do you use runbuild.sh?14:05
*** DerMeister has quit IRC14:16
cthibertI wasn't aware.  Making the change to runbuild.sh to allow -q.  Thanks pboro14:16
FrankWI am using runbuild.sh and I did not know that.14:18
pboroAlex gave that tip while I was debugging my Ingres build environment, made things a bit easier :)14:21
cthibertOkay, quick commit to the spatial branch.  If you svn up you can get the -q option FrankW14:25
* FrankW grabs and uses ... thanks!14:26
FrankWholy cow, it even gives a nice detailed error message with the full command text!14:27
pboroyup :)14:27
cthibertI found the file to change for the new scripts, but it doesn't exist in the current spatial branch.  And the rest of the changes in what I'm working on aren't of the -q quick commit style. :) But hopefully the new -q option helps more.14:28
pboroI hope it helps, I'm off for bed now. Nites guys! ->14:28
cthibertThanks pboro. night14:28
cthibertI did notice a file /devsrc/ingres-geo/src/tools/port/shell_unix/shlibinfo.sh that also has linking options.  Not entirely familiar with it, but it may be something to poke at.14:29
*** atrofast has joined #ingres14:32
FrankWI have altered mkdefault.sh after all and I think I'm making progress.14:32
cthibertOkay, cool.  I'm being paged for diner though so I'll have to leave.  Let me know by email and I'll check in first thing tomorrow.14:34
FrankW:-)14:35
*** cthibert has left #ingres14:35
*** atrofast has quit IRC14:52
*** mull has quit IRC16:09
*** rossand has quit IRC16:39
*** toumi01 has left #ingres17:18
*** mull has joined #ingres17:48
*** chenzhen has joined #ingres18:50
*** chenzhen has left #ingres18:50
*** mull has quit IRC18:53
*** rossand has joined #ingres20:21
*** ChanServ sets mode: +o rossand20:21
*** toumi01 has joined #ingres21:01
*** rossand has quit IRC21:06
*** FrankW has quit IRC21:54
*** Alex|off is now known as Alex|22:11
*** Gerhard has joined #ingres22:34
*** Alex| is now known as Alex|off22:56
*** Alex|off is now known as Alex|23:08
*** magnusg| has joined #ingres23:26
*** Gerhard has quit IRC23:38

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!