New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30629 (closed defect: fixed)

Opened 22 months ago

Last modified 20 months ago

LyX crashes on Lion

Reported by: carsomyr@… Owned by: snc@…
Priority: Normal Milestone:
Component: ports Version: 2.0.99
Keywords: haspatch Cc:
Port: LyX

Description

Here is the stack trace:

Application Specific Information:
objc[89472]: garbage collection is OFF
*** error for object 0x7fff7347b860: pointer being freed was not allocated
 

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff8e123ce2 __pthread_kill + 10
1   libsystem_c.dylib             	0x00007fff840ab7d2 pthread_kill + 95
2   libsystem_c.dylib             	0x00007fff8409ca7a abort + 143
3   libsystem_c.dylib             	0x00007fff840fb84c free + 389
4   org.lyx.lyx                   	0x0000000103dbde04 std::basic_string<char, boost::tokenizer_detail::traits_extension<std::char_traits<char> >, std::allocator<char> >::~basic_string() + 82
5   org.lyx.lyx                   	0x0000000103dbd45e lyx::support::getEnvPath(std::string const&) + 654
6   org.lyx.lyx                   	0x0000000103dbd61d lyx::support::prependEnvPath(std::string const&, std::string const&) + 45
7   org.lyx.lyx                   	0x00000001039e5f64 lyx::LyX::init() + 1128
8   org.lyx.lyx                   	0x00000001039e7299 lyx::LyX::init(int&, char**) + 435
9   org.lyx.lyx                   	0x00000001039e7a0e lyx::LyX::exec(int&, char**) + 1074
10  org.lyx.lyx                   	0x00000001038ff956 main + 70
11  org.lyx.lyx                   	0x00000001038ff904 start + 52

Don't know if it's a Lion problem, but I think it crops up when one first installs the boost port and then LyX. Please find attached patches that attempt to address the issue. In short, building against the boost makes things work again. Since my C++ is poor, I have little hope of debugging the "src/support/environment.cpp" file. Perhaps someone can explain why such simple code fails.

Attachments

patch-Portfile.diff (796 bytes) - added by carsomyr@… 22 months ago.
The Portfile patch.

Change History

Changed 22 months ago by carsomyr@…

The Portfile patch.

comment:1 Changed 22 months ago by macsforever2000@…

  • Owner changed from macports-tickets@… to snc@…
  • Cc snc@… removed

comment:2 Changed 20 months ago by royliu@…

  • Status changed from new to closed
  • Resolution set to fixed

Made the change and committed in r84707. Let me know if anything breaks!

Note: See TracTickets for help on using tickets.