Bug 46290 - Couldn't create workbook in Solaris 10 sparc - gives Segmentation Fault (core dumped) error
Summary: Couldn't create workbook in Solaris 10 sparc - gives Segmentation Fault (core...
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.0-FINAL
Hardware: Sun Solaris
: P2 major (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-25 04:48 UTC by Vivek
Modified: 2008-11-25 05:39 UTC (History)
0 users



Attachments
Java program which is reading a file remotely and trying to create sheet using existing excel template (4.47 KB, text/plain)
2008-11-25 04:48 UTC, Vivek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vivek 2008-11-25 04:48:10 UTC
Created attachment 22937 [details]
Java program which is reading a file remotely and trying to create sheet using existing excel template

Hello,

We are using Java SDK that came along with SSH Tectia connect secure 6.0.2.84. Our requirement is to read CSV files from a remote AIX server over SFTP and embed them into Excel sheet once read. Our program is failing after reading contents over n/w using SFTP and embedding them in to Excel objects. To overcome this, we wrote a separate program just to read the files from remote server and saved them locally. Then wrote another program to read contents from the saved files to Excel and it worked fine. Finally, we combined both programs and it started failing again. It basically gives : "Segmentation Fault (core dumped)" error in solaris (ver 10 on SPARC) when trying to create in memory Excel workbook object. Please find attached the java souce program for your reference.

The java program when run thru command line gives this error. Please see below o/p of console:
-------------------------------------------------------------------------------------------------------
openURL : sftp://@/home//CSV/251849/criteria_out.csv
17/11/2008 13:28:21:347 SftpAppLibSft/secsh_sft.c:2849/ssh_sft_open_internal: HANDLE conn id = 4
read 1780
closed streams 1
closed streams 2
openURL : sftp://@/home//CSV/251849/ByAnalysisSummary.csv
17/11/2008 13:28:21:404 SftpAppLibSft/secsh_sft.c:2849/ssh_sft_open_internal: HANDLE conn id = 4
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 8192
read 4176
closed streams 1
closed streams 2
before creating workbook
fs created
created workboox
Segmentation Fault (core dumped)
========================================================
Comment 1 Nick Burch 2008-11-25 05:39:05 UTC
POI should never be able to segfault Java, as it's pure Java

I think you either have a bug in some native code (eg your sftp library), or a bug in your JVM. Try upgrading one or both