LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-22-2008, 04:42 PM   #1
elitecodex
Member
 
Registered: Feb 2004
Location: MD
Distribution: Fedora 9
Posts: 129

Rep: Reputation: 15
libunrar - segfault inside library


I know this is a long shot and a very specific question, but lets see.

I have a very simple program that attempts to decompress a rar file. Im using the libunrar.so that is pre-compiled.

Im getting a segfault on the RAROpenArchiveEx function. At somepoint it calls StringList::AddString() and something is failing there. Im at a loss as to how to troubleshoot this.

Here is the backtrace.

Code:
(gdb) backtrace
#0  0x00120c9f in StringList::AddString () from /usr/lib/libunrar.so
#1  0x00120e80 in StringList::AddString () from /usr/lib/libunrar.so
#2  0x00142ee1 in RAROpenArchiveEx () from /usr/lib/libunrar.so
#3  0x08048e27 in ExtractArchive (ArcName=0xbfa7b648 "/home/will/Documents/temp.rar", Mode=1) at main.cpp:60
#4  0x08049003 in main (Argc=2, Argv=0xbfa79724) at main.cpp:40
Any help is greatly appreciated. Thanks!
 
Old 06-24-2008, 05:01 AM   #2
baal.daemon
LQ Newbie
 
Registered: Mar 2008
Location: Devon United Kingdom
Distribution: Zenwalk 5.2
Posts: 2

Rep: Reputation: 0
Unrar proplem

Are you passing the correct data in size/number of items to the stack - this can be tricky with file handles...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LINUX - linking archive (static library) with shared (dynamic) library gurkama Programming 5 03-04-2007 11:11 PM
Threads inside shared library arunka Programming 1 02-25-2006 12:54 AM
iptables inside client to inside host with outside DNS or IP - Help! linuxhelp2 Linux - Networking 1 10-15-2005 06:19 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
what is the function library of the basic graphics library in rethat9.0? zerwolve Red Hat 0 04-29-2004 09:18 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration