jhs / build-couchdb

Batteries-included CouchDB build system
68 stars 17 forks source link

icu problem #15

Closed ddosia closed 13 years ago

ddosia commented 14 years ago

after following all instructions and successfully completed build on Ubuntu 10.04 i got this crash after sturting bin/couchdb:

=CRASH REPORT==== 30-Aug-2010::18:16:09 === crasher: initial call: application_master:init/4 pid: <0.32.0> registered_name: [] exception exit: {bad_return, {{couch_app,start, [normal, ["/home/ddosia/devel/tools/couchdb/build-couchdb/build/etc/couchdb/default.ini", "/home/ddosia/devel/tools/couchdb/build-couchdb/build/etc/couchdb/local.ini"]]}, {'EXIT',"undefined symbol: ucol_strcollIter_4_2"}}} in function application_master:init/4 ancestors: [<0.31.0>] messages: [{'EXIT',<0.33.0>,normal}] links: [<0.31.0>,<0.7.0>] dictionary: [] trap_exit: true status: running heap_size: 1597 stack_size: 24 reductions: 177 neighbours:

=INFO REPORT==== 30-Aug-2010::18:16:09 === application: couch exited: {bad_return,{{couch_app,start, [normal, ["/home/ddosia/devel/tools/couchdb/build-couchdb/build/etc/couchdb/default.ini", "/home/ddosia/devel/tools/couchdb/build-couchdb/build/etc/couchdb/local.ini"]]}, {'EXIT',"undefined symbol: ucol_strcollIter_4_2"}}} type: temporary

after googling around i didnt find any solution

jhs commented 14 years ago

On a clean Ubuntu install, I cannot reproduce this problem.

I suspect you are building against one libicu (v4.2) and running against the other (v4.4). What is the output of the following commands? (Please also mind the formatting to facilitate debugging?)

ddosia commented 14 years ago
dpkg -l | grep icu
ii  libicu42                              4.2.1-3

ldd /home/ddosia/devel/tools/couchdb/build-couchdb/build/lib/couchdb/erlang/lib/couch-1.0.1/priv/lib/couch_icu_driver.so linux-gate.so.1 => (0x005a9000) libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x007a3000) libicuuc.so.44 => /home/ddosia/devel/tools/couchdb/build-couchdb/build/lib/libicuuc.so.44 (0x00236000) libicudata.so.44 => /home/ddosia/devel/tools/couchdb/build-couchdb/build/lib/libicudata.so.44 (0xb6a58000) libicui18n.so.44 => /home/ddosia/devel/tools/couchdb/build-couchdb/build/lib/libicui18n.so.44 (0x00373000) libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00711000) libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0x00110000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00809000) /lib/ld-linux.so.2 (0x00ac5000) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00142000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00d2c000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0065a000)

nm -D /home/ddosia/devel/tools/couchdb/build-couchdb/build/lib/couchdb/erlang/lib/couch-1.0.1/priv/lib/couch_icu_driver.so w _Jv_RegisterClasses 000020bc A bss_start w __cxa_finalize w gmon_start__ 000020bc A _edata 000020c4 A _end 00000af8 T _fini 000005f0 T _init 00002060 D couch_driver_entry U driver_alloc U driver_alloc_binary U driver_free 00000a99 T driver_init U memcpy U ucol_close_4_2 U ucol_open_4_2 U ucol_setAttribute_4_2 U ucol_strcollIter_4_2 U uiter_setUTF8_4_2

find / -type f -name 'libicu*' /var/lib/dpkg/info/libicu42.list /var/lib/dpkg/info/libicu42.shlibs /var/lib/dpkg/info/libicu42.md5sums /var/lib/dpkg/info/libicu42.postinst /var/lib/dpkg/info/libicu42.postrm /var/cache/apt/archives/libicu42_4.2.1-3_i386.deb /var/cache/apt/archives/libicu-dev_4.2.1-3_i386.deb /usr/lib/libicui18n.so.42.1 /usr/lib/libicule.so.42.1 /usr/lib/libicutu.so.42.1 /usr/lib/libicuio.so.42.1 /usr/lib/libicuuc.so.42.1 /usr/lib/libiculx.so.42.1 /usr/lib/libicudata.so.42.1 /usr/share/lintian/overrides/libicu42 /home/ddosia/devel/tools/couchdb/build-couchdb/build/lib/libicuuc.so.44.0 /home/ddosia/devel/tools/couchdb/build-couchdb/build/lib/libicudata.so.44.0 /home/ddosia/devel/tools/couchdb/build-couchdb/build/lib/libiculx.so.44.0 /home/ddosia/devel/tools/couchdb/build-couchdb/build/lib/libicule.so.44.0 /home/ddosia/devel/tools/couchdb/build-couchdb/build/lib/libicuio.so.44.0 /home/ddosia/devel/tools/couchdb/build-couchdb/build/lib/libicutu.so.44.0 /home/ddosia/devel/tools/couchdb/build-couchdb/build/lib/libicui18n.so.44.0

and about /bin/ls -l /lib /usr/lib <- there was large output, how can i attach the file?

jhs commented 14 years ago

Thanks, I got your message. I will follow up ASAP

ddosia commented 14 years ago

bump

jhs commented 14 years ago

What is your LD_LIBRARY_PATH environment variable? And what are the contents of /etc/ld.so.conf and /etc/ld.so.conf.d/*

ddosia commented 14 years ago

cat /etc/ld.so.conf include /etc/ld.so.conf.d/*.conf

ls /etc/ld.so.conf.d/ GL.conf i486-linux-gnu.conf libasound2.conf libc.conf

cat /etc/ld.so.conf.d/GL.conf /etc/ld.so.conf.d/i486-linux-gnu.conf /etc/ld.so.conf.d/libasound2.conf /etc/ld.so.conf.d/libc.conf /usr/lib/nvidia-current

Multiarch support

/lib/i486-linux-gnu
/usr/lib/i486-linux-gnu
/usr/lib/alsa-lib
# libc default configuration
/usr/local/lib

echo $LD_LIBRARY_PATH

ddosia commented 14 years ago

LD_LIBRARY_PATH is empty

jhs commented 13 years ago

Hi, ddosia. I am still thinking about your issue.

There is a new feature in the new Build CouchDB that keeps a complete build log of everything (captures stdout and stderr of the whole process). Would it be possible for you to update and run make (a clean environment would help, rm -r build) and attach the make.log file? Thanks!

ddosia commented 13 years ago

sorry, i am already have fresh install of new ubuntu, so i cant` reproduce this bug

jhs commented 13 years ago

Thanks for the update. Sorry we couldn't figure it out. It was a very well-hidden problem. Please let me know if you have any other questions or issues!