azynheira / mu0

Automatically exported from code.google.com/p/mu0
0 stars 0 forks source link

mu 0.9.9-5 crashes on Mac OS X 10.8.4 #80

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. configure and compile with CFLAGS="-g" CXXFLAGS="-g" ./configure 
--prefix=/usr/local/pkg/mu-0.9.9.5
2. try 
/usr/local/pkg/mu-0.9.9.5/bin/mu  index --rebuild
mu(44115) malloc: *** error for object 0x101bf2800: pointer being freed was not 
allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
3. using gdb:
mu(44133) malloc: *** error for object 0x100e93800: pointer being freed was not 
allocated
*** set a breakpoint in malloc_error_break to debug

Program received signal SIGABRT, Aborted.
0x00007fff8e897d46 in __kill ()
(gdb) bt
#0  0x00007fff8e897d46 in __kill ()
#1  0x00007fff8d68ddf0 in abort ()
#2  0x00007fff8d6619b9 in free ()
#3  0x0000000100037c70 in mu_store_get_metadata (store=0x1010168e0, 
key=0x1000529f5 "db_version", err=0x0) at mu-store-read.cc:138
#4  0x00000001000433b7 in _MuStore::check_set_version (this=0x1010168e0) at 
mu-store-priv.hh:127
#5  0x0000000100043a0f in _MuStore::_MuStore (this=0x1010168e0, 
path=0x1010159b0 "/Users/valerio/.mu/xapian", contacts_path=0x101016720 
"/Users/valerio/.mu/cache/contacts", rebuild=true) at mu-store-priv.hh:64
#6  0x000000010004106f in mu_store_new_writable (xpath=0x1010159b0 
"/Users/valerio/.mu/xapian", contacts_cache=0x101016720 
"/Users/valerio/.mu/cache/contacts", rebuild=1, err=0x7fff5fbffab8) at 
mu-store-write.cc:134
#7  0x000000010000e15b in with_store (func=0x100007eb0 <mu_cmd_index>, 
opts=0x100067c20, read_only=0, err=0x7fff5fbffab8) at mu-cmd.c:551
#8  0x000000010000e4d9 in mu_cmd_execute (opts=0x100067c20, err=0x7fff5fbffab8) 
at mu-cmd.c:622
#9  0x0000000100001ba8 in main (argc=1, argv=0x7fff5fbffb08) at mu.cc:113
(gdb) up
#1  0x00007fff8d68ddf0 in abort ()
(gdb) up
#2  0x00007fff8d6619b9 in free ()
(gdb) up
#3  0x0000000100037c70 in mu_store_get_metadata (store=0x1010168e0, 
key=0x1000529f5 "db_version", err=0x0) at mu-store-read.cc:138
138                     return val.empty() ? NULL : g_strdup (val.c_str());
(gdb) l
133             g_return_val_if_fail (store, NULL);
134             g_return_val_if_fail (key, NULL);
135
136             try {
137                     const std::string val 
(store->db_read_only()->get_metadata (key));
138                     return val.empty() ? NULL : g_strdup (val.c_str());
139
140             } MU_XAPIAN_CATCH_BLOCK_G_ERROR_RETURN(err, MU_ERROR_XAPIAN, 
NULL);
141     }
142

What is the expected output? What do you see instead?
mu crashes at every command invoked

What version of the product are you using? On what operating system?
mu 0.9.9-5 on Mac OS X 10.8.4 with corei7 CPU

Please provide any additional information below.

Original issue reported on code.google.com by valerio....@gmail.com on 26 Sep 2013 at 6:08

GoogleCodeExporter commented 8 years ago
Hmm, I've tried to reproduce this, but never succeeded....

Original comment by digg...@gmail.com on 21 Dec 2013 at 6:15