Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 332235 - app-misc/devtodo: runtime failures on Snow Leopard
Summary: app-misc/devtodo: runtime failures on Snow Leopard
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on: 324769
Blocks:
  Show dependency tree
 
Reported: 2010-08-11 11:34 UTC by Florian CROUZAT (SuperFlo)
Modified: 2014-01-14 20:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
frist attempt for a working ebuild. (devtodo-0.1.20.ebuild.patch,1.33 KB, patch)
2010-08-16 11:37 UTC, Florian CROUZAT (SuperFlo)
Details | Diff
Fix for the xml databases (devtodo-0.1.20-xml-database.patch,643 bytes, patch)
2010-08-16 11:38 UTC, Florian CROUZAT (SuperFlo)
Details | Diff
moves Regex.h to DTRegex.h for case insensitive fs (devtodo-0.1.20-fix-case-insensitives-fs.patch,1.53 KB, patch)
2010-08-16 11:40 UTC, Florian CROUZAT (SuperFlo)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian CROUZAT (SuperFlo) 2010-08-11 11:34:51 UTC
I'm trying to get devtodo to work on my x64-macos.
Mac OS filesystem is case insensitive, so I had to patch accordingly to what they've done in MacPorts[1] (just not sure if I should patch util/Makefile.in or util/Makefile.am ?), they also opened a ticket upstream[2] but it hasn't been handled... 
Anyway, it compiles fine with the patch but I can't run the application.
Here's what I have:

$ todo                           
terminate called after throwing an instance of 'std::runtime_error'  
Abort trap                                                           
                                                                      
(gdb) run

Starting program: /Users/superflo/Gentoo/usr/bin/todo
Reading symbols for shared libraries ++++. done
terminate called after throwing an instance of
'std::runtime_error'

Program received signal SIGABRT, Aborted.
0x00007fff81e683d6 in __kill ()
(gdb) bt

#0  0x00007fff81e683d6 in __kill ()
#1  0x00007fff81f08972 in abort ()
#2  0x00007fff81e88972 in _Unwind_Resume ()
#3  0x00007fff81e8c7cb in _Unwind_Resume_or_Rethrow ()
#4  0x00000001001654f0 in __cxa_rethrow ()
#5  0x00000001001674bb in __gnu_cxx::__verbose_terminate_handler ()
#6  0x000000010016543b in __cxxabiv1::__terminate ()
#7  0x0000000100165473 in std::terminate ()
#8  0x0000000100165578 in __cxa_throw ()
#9  0x0000000100030cf8 in Regex::operator= ()
Previous frame inner to this frame (gdb could not unwind past this frame)

[1] http://trac.macports.org/browser/trunk/dports/devel/devtodo/files/patch-case-insensitive-filesystem.diff?rev=66212
[2] http://swapoff.org/ticket/107
Comment 1 Fabian Groffen gentoo-dev 2010-08-15 16:18:36 UTC
I can't reproduce the crash, but in the worst case that's because I'm on Tiger where the exception catching thing isn't an issue.
Comment 2 Fabian Groffen gentoo-dev 2010-08-15 17:41:31 UTC
compilation issues solved in the tree.
Comment 3 Florian CROUZAT (SuperFlo) 2010-08-15 17:48:55 UTC
Thanks, about the runtime issues, I'm no good with c++, don't really know what to try, according to gdb, the crash occurs in a "Regex::operator=" function, since I patched regex.h -> Regex.h, maybe it's linked.
Comment 4 Fabian Groffen gentoo-dev 2010-08-15 19:56:49 UTC
please try this again with binutils-apple-3.2.3-r1
Comment 5 Florian CROUZAT (SuperFlo) 2010-08-15 20:18:14 UTC
I just synched and don't have this ebuild in my tree.
My current version is binutils-apple-3.2.3.ebuild, I'll retry if the ebuild gets commited.
Comment 6 Heiko 2010-08-16 08:56:55 UTC
After emerging you also need to recompile gcc-apple to get a working libstdc++. Maybe we can strip the __unwind_info section from mach-o files somehow?


Anyway, is the following as expected?

[ticktock][~] >> todo 

[ticktock][~] >> echo $?
0

[ticktock][~] >> tda 
Enter text for the item you are adding.
text> test todo 1
1. veryhigh   2. high   3. medium   4. low   5. verylow   
Enter a priority from those listed above.
priority> 2
Index of new item is 1

[ticktock][~] >> tda 
todo: error, no database loaders for database format or database corrupt (last error was 'couldn't compile rx: repetition-operator operand invalid'

[ticktock][~] >> todo
todo: error, no database loaders for database format or database corrupt (last error was 'couldn't compile rx: repetition-operator operand invalid'
Comment 7 Fabian Groffen gentoo-dev 2010-08-16 09:41:42 UTC
Still todo looks fubared to me then.

(ps I added a news item on the recompile stuff)
Comment 8 Heiko 2010-08-16 09:50:23 UTC
(In reply to comment #7)
> Still todo looks fubared to me then.
> 
> (ps I added a news item on the recompile stuff)
> 

Indeed it is. I nailed the error down to:

  (gdb) n
  52			xmlScan.addPattern(XmlDecl, "<\\?xml.*?>[[:space:]]*");
  (gdb) n
  todo: error, no database loaders for database format or database corrupt (last error was 'couldn't compile rx: repetition-operator operand invalid'

Which actually should've been fixed in:
  http://swapoff.org/changeset/491
and according to
  http://swapoff.org/browser/todo/trunk/util/XML.cc
still is fixed in trunk.

So I wonder how old/broken/outdated is that tarball version?
Comment 9 Florian CROUZAT (SuperFlo) 2010-08-16 09:57:21 UTC
Apprently, 0.1.20 has been tagged in rev464 :|

http://swapoff.org/changeset/464
Comment 10 Fabian Groffen gentoo-dev 2010-08-16 10:43:14 UTC
I think Jokey doesn't mind me/us fixing his package, so maybe a backport of this changeset?
Comment 11 Florian CROUZAT (SuperFlo) 2010-08-16 11:37:44 UTC
Created attachment 243187 [details, diff]
frist attempt for a working ebuild.

Fixes regex.h for case insensitive fs and apply changeset 491 from the trunk.
Comment 12 Florian CROUZAT (SuperFlo) 2010-08-16 11:38:49 UTC
Created attachment 243193 [details, diff]
Fix for the xml databases

Backport of changeset 491 from the trunk. Fix xml databases.
Comment 13 Florian CROUZAT (SuperFlo) 2010-08-16 11:40:12 UTC
Created attachment 243195 [details, diff]
moves Regex.h to DTRegex.h for case insensitive fs
Comment 14 Florian CROUZAT (SuperFlo) 2010-08-16 11:41:05 UTC
I attached a modified ebuild and the patches I used to have a working devtodo on my case insensitive fs: worksforme x64-macos.
Thanks heiko_.
Comment 15 Fabian Groffen gentoo-dev 2010-08-16 11:41:40 UTC
You use an old ebuild, and hence dropped the ~ppc-macos keyword.  Your fs-patch
should be deprecated at the moment, as I already applied a fix for that.
Comment 16 Fabian Groffen gentoo-dev 2014-01-14 20:11:11 UTC
these issues seem to have been dealt with in the meanwhile