couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <d...@muse.net.nz>
Subject Re: CouchJS Memory Error
Date Tue, 17 Jul 2012 18:56:43 GMT
On 17 July 2012 20:07, Tom Duffield <tom.duffield@gmail.com> wrote:
> Hey, I'm running RHEL 6.2 in AWS and I'm getting this errror:
>
> [root@ip-10-1-0-8 couchdb]# /usr/local/couchdb/bin/couchjs
> /usr/local/couchdb/share/couchdb/server/main.js
> *** glibc detected *** /usr/local/couchdb/bin/couchjs: realloc(): invalid
> next size: 0x0000000001ab1ab0 ***
> ======= Backtrace: =========
> /lib64/libc.so.6(+0x75366)[0x7f1be27e7366]
> /lib64/libc.so.6(+0x7ad67)[0x7f1be27ecd67]
> /lib64/libc.so.6(realloc+0xe5)[0x7f1be27ecf25]
> /usr/local/couchdb/bin/couchjs[0x49390f]
> /usr/local/couchdb/bin/couchjs[0x493b30]
> /usr/local/couchdb/bin/couchjs[0x4fb7c8]
> /usr/local/couchdb/bin/couchjs[0x4fb9c2]
> /usr/local/couchdb/bin/couchjs[0x4fc8bc]
> /usr/local/couchdb/bin/couchjs[0x49fd55]
> /usr/local/couchdb/bin/couchjs[0x4678a2]
> /usr/local/couchdb/bin/couchjs(JS_DefineFunctions+0x95)[0x40df35]
> /usr/local/couchdb/bin/couchjs[0x4a4725]
> /usr/local/couchdb/bin/couchjs[0x4a4ece]
> /usr/local/couchdb/bin/couchjs[0x40ef26]
> /usr/local/couchdb/bin/couchjs(JS_InitStandardClasses+0x8b)[0x40efcb]
> /usr/local/couchdb/bin/couchjs[0x40a958]
> /lib64/libc.so.6(__libc_start_main+0xfd)[0x7f1be2790cdd]
> /usr/local/couchdb/bin/couchjs[0x40a559]
> ======= Memory map: ========
> 00400000-006b9000 r-xp 00000000 ca:41 44027
>  /usr/local/couchdb/lib/couchdb/bin/couchjs
> 008b9000-008eb000 rw-p 002b9000 ca:41 44027
>  /usr/local/couchdb/lib/couchdb/bin/couchjs
> 019b5000-01ad0000 rw-p 00000000 00:00 0
>  [heap]
> 3fb7e00000-3fb7e48000 r-xp 00000000 ca:41 137825
> /usr/lib64/libpango-1.0.so.0.2800.1
> 3fb7e48000-3fb8048000 ---p 00048000 ca:41 137825
> /usr/lib64/libpango-1.0.so.0.2800.1
> 3fb8048000-3fb804b000 rw-p 00048000 ca:41 137825
> /usr/lib64/libpango-1.0.so.0.2800.1
> 3fb8200000-3fb8215000 r-xp 00000000 ca:41 134659
> /lib64/libz.so.1.2.3
> 3fb8215000-3fb8414000 ---p 00015000 ca:41 134659
> /lib64/libz.so.1.2.3
> 3fb8414000-3fb8415000 r--p 00014000 ca:41 134659
> /lib64/libz.so.1.2.3
> 3fb8415000-3fb8416000 rw-p 00015000 ca:41 134659
> /lib64/libz.so.1.2.3
> 3fb8600000-3fb865f000 r-xp 00000000 ca:41 138027
> /usr/lib64/libXt.so.6.0.0
> 3fb865f000-3fb885e000 ---p 0005f000 ca:41 138027
> /usr/lib64/libXt.so.6.0.0
> 3fb885e000-3fb8865000 rw-p 0005e000 ca:41 138027
> /usr/lib64/libXt.so.6.0.0
> 3fb8a00000-3fb8a29000 r-xp 00000000 ca:41 142713
> /usr/lib64/libpangoft2-1.0.so.0.2800.1
> 3fb8a29000-3fb8c28000 ---p 00029000 ca:41 142713
> /usr/lib64/libpangoft2-1.0.so.0.2800.1
> 3fb8c28000-3fb8c2a000 rw-p 00028000 ca:41 142713
> /usr/lib64/libpangoft2-1.0.so.0.2800.1
> 3fb9600000-3fb960b000 r-xp 00000000 ca:41 145237
> /usr/lib64/libpangocairo-1.0.so.0.2800.1
> 3fb960b000-3fb980b000 ---p 0000b000 ca:41 145237
> /usr/lib64/libpangocairo-1.0.so.0.2800.1
> 3fb980b000-3fb980c000 rw-p 0000b000 ca:41 145237
> /usr/lib64/libpangocairo-1.0.so.0.2800.1
> 3fb9a00000-3fb9a11000 r-xp 00000000 ca:41 145175
> /usr/lib64/libXext.so.6.4.0
> 3fb9a11000-3fb9c11000 ---p 00011000 ca:41 145175
> /usr/lib64/libXext.so.6.4.0
> 3fb9c11000-3fb9c12000 rw-p 00011000 ca:41 145175
> /usr/lib64/libXext.so.6.4.0
> 3fb9e00000-3fb9e24000 r-xp 00000000 ca:41 138244
> /usr/lib64/libjpeg.so.62.0.0
> 3fb9e24000-3fba023000 ---p 00024000 ca:41 138244
> /usr/lib64/libjpeg.so.62.0.0
> 3fba023000-3fba024000 rw-p 00023000 ca:41 138244
> /usr/lib64/libjpeg.so.62.0.0
> 3fba200000-3fba298000 r-xp 00000000 ca:41 134650
> /usr/lib64/libfreetype.so.6.3.22
> 3fba298000-3fba497000 ---p 00098000 ca:41 134650
> /usr/lib64/libfreetype.so.6.3.22
> 3fba497000-3fba49d000 rw-p 00097000 ca:41 134650
> /usr/lib64/libfreetype.so.6.3.22
> 3fba600000-3fba634000 r-xp 00000000 ca:41 168697
> /usr/lib64/libfontconfig.so.1.4.4
> 3fba634000-3fba834000 ---p 00034000 ca:41 168697
> /usr/lib64/libfontconfig.so.1.4.4
> 3fba834000-3fba836000 rw-p 00034000 ca:41 168697
> /usr/lib64/libfontconfig.so.1.4.4
> 3fbae00000-3fbaf39000 r-xp 00000000 ca:41 136425
> /usr/lib64/libX11.so.6.3.0
> 3fbaf39000-3fbb139000 ---p 00139000 ca:41 136425
> /usr/lib64/libX11.so.6.3.0
> 3fbb139000-3fbb13f000 rw-p 00139000 ca:41 136425
> /usr/lib64/libX11.so.6.3.0
> 3fbb200000-3fbb202000 r-xp 00000000 ca:41 134710
> /usr/lib64/libXau.so.6.0.0
> 3fbb202000-3fbb402000 ---p 00002000 ca:41 134710
> /usr/lib64/libXau.so.6.0.0
> 3fbb402000-3fbb403000 rw-p 00002000 ca:41 134710
> /usr/lib64/libXau.so.6.0.0
> 3fbb600000-3fbb622000 r-xp 00000000 ca:41 142452
> /usr/lib64/libdbus-glib-1.so.2.1.0
> 3fbb622000-3fbb821000 ---p 00022000 ca:41 142452
> /usr/lib64/libdbus-glib-1.so.2.1.0
> 3fbb821000-3fbb823000 rw-p 00021000 ca:41 142452
> /usr/lib64/libdbus-glib-1.so.2.1.0
> 3fbba00000-3fbba0f000 r-xp 00000000 ca:41 145177
> /usr/lib64/libXi.so.6.1.0
> 3fbba0f000-3fbbc0e000 ---p 0000f000 ca:41 145177
> /usr/lib64/libXi.so.6.1.0
> 3fbbc0e000-3fbbc0f000 rw-p 0000e000 ca:41 145177
> /usr/lib64/libXi.so.6.1.0
> 3fbbe00000-3fbbe1b000 r-xp 00000000 ca:41 136372
> /usr/lib64/libxcb.so.1.1.0
> 3fbbe1b000-3fbc01a000 ---p 0001b000 ca:41 136372
> /usr/lib64/libxcb.so.1.1.0
> 3fbc01a000-3fbc01b000 rw-p 0001a000 ca:41 136372
> /usr/lib64/libxcb.so.1.1.0
> 3fbca00000-3fbca02000 r-xp 00000000 ca:41 138021
> /usr/lib64/libXcomposite.so.1.0.0
> 3fbca02000-3fbcc01000 ---p 00002000 ca:41 138021
> /usr/lib64/libXcomposite.so.1.0.0
> 3fbcc01000-3fbcc02000 rw-p 00001000 ca:41 138021
> /usr/lib64/libXcomposite.so.1.0.0
> 3fbd200000-3fbd21e000 r-xp 00000000 ca:41 135147
> /usr/lib64/libatk-1.0.so.0.2809.1
> 3fbd21e000-3fbd41d000 ---p 0001e000 ca:41 135147
> /usr/lib64/libatk-1.0.so.0.2809.1
> 3fbd41d000-3fbd420000 rw-p 0001d000 ca:41 135147
> /usr/lib64/libatk-1.0.so.0.2809.1
> 3fbde00000-3fbde5d000 r-xp 00000000 ca:41 137712
> /usr/lib64/libpixman-1.so.0.18.4
> 3fbde5d000-3fbe05d000 ---p 0005d000 ca:41 137712
> /usr/lib64/libpixman-1.so.0.18.4
> 3fbe05d000-3fbe061000 rw-p 0005d000 ca:41 137712
> /usr/lib64/libpixman-1.so.0.18.4
> 3fbee00000-3fbee3f000 r-xp 00000000 ca:41 138758
> /lib64/libdbus-1.so.3.4.0
> 3fbee3f000-3fbf03f000 ---p 0003f000 ca:41 138758
> /lib64/libdbus-1.so.3.4.0
> 3fbf03f000-3fbf040000 r--p 0003f000 ca:41 138758
> /lib64/libdbus-1.so.3.4.0
> 3fbf040000-3fbf041000 rw-p 00040000 ca:41 138758
> /lib64/libdbus-1.so.3.4.0
> 3fbf200000-3fbf276000 r-xp 00000000 ca:41 139632
> /usr/lib64/libcairo.so.2.10800.8
> 3fbf276000-3fbf476000 ---p 00076000 ca:41 139632
> /usr/lib64/libcairo.so.2.10800.8
> 3fbf476000-3fbf479000 rw-p 00076000 ca:41 139632
> /usr/lib64/libcairo.so.2.10800.8
> 3fc0200000-3fc0225000 r-xp 00000000 ca:41 138740
> /usr/lib64/libpng12.so.0.49.0
> 3fc0225000-3fc0425000 ---p 00025000 ca:41 138740
> /usr/lib64/libpng12.so.0.49.0
> 3fc0425000-3fc0426000 rw-p 00025000 ca:41 138740
> /usr/lib64/libpng12.so.0.49.0
> 3fc0600000-3fc0609000 r-xp 00000000 ca:41 145199
> /usr/lib64/libXrender.so.1.3.0
> 3fc0609000-3fc0809000 ---p 00009000 ca:41 145199
> /usr/lib64/libXrender.so.1.3.0
> 3fc0809000-3fc080a000 rw-p 00009000 ca:41 145199
> /usr/lib64/libXrender.so.1.3.0
> 3fc0a00000-3fc0a05000 r-xp 00000000 ca:41 145267
> /usr/lib64/libXfixes.so.3.1.0
> 3fc0a05000-3fc0c04000 ---p 00005000 ca:41 145267
> /usr/lib64/libXfixes.so.3.1.0
> 3fc0c04000-3fc0c05000 rw-p 00004000 ca:41 145267
> /usr/lib64/libXfixes.so.3.1.0
> 3fc0e00000-3fc0e02000 r-xp 00000000 ca:41 145273
> /usr/lib64/libXinerama.so.1.0.0
> 3fc0e02000-3fc1001000 ---p 00002000 ca:41 145273
> /usr/lib64/libXinerama.so.1.0.0
> 3fc1001000-3fc1002000 rw-p 00001000 ca:41 145273
> /usr/lib64/libXinerama.so.1.0.0
> 3fc1200000-3fc1209000 r-xp 00000000 ca:41 145203
> /usr/lib64/libXcursor.so.1.0.2
> 3fc1209000-3fc1409000 ---p 00009000 ca:41 145203
> /usr/lib64/libXcursor.so.1.0.2
> 3fc1409000-3fc140a000 rw-p 00009000 ca:41 145203
> /usr/lib64/libXcursor.so.1.0.2
> 3fc1600000-3fc1608000 r-xp 00000000 ca:41 145182
> /usr/lib64/libXrandr.so.2.2.0
> 3fc1608000-3fc1807000 ---p 00008000 ca:41 145182
> /usr/lib64/libXrandr.so.2.2.0
> 3fc1807000-3fc1808000 rw-p 00007000 ca:41 145182
> /usr/lib64/libXrandr.so.2.2.0
> 3fc2000000-3fc2017000 r-xp 00000000 ca:41 134739
> /usr/lib64/libICE.so.6.3.0
> 3fc2017000-3fc2217000 ---p 00017000 ca:41 134739
> /usr/lib64/libICE.so.6.3.0
> 3fc2217000-3fc2218000 rw-p 00017000 ca:41 134739
> /usr/lib64/libICE.so.6.3.0
> 3fc2218000-3fc221c000 rw-p 00000000 00:00 0
> 3fc2400000-3fc2407000 r-xp 00000000 ca:41 168696
> /usr/lib64/libSM.so.6.0.0
> 3fc2407000-3fc2607000 ---p 00007000 ca:41 168696
> /usr/lib64/libSM.so.6.0.0
> 3fc2607000-3fc2608000 rw-p 00007000 ca:41 168696
> /usr/lib64/libSM.so.6.0.0
> 7f1bddd00000-7f1bdde00000 rw-p 00000000 00:00 0
> 7f1bddedd000-7f1bde2dd000 rw-p 00000000 00:00 0
> 7f1bde2dd000-7f1bde2e1000 r-xp 00000000 ca:41 134707
> /lib64/libuuid.so.1.3.0
> 7f1bde2e1000-7f1bde4e0000 ---p 00004000 ca:41 134707
> /lib64/libuuid.so.1.3.0
> 7f1bde4e0000-7f1bde4e1000 rw-p 00003000 ca:41 134707
> /lib64/libuuid.so.1.3.0
> 7f1bde4e1000-7f1bde4e4000 r-xp 00000000 ca:41 189559
> /usr/lib64/libxcb-atom.so.1.0.0
> 7f1bde4e4000-7f1bde6e4000 ---p 00003000 ca:41 189559
> /usr/lib64/libxcb-atom.so.1.0.0
> 7f1bde6e4000-7f1bde6e5000 rw-p 00003000 ca:41 189559
> /usr/lib64/libxcb-atom.so.1.0.0
> 7f1bde6e5000-7f1bde6e8000 r-xp 00000000 ca:41 189563
> /usr/lib64/libxcb-event.so.1.0.0
> 7f1bde6e8000-7f1bde8e8000 ---p 00003000 ca:41 189563
> /usr/lib64/libxcb-event.so.1.0.0
> 7f1bde8e8000-7f1bde8e9000 rw-p 00003000 ca:41 189563
> /usr/lib64/libxcb-event.so.1.0.0
> 7f1bde8e9000-7f1bde8eb000 r-xp 00000000 ca:41 189561
> /usr/lib64/libxcb-aux.so.0.0.0
> 7f1bde8eb000-7f1bdeaeb000 ---p 00002000 ca:41 189561
> /usr/lib64/libxcb-aux.so.0.0.0
> 7f1bdeaeb000-7f1bdeaec000 rw-p 00002000 ca:41 189561
> /usr/lib64/libxcb-aux.so.0.0.0
> 7f1bdeaec000-7f1bdeaee000 r-xp 00000000 ca:41 145235
> /usr/lib64/libXdamage.so.1.1.0
> 7f1bdeaee000-7f1bdeced000 ---p 00002000 ca:41 145235
> /usr/lib64/libXdamage.so.1.1.0
> 7f1bdeced000-7f1bdecee000 rw-p 00001000 ca:41 145235
> /usr/lib64/libXdamage.so.1.1.0
> 7f1bdecee000-7f1bded0b000 r-xp 00000000 ca:41 169543
> /lib64/libselinux.so.1
> 7f1bded0b000-7f1bdef0a000 ---p 0001d000 ca:41 169543
> /lib64/libselinux.so.1
> 7f1bdef0a000-7f1bdef0b000 r--p 0001c000 ca:41 169543
> /lib64/libselinux.so.1
> 7f1bdef0b000-7f1bdef0c000 rw-p 0001d000 ca:41 169543
> /lib64/libselinux.so.1
> 7f1bdef0c000-7f1bdef0d000 rw-p 00000000 00:00 0
> 7f1bdef0d000-7f1bdef23000 r-xp 00000000 ca:41 155324
> /lib64/libresolv-2.12.so
> 7f1bdef23000-7f1bdf123000 ---p 00016000 ca:41 155324
> /lib64/libresolv-2.12.soAborted (core dumped)
>
> This seems to be causing my view queries to timeout. Other than that,
> CouchDB works perfectly. I've been able to replicate this behavior in other
> RHEL 6.2 systems.
>
> I've already done a yum update. I'm also running the latest Erlang, cURL,
> SpiderMonkey and CouchDB.

I can't offer much useful guidance other than make sure your
spidermonkey is =< 1.8.5 (not higher). The new option
--enable-js-trunk in ./configure should not be used.

Other than that, if its a specific doc in the view that's crashing ,
test it out with node or /usr/local/bin/js and see if it works there:
http://wiki.apache.org/couchdb/Troubleshooting#Map.2BAC8-Reduce_debugging

A+
Dave

Mime
View raw message